2022-11-23T00:58:40.5435468Z Requested labels: linux.2xlarge 2022-11-23T00:58:40.5435586Z Job defined at: pytorch/pytorch/.github/workflows/_linux-test.yml@refs/heads/master 2022-11-23T00:58:40.5435626Z Waiting for a runner to pick up this job... 2022-11-23T00:58:40.7338506Z Job is about to start running on the runner: i-00833b511002e726f (organization) 2022-11-23T00:58:46.0984172Z Current runner version: '2.299.1' 2022-11-23T00:58:46.0989397Z Runner name: 'i-00833b511002e726f' 2022-11-23T00:58:46.0989782Z Runner group name: 'Default' 2022-11-23T00:58:46.0990258Z Machine name: 'ip-10-0-5-102' 2022-11-23T00:58:46.0991749Z ##[group]GITHUB_TOKEN Permissions 2022-11-23T00:58:46.0992317Z Actions: write 2022-11-23T00:58:46.0992516Z Checks: write 2022-11-23T00:58:46.0992727Z Contents: write 2022-11-23T00:58:46.0992943Z Deployments: write 2022-11-23T00:58:46.0993147Z Discussions: write 2022-11-23T00:58:46.0993358Z Issues: write 2022-11-23T00:58:46.0993562Z Metadata: read 2022-11-23T00:58:46.0993762Z Packages: write 2022-11-23T00:58:46.0994068Z Pages: write 2022-11-23T00:58:46.0994317Z PullRequests: write 2022-11-23T00:58:46.0994552Z RepositoryProjects: write 2022-11-23T00:58:46.0994789Z SecurityEvents: write 2022-11-23T00:58:46.0995010Z Statuses: write 2022-11-23T00:58:46.0995208Z ##[endgroup] 2022-11-23T00:58:46.0998238Z Secret source: Actions 2022-11-23T00:58:46.0998716Z Prepare workflow directory 2022-11-23T00:58:46.8841391Z Prepare all required actions 2022-11-23T00:58:46.9004332Z Getting action download info 2022-11-23T00:58:47.3166315Z Download action repository 'pytorch/test-infra@main' (SHA:c57ff4d9a93667a5571a80a0e92c3e2674aeedfd) 2022-11-23T00:58:47.5732089Z Download action repository 'pytorch/pytorch@master' (SHA:1cfd3858ac54fe3883534309081631a0a892ba3f) 2022-11-23T00:58:50.2791380Z Download action repository 'seemethere/upload-artifact-s3@v5' (SHA:baba72d0712b404f646cebe0730933554ebce96a) 2022-11-23T00:58:50.5321634Z Getting action download info 2022-11-23T00:58:50.8894269Z Download action repository 'malfet/checkout@silent-checkout' (SHA:c7b8fef48edfe1bca0044a44b1f7f7c4318a3076) 2022-11-23T00:58:51.0339584Z Getting action download info 2022-11-23T00:58:51.3729066Z Download action repository 'nick-fields/retry@7d4a37704547a311dbb66ebdf5b23ec19374a767' (SHA:7d4a37704547a311dbb66ebdf5b23ec19374a767) 2022-11-23T00:58:51.5642383Z Uses: pytorch/pytorch/.github/workflows/_linux-test.yml 2022-11-23T00:58:51.5644234Z ##[group] Inputs 2022-11-23T00:58:51.5644530Z build-environment: linux-focal-py3.7-clang7-tsan 2022-11-23T00:58:51.5644857Z test-matrix: { include: [ { config: "tsan", shard: 1, num_shards: 1, runner: "linux.2xlarge" }, ]} 2022-11-23T00:58:51.5645300Z docker-image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T00:58:51.5645649Z sync-tag: 2022-11-23T00:58:51.5646316Z timeout-minutes: 240 2022-11-23T00:58:51.5646539Z ##[endgroup] 2022-11-23T00:58:51.5646994Z Complete job name: linux-focal-py3.7-clang7-tsan / test (tsan, 1, 1, linux.2xlarge) 2022-11-23T00:58:51.6298287Z ##[group]Run pytorch/test-infra/.github/actions/setup-ssh@main 2022-11-23T00:58:51.6298762Z with: 2022-11-23T00:58:51.6299263Z github-secret: *** 2022-11-23T00:58:51.6299480Z activate-with-label: false 2022-11-23T00:58:51.6299689Z label: with-ssh 2022-11-23T00:58:51.6299873Z remove-existing-keys: true 2022-11-23T00:58:51.6300080Z env: 2022-11-23T00:58:51.6300258Z GIT_DEFAULT_BRANCH: master 2022-11-23T00:58:51.6300439Z ##[endgroup] 2022-11-23T00:58:51.7063656Z Not on pull request and ciflow reference could not be extracted, skipping adding ssh keys 2022-11-23T00:58:51.7235262Z ##[group]Run pytorch/pytorch/.github/actions/checkout-pytorch@master 2022-11-23T00:58:51.7235529Z with: 2022-11-23T00:58:51.7235741Z submodules: recursive 2022-11-23T00:58:51.7235929Z fetch-depth: 0 2022-11-23T00:58:51.7236082Z env: 2022-11-23T00:58:51.7236254Z GIT_DEFAULT_BRANCH: master 2022-11-23T00:58:51.7236441Z ##[endgroup] 2022-11-23T00:58:51.7439276Z ##[group]Run retry () { 2022-11-23T00:58:51.7439527Z retry () { 2022-11-23T00:58:51.7439759Z  $* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*) 2022-11-23T00:58:51.7439962Z } 2022-11-23T00:58:51.7440148Z echo "${GITHUB_WORKSPACE}" 2022-11-23T00:58:51.7440369Z if [ -z "${NO_SUDO}" ]; then 2022-11-23T00:58:51.7440717Z  retry sudo rm -rf "${GITHUB_WORKSPACE}" 2022-11-23T00:58:51.7440923Z else 2022-11-23T00:58:51.7441120Z  retry rm -rf "${GITHUB_WORKSPACE}" 2022-11-23T00:58:51.7441302Z fi 2022-11-23T00:58:51.7441519Z mkdir "${GITHUB_WORKSPACE}" 2022-11-23T00:58:51.7456810Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T00:58:51.7457040Z env: 2022-11-23T00:58:51.7457222Z GIT_DEFAULT_BRANCH: master 2022-11-23T00:58:51.7457407Z NO_SUDO: 2022-11-23T00:58:51.7457567Z ##[endgroup] 2022-11-23T00:58:51.7550010Z /home/ec2-user/actions-runner/_work/pytorch/pytorch 2022-11-23T00:58:55.8818855Z ##[group]Run malfet/checkout@silent-checkout 2022-11-23T00:58:55.8819126Z with: 2022-11-23T00:58:55.8819328Z ref: 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T00:58:55.8819522Z fetch-depth: 0 2022-11-23T00:58:55.8819710Z submodules: recursive 2022-11-23T00:58:55.8819905Z quiet-checkout: true 2022-11-23T00:58:55.8820091Z repository: pytorch/pytorch 2022-11-23T00:58:55.8820470Z token: *** 2022-11-23T00:58:55.8820644Z ssh-strict: true 2022-11-23T00:58:55.8820826Z persist-credentials: true 2022-11-23T00:58:55.8821018Z clean: true 2022-11-23T00:58:55.8821194Z lfs: false 2022-11-23T00:58:55.8821374Z set-safe-directory: true 2022-11-23T00:58:55.8821557Z env: 2022-11-23T00:58:55.8821732Z GIT_DEFAULT_BRANCH: master 2022-11-23T00:58:55.8821906Z ##[endgroup] 2022-11-23T00:58:55.9919073Z Syncing repository: pytorch/pytorch 2022-11-23T00:58:55.9920599Z ##[group]Getting Git version info 2022-11-23T00:58:55.9921052Z Working directory is '/home/ec2-user/actions-runner/_work/pytorch/pytorch' 2022-11-23T00:58:55.9921539Z [command]/usr/bin/git version 2022-11-23T00:58:55.9921727Z git version 2.37.1 2022-11-23T00:58:55.9922276Z ##[endgroup] 2022-11-23T00:58:55.9933301Z Temporarily overriding HOME='/home/ec2-user/actions-runner/_work/_temp/827710db-ec65-40a6-b5ff-dd36e96d0e66' before making global git config changes 2022-11-23T00:58:55.9933735Z Adding repository directory to the temporary git global config as a safe directory 2022-11-23T00:58:55.9934202Z [command]/usr/bin/git config --global --add safe.directory /home/ec2-user/actions-runner/_work/pytorch/pytorch 2022-11-23T00:58:55.9957763Z Deleting the contents of '/home/ec2-user/actions-runner/_work/pytorch/pytorch' 2022-11-23T00:58:55.9961892Z ##[group]Initializing the repository 2022-11-23T00:58:55.9964562Z [command]/usr/bin/git init /home/ec2-user/actions-runner/_work/pytorch/pytorch 2022-11-23T00:58:56.0121387Z hint: Using 'master' as the name for the initial branch. This default branch name 2022-11-23T00:58:56.0121719Z hint: is subject to change. To configure the initial branch name to use in all 2022-11-23T00:58:56.0122214Z hint: of your new repositories, which will suppress this warning, call: 2022-11-23T00:58:56.0122646Z hint: 2022-11-23T00:58:56.0122999Z hint: git config --global init.defaultBranch 2022-11-23T00:58:56.0123215Z hint: 2022-11-23T00:58:56.0123502Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2022-11-23T00:58:56.0123867Z hint: 'development'. The just-created branch can be renamed via this command: 2022-11-23T00:58:56.0124104Z hint: 2022-11-23T00:58:56.0124437Z hint: git branch -m 2022-11-23T00:58:56.0124795Z Initialized empty Git repository in /home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/ 2022-11-23T00:58:56.0131945Z [command]/usr/bin/git remote add origin https://github.com/pytorch/pytorch 2022-11-23T00:58:56.0163221Z ##[endgroup] 2022-11-23T00:58:56.0163576Z ##[group]Disabling automatic garbage collection 2022-11-23T00:58:56.0166421Z [command]/usr/bin/git config --local gc.auto 0 2022-11-23T00:58:56.0196168Z ##[endgroup] 2022-11-23T00:58:56.0196675Z ##[group]Setting up auth 2022-11-23T00:58:56.0202715Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2022-11-23T00:58:56.0230771Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2022-11-23T00:58:56.0474277Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2022-11-23T00:58:56.0502966Z [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' || : 2022-11-23T00:58:56.0744055Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2022-11-23T00:58:56.0784650Z ##[endgroup] 2022-11-23T00:58:56.0785002Z ##[group]Fetching the repository 2022-11-23T00:58:56.0790969Z [command]/usr/bin/git -c protocol.version=2 fetch --prune --quiet --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* 2022-11-23T00:59:45.4044246Z [command]/usr/bin/git rev-parse --verify --quiet 1cfd3858ac54fe3883534309081631a0a892ba3f^{object} 2022-11-23T00:59:45.4074198Z 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T00:59:45.4077670Z ##[endgroup] 2022-11-23T00:59:45.4078025Z ##[group]Determining the checkout info 2022-11-23T00:59:45.4078722Z ##[endgroup] 2022-11-23T00:59:45.4079065Z ##[group]Checking out the ref 2022-11-23T00:59:45.4082690Z [command]/usr/bin/git checkout --quiet --force 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T00:59:46.6846370Z ##[endgroup] 2022-11-23T00:59:46.6846837Z ##[group]Setting up auth for fetching submodules 2022-11-23T00:59:46.6852070Z [command]/usr/bin/git config --global http.https://github.com/.extraheader AUTHORIZATION: basic *** 2022-11-23T00:59:46.6895979Z [command]/usr/bin/git config --global --unset-all url.https://github.com/.insteadOf 2022-11-23T00:59:46.6923723Z [command]/usr/bin/git config --global --add url.https://github.com/.insteadOf git@github.com: 2022-11-23T00:59:46.6952701Z [command]/usr/bin/git config --global --add url.https://github.com/.insteadOf org-21003710@github.com: 2022-11-23T00:59:46.6977839Z ##[endgroup] 2022-11-23T00:59:46.6978444Z ##[group]Fetching submodules 2022-11-23T00:59:46.6982046Z [command]/usr/bin/git submodule sync --recursive 2022-11-23T00:59:46.7242802Z [command]/usr/bin/git -c protocol.version=2 submodule update --init --force --recursive 2022-11-23T00:59:46.7500121Z Submodule 'android/libs/fbjni' (https://github.com/facebookincubator/fbjni.git) registered for path 'android/libs/fbjni' 2022-11-23T00:59:46.7501352Z Submodule 'third_party/NNPACK_deps/FP16' (https://github.com/Maratyszcza/FP16.git) registered for path 'third_party/FP16' 2022-11-23T00:59:46.7502498Z Submodule 'third_party/NNPACK_deps/FXdiv' (https://github.com/Maratyszcza/FXdiv.git) registered for path 'third_party/FXdiv' 2022-11-23T00:59:46.7505327Z Submodule 'third_party/NNPACK' (https://github.com/Maratyszcza/NNPACK.git) registered for path 'third_party/NNPACK' 2022-11-23T00:59:46.7508300Z Submodule 'third_party/QNNPACK' (https://github.com/pytorch/QNNPACK) registered for path 'third_party/QNNPACK' 2022-11-23T00:59:46.7511690Z Submodule 'third_party/VulkanMemoryAllocator' (https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git) registered for path 'third_party/VulkanMemoryAllocator' 2022-11-23T00:59:46.7514932Z Submodule 'third_party/XNNPACK' (https://github.com/google/XNNPACK.git) registered for path 'third_party/XNNPACK' 2022-11-23T00:59:46.7518369Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark' 2022-11-23T00:59:46.7521628Z Submodule 'third_party/cpuinfo' (https://github.com/pytorch/cpuinfo.git) registered for path 'third_party/cpuinfo' 2022-11-23T00:59:46.7525091Z Submodule 'third_party/cub' (https://github.com/NVlabs/cub.git) registered for path 'third_party/cub' 2022-11-23T00:59:46.7528724Z Submodule 'third_party/cudnn_frontend' (https://github.com/NVIDIA/cudnn-frontend.git) registered for path 'third_party/cudnn_frontend' 2022-11-23T00:59:46.7532409Z Submodule 'third_party/cutlass' (https://github.com/NVIDIA/cutlass.git) registered for path 'third_party/cutlass' 2022-11-23T00:59:46.7536270Z Submodule 'third_party/eigen' (https://gitlab.com/libeigen/eigen.git) registered for path 'third_party/eigen' 2022-11-23T00:59:46.7540597Z Submodule 'third_party/fbgemm' (https://github.com/pytorch/fbgemm) registered for path 'third_party/fbgemm' 2022-11-23T00:59:46.7544432Z Submodule 'third_party/flatbuffers' (https://github.com/google/flatbuffers.git) registered for path 'third_party/flatbuffers' 2022-11-23T00:59:46.7548397Z Submodule 'third_party/fmt' (https://github.com/fmtlib/fmt.git) registered for path 'third_party/fmt' 2022-11-23T00:59:46.7552756Z Submodule 'third_party/foxi' (https://github.com/houseroad/foxi.git) registered for path 'third_party/foxi' 2022-11-23T00:59:46.7557192Z Submodule 'third_party/gemmlowp/gemmlowp' (https://github.com/google/gemmlowp.git) registered for path 'third_party/gemmlowp/gemmlowp' 2022-11-23T00:59:46.7561510Z Submodule 'third_party/gloo' (https://github.com/facebookincubator/gloo) registered for path 'third_party/gloo' 2022-11-23T00:59:46.7566141Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/googletest' 2022-11-23T00:59:46.7570803Z Submodule 'third_party/ideep' (https://github.com/intel/ideep) registered for path 'third_party/ideep' 2022-11-23T00:59:46.7575528Z Submodule 'third_party/ios-cmake' (https://github.com/Yangqing/ios-cmake.git) registered for path 'third_party/ios-cmake' 2022-11-23T00:59:46.7581633Z Submodule 'third_party/ittapi' (https://github.com/intel/ittapi.git) registered for path 'third_party/ittapi' 2022-11-23T00:59:46.7586469Z Submodule 'third_party/kineto' (https://github.com/pytorch/kineto) registered for path 'third_party/kineto' 2022-11-23T00:59:46.7591692Z Submodule 'third_party/nccl/nccl' (https://github.com/NVIDIA/nccl) registered for path 'third_party/nccl/nccl' 2022-11-23T00:59:46.7596840Z Submodule 'third_party/neon2sse' (https://github.com/intel/ARM_NEON_2_x86_SSE.git) registered for path 'third_party/neon2sse' 2022-11-23T00:59:46.7602157Z Submodule 'third_party/nlohmann' (https://github.com/nlohmann/json.git) registered for path 'third_party/nlohmann' 2022-11-23T00:59:46.7607482Z Submodule 'third_party/onnx' (https://github.com/onnx/onnx.git) registered for path 'third_party/onnx' 2022-11-23T00:59:46.7613045Z Submodule 'third_party/onnx-tensorrt' (https://github.com/onnx/onnx-tensorrt) registered for path 'third_party/onnx-tensorrt' 2022-11-23T00:59:46.7618877Z Submodule 'third_party/pocketfft' (https://github.com/mreineck/pocketfft) registered for path 'third_party/pocketfft' 2022-11-23T00:59:46.7624597Z Submodule 'third_party/protobuf' (https://github.com/protocolbuffers/protobuf.git) registered for path 'third_party/protobuf' 2022-11-23T00:59:46.7630452Z Submodule 'third_party/NNPACK_deps/psimd' (https://github.com/Maratyszcza/psimd.git) registered for path 'third_party/psimd' 2022-11-23T00:59:46.7636721Z Submodule 'third_party/NNPACK_deps/pthreadpool' (https://github.com/Maratyszcza/pthreadpool.git) registered for path 'third_party/pthreadpool' 2022-11-23T00:59:46.7642603Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/pybind11' 2022-11-23T00:59:46.7648842Z Submodule 'third_party/python-enum' (https://github.com/PeachPy/enum34.git) registered for path 'third_party/python-enum' 2022-11-23T00:59:46.7655087Z Submodule 'third_party/python-peachpy' (https://github.com/malfet/PeachPy.git) registered for path 'third_party/python-peachpy' 2022-11-23T00:59:46.7661577Z Submodule 'third_party/python-six' (https://github.com/benjaminp/six.git) registered for path 'third_party/python-six' 2022-11-23T00:59:46.7667917Z Submodule 'third_party/sleef' (https://github.com/shibatch/sleef) registered for path 'third_party/sleef' 2022-11-23T00:59:46.7674531Z Submodule 'third_party/tbb' (https://github.com/01org/tbb) registered for path 'third_party/tbb' 2022-11-23T00:59:46.7681294Z Submodule 'third_party/tensorpipe' (https://github.com/pytorch/tensorpipe.git) registered for path 'third_party/tensorpipe' 2022-11-23T00:59:46.7688108Z Submodule 'third_party/zstd' (https://github.com/facebook/zstd.git) registered for path 'third_party/zstd' 2022-11-23T00:59:46.7713972Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/android/libs/fbjni'... 2022-11-23T00:59:47.0200832Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/FP16'... 2022-11-23T00:59:47.2229589Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/FXdiv'... 2022-11-23T00:59:47.4132978Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/NNPACK'... 2022-11-23T00:59:47.6775806Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/QNNPACK'... 2022-11-23T00:59:47.9411778Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/VulkanMemoryAllocator'... 2022-11-23T00:59:49.8742027Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/XNNPACK'... 2022-11-23T00:59:55.9503290Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/benchmark'... 2022-11-23T00:59:56.3213886Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cpuinfo'... 2022-11-23T00:59:56.8626790Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cub'... 2022-11-23T00:59:58.2486065Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cudnn_frontend'... 2022-11-23T00:59:59.5620713Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cutlass'... 2022-11-23T01:00:00.9610209Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/eigen'... 2022-11-23T01:00:06.1899576Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm'... 2022-11-23T01:00:07.1118913Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/flatbuffers'... 2022-11-23T01:00:08.5860064Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fmt'... 2022-11-23T01:00:09.7706228Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/foxi'... 2022-11-23T01:00:10.0276118Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/gemmlowp/gemmlowp'... 2022-11-23T01:00:10.5051961Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/gloo'... 2022-11-23T01:00:10.8375300Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/googletest'... 2022-11-23T01:00:11.8581223Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep'... 2022-11-23T01:00:12.3037106Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ios-cmake'... 2022-11-23T01:00:12.5163645Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ittapi'... 2022-11-23T01:00:12.7741417Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto'... 2022-11-23T01:00:14.4764979Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/nccl/nccl'... 2022-11-23T01:00:14.9259576Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/neon2sse'... 2022-11-23T01:00:15.3124924Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/nlohmann'... 2022-11-23T01:00:21.5889300Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx'... 2022-11-23T01:00:23.2669067Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt'... 2022-11-23T01:00:23.7213095Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pocketfft'... 2022-11-23T01:00:23.9744135Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf'... 2022-11-23T01:00:29.3276835Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/psimd'... 2022-11-23T01:00:29.5333826Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pthreadpool'... 2022-11-23T01:00:29.7451256Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pybind11'... 2022-11-23T01:00:30.5800266Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-enum'... 2022-11-23T01:00:30.8232406Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-peachpy'... 2022-11-23T01:00:31.1372427Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-six'... 2022-11-23T01:00:31.4358529Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/sleef'... 2022-11-23T01:00:32.0050675Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tbb'... 2022-11-23T01:00:34.0850010Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe'... 2022-11-23T01:00:34.5366604Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/zstd'... 2022-11-23T01:00:36.7035254Z Submodule path 'android/libs/fbjni': checked out '7e1e1fe3858c63c251c637ae41a20de425dde96f' 2022-11-23T01:00:36.7131740Z Submodule path 'third_party/FP16': checked out '4dfe081cf6bcd15db339cf2680b9281b8451eeb3' 2022-11-23T01:00:36.7206408Z Submodule path 'third_party/FXdiv': checked out 'b408327ac2a15ec3e43352421954f5b1967701d1' 2022-11-23T01:00:36.7411243Z Submodule path 'third_party/NNPACK': checked out 'c07e3a0400713d546e0dea2d5466dd22ea389c73' 2022-11-23T01:00:36.7614051Z Submodule path 'third_party/QNNPACK': checked out '7d2a4e9931a82adc3814275b6219a03e24e36b4c' 2022-11-23T01:00:36.7939146Z Submodule path 'third_party/VulkanMemoryAllocator': checked out 'a6bfc237255a6bac1513f7c1ebde6d8aed6b5191' 2022-11-23T01:00:37.3440718Z Submodule path 'third_party/XNNPACK': checked out 'ae108ef49aa5623b896fc93d4298c49d1750d9ba' 2022-11-23T01:00:37.3632544Z Submodule path 'third_party/benchmark': checked out '0d98dba29d66e93259db7daa53a9327df767a415' 2022-11-23T01:00:37.4542105Z Submodule path 'third_party/cpuinfo': checked out '8ec7bd91ad0470e61cf38f618cc1f270dede599c' 2022-11-23T01:00:37.4859594Z Submodule path 'third_party/cub': checked out 'd106ddb991a56c3df1b6d51b2409e36ba8181ce4' 2022-11-23T01:00:37.7520476Z Submodule path 'third_party/cudnn_frontend': checked out '171a7a986f7fbd9ed71bd0cf3c7ad4f55843d6b3' 2022-11-23T01:00:38.1263148Z Submodule path 'third_party/cutlass': checked out 'b72cbf957df8cf84a6d0ff91c190ad51a9c1d24a' 2022-11-23T01:00:38.3511966Z Submodule path 'third_party/eigen': checked out '3147391d946bb4b6c68edd901f2add6ac1f31f8c' 2022-11-23T01:00:38.3934622Z Submodule path 'third_party/fbgemm': checked out '4d1738b3142a6cb0c032cd639e239566010b054a' 2022-11-23T01:00:38.3948682Z Submodule 'third_party/asmjit' (https://github.com/asmjit/asmjit.git) registered for path 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:00:38.3950967Z Submodule 'third_party/cpuinfo' (https://github.com/pytorch/cpuinfo) registered for path 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:00:38.3953355Z Submodule 'third_party/googletest' (https://github.com/google/googletest) registered for path 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:00:38.3956053Z Submodule 'third_party/hipify_torch' (https://github.com/ROCmSoftwarePlatform/hipify_torch.git) registered for path 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:00:38.3979470Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/asmjit'... 2022-11-23T01:00:39.5737048Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/cpuinfo'... 2022-11-23T01:00:40.0777689Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/googletest'... 2022-11-23T01:00:41.0915678Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/hipify_torch'... 2022-11-23T01:00:41.4207976Z Submodule path 'third_party/fbgemm/third_party/asmjit': checked out 'd3fbf7c9bc7c1d1365a94a45614b91c5a3706b81' 2022-11-23T01:00:41.5133638Z Submodule path 'third_party/fbgemm/third_party/cpuinfo': checked out 'ed8b86a253800bafdb7b25c5c399f91bff9cb1f3' 2022-11-23T01:00:41.5677355Z Submodule path 'third_party/fbgemm/third_party/googletest': checked out 'cbf019de22c8dd37b2108da35b2748fd702d1796' 2022-11-23T01:00:41.5771675Z Submodule path 'third_party/fbgemm/third_party/hipify_torch': checked out '1840658c184f3eeba787dae0f06c45756c1daaf5' 2022-11-23T01:00:41.6621472Z Submodule path 'third_party/flatbuffers': checked out 'd0cede9c90c5257537c293517a21376408b549fa' 2022-11-23T01:00:41.6955668Z Submodule path 'third_party/fmt': checked out '7bdf0628b1276379886c7f6dda2cef2b3b374f0b' 2022-11-23T01:00:41.7038882Z Submodule path 'third_party/foxi': checked out 'c278588e34e535f0bb8f00df3880d26928038cad' 2022-11-23T01:00:41.7409047Z Submodule path 'third_party/gemmlowp/gemmlowp': checked out '3fb5c176c17c765a3492cd2f0321b0dab712f350' 2022-11-23T01:00:41.7629189Z Submodule path 'third_party/gloo': checked out '4a5e339b764261d20fc409071dc7a8b8989aa195' 2022-11-23T01:00:41.8059587Z Submodule path 'third_party/googletest': checked out 'e2239ee6043f73722e7aa812a459f54a28552929' 2022-11-23T01:00:41.8168738Z Submodule path 'third_party/ideep': checked out '5ddc65efe0428bbce2942b3ce5e3ce15239abe2f' 2022-11-23T01:00:41.8181763Z Submodule 'mkl-dnn' (https://github.com/intel/mkl-dnn.git) registered for path 'third_party/ideep/mkl-dnn' 2022-11-23T01:00:41.8203522Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep/mkl-dnn'... 2022-11-23T01:00:49.5781177Z Submodule path 'third_party/ideep/mkl-dnn': checked out 'd19d0f795c60695bd32f894c6f01771b2dfbe24d' 2022-11-23T01:00:49.5797512Z Submodule 'third_party/oneDNN' (https://github.com/oneapi-src/oneDNN.git) registered for path 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:00:49.5820349Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN'... 2022-11-23T01:00:57.4525154Z Submodule path 'third_party/ideep/mkl-dnn/third_party/oneDNN': checked out '650085b2f3643aad05c629425983491d63b5c289' 2022-11-23T01:00:57.4620956Z Submodule path 'third_party/ios-cmake': checked out '8abaed637d56f1337d6e1d2c4026e25c1eade724' 2022-11-23T01:00:57.4752493Z Submodule path 'third_party/ittapi': checked out '5b8a7d7422611c3a0d799fb5fc5dd4abfae35b42' 2022-11-23T01:00:57.5603185Z Submodule path 'third_party/kineto': checked out '6c1629809068efd78a8d56b4aa479c7ec49ae562' 2022-11-23T01:00:57.5617289Z Submodule 'libkineto/third_party/fmt' (https://github.com/fmtlib/fmt.git) registered for path 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:00:57.5619314Z Submodule 'libkineto/third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:00:57.5642058Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto/libkineto/third_party/fmt'... 2022-11-23T01:00:58.6687978Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto/libkineto/third_party/googletest'... 2022-11-23T01:00:59.7740583Z Submodule path 'third_party/kineto/libkineto/third_party/fmt': checked out '2591ab91c3898c9f6544fff04660276537d32ffd' 2022-11-23T01:00:59.8246241Z Submodule path 'third_party/kineto/libkineto/third_party/googletest': checked out '7aca84427f224eeed3144123d5230d5871e93347' 2022-11-23T01:00:59.8435642Z Submodule path 'third_party/nccl/nccl': checked out 'f89fd4777d2ef9229c039ff750ae21da01626f52' 2022-11-23T01:00:59.8565172Z Submodule path 'third_party/neon2sse': checked out '97a126f08ce318023be604d03f88bf0820a9464a' 2022-11-23T01:00:59.9546669Z Submodule path 'third_party/nlohmann': checked out '87cda1d6646592ac5866dc703c8e1839046a6806' 2022-11-23T01:01:00.1758035Z Submodule path 'third_party/onnx': checked out 'f7ee1ac60d06abe8e26c9b6bbe1e3db5286b614b' 2022-11-23T01:01:00.1784811Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:00.1786767Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:00.1810498Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx/third_party/benchmark'... 2022-11-23T01:01:00.6314518Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx/third_party/pybind11'... 2022-11-23T01:01:01.5347268Z Submodule path 'third_party/onnx/third_party/benchmark': checked out '0d98dba29d66e93259db7daa53a9327df767a415' 2022-11-23T01:01:01.5636828Z Submodule path 'third_party/onnx/third_party/pybind11': checked out 'ffa346860b306c9bbfb341aed9c14c067751feb8' 2022-11-23T01:01:01.5776464Z Submodule path 'third_party/onnx-tensorrt': checked out 'c153211418a7c57ce071d9ce2a41f8d1c85a878f' 2022-11-23T01:01:01.5790121Z Submodule 'third_party/onnx' (https://github.com/onnx/onnx.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:01.5811167Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx'... 2022-11-23T01:01:03.3915414Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx': checked out '765f5ee823a67a866f4bd28a9860e81f3c811ce8' 2022-11-23T01:01:03.3933421Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:03.3935355Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:03.3959475Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark'... 2022-11-23T01:01:03.8199752Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11'... 2022-11-23T01:01:04.6528912Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark': checked out 'e776aa0275e293707b6a0901e0e8d8a8a3679508' 2022-11-23T01:01:04.7130550Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11': checked out 'a1041190c8b8ff0cd9e2f0752248ad5e3789ea0c' 2022-11-23T01:01:04.7144261Z 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' 2022-11-23T01:01:04.7167238Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang'... 2022-11-23T01:01:04.9477411Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang': checked out '6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5' 2022-11-23T01:01:04.9560072Z Submodule path 'third_party/pocketfft': checked out 'ea778e37710c07723435b1be58235996d1d43a5a' 2022-11-23T01:01:05.1902938Z Submodule path 'third_party/protobuf': checked out 'd1eca4e4b421cd2997495c4b4e65cea6be4e9b8a' 2022-11-23T01:01:05.1921456Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:05.1923728Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:05.1946582Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf/third_party/benchmark'... 2022-11-23T01:01:05.6582530Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf/third_party/googletest'... 2022-11-23T01:01:06.7100653Z Submodule path 'third_party/protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8' 2022-11-23T01:01:06.7730645Z Submodule path 'third_party/protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081' 2022-11-23T01:01:06.7809074Z Submodule path 'third_party/psimd': checked out '072586a71b55b7f8c584153d223e95687148a900' 2022-11-23T01:01:06.7907896Z Submodule path 'third_party/pthreadpool': checked out 'a134dd5d4cee80cce15db81a72e7f929d71dd413' 2022-11-23T01:01:06.8211228Z Submodule path 'third_party/pybind11': checked out '80dc998efced8ceb2be59756668a7e90e8bef917' 2022-11-23T01:01:06.8291898Z Submodule path 'third_party/python-enum': checked out '4cfedc426c4e2fc52e3f5c2b4297e15ed8d6b8c7' 2022-11-23T01:01:06.8553310Z Submodule path 'third_party/python-peachpy': checked out 'f45429b087dd7d5bc78bb40dc7cf06425c252d67' 2022-11-23T01:01:06.8640345Z Submodule path 'third_party/python-six': checked out '15e31431af97e5e64b80af0a3f598d382bcdd49a' 2022-11-23T01:01:06.9041887Z Submodule path 'third_party/sleef': checked out 'e0a003ee838b75d11763aa9c3ef17bf71a725bff' 2022-11-23T01:01:07.0035053Z Submodule path 'third_party/tbb': checked out 'a51a90bc609bb73db8ea13841b5cf7aa4344d4a9' 2022-11-23T01:01:07.0272787Z Submodule path 'third_party/tensorpipe': checked out '52791a2fd214b2a9dc5759d36725909c1daa7f2e' 2022-11-23T01:01:07.0285475Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:07.0287347Z Submodule 'third_party/libnop' (https://github.com/google/libnop.git) registered for path 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:07.0289359Z Submodule 'third_party/libuv' (https://github.com/libuv/libuv.git) registered for path 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:07.0291542Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:07.0313568Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/googletest'... 2022-11-23T01:01:08.0690676Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/libnop'... 2022-11-23T01:01:08.3407258Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/libuv'... 2022-11-23T01:01:09.5048993Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/pybind11'... 2022-11-23T01:01:10.4228050Z Submodule path 'third_party/tensorpipe/third_party/googletest': checked out 'aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e' 2022-11-23T01:01:10.4362551Z Submodule path 'third_party/tensorpipe/third_party/libnop': checked out '910b55815be16109f04f4180e9adee14fb4ce281' 2022-11-23T01:01:10.4958039Z Submodule path 'third_party/tensorpipe/third_party/libuv': checked out '1dff88e5161cba5c59276d2070d2e304e4dcb242' 2022-11-23T01:01:10.5221951Z Submodule path 'third_party/tensorpipe/third_party/pybind11': checked out 'a23996fce38ff6ccfbcdc09f1e63f2c4be5ea2ef' 2022-11-23T01:01:10.5235232Z Submodule 'tools/clang' (https://github.com/wjakob/clang-cindex-python3) registered for path 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:10.5257330Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/pybind11/tools/clang'... 2022-11-23T01:01:10.7765017Z Submodule path 'third_party/tensorpipe/third_party/pybind11/tools/clang': checked out '6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5' 2022-11-23T01:01:10.8999099Z Submodule path 'third_party/zstd': checked out 'aec56a52fbab207fc639a1937d1e708a282edca8' 2022-11-23T01:01:10.9036681Z [command]/usr/bin/git submodule foreach --recursive git config --local gc.auto 0 2022-11-23T01:01:10.9302739Z Entering 'android/libs/fbjni' 2022-11-23T01:01:10.9337092Z Entering 'third_party/FP16' 2022-11-23T01:01:10.9372400Z Entering 'third_party/FXdiv' 2022-11-23T01:01:10.9407890Z Entering 'third_party/NNPACK' 2022-11-23T01:01:10.9442616Z Entering 'third_party/QNNPACK' 2022-11-23T01:01:10.9479114Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:01:10.9514145Z Entering 'third_party/XNNPACK' 2022-11-23T01:01:10.9559691Z Entering 'third_party/benchmark' 2022-11-23T01:01:10.9595633Z Entering 'third_party/cpuinfo' 2022-11-23T01:01:10.9630509Z Entering 'third_party/cub' 2022-11-23T01:01:10.9665616Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:01:10.9705588Z Entering 'third_party/cutlass' 2022-11-23T01:01:10.9746822Z Entering 'third_party/eigen' 2022-11-23T01:01:10.9783872Z Entering 'third_party/fbgemm' 2022-11-23T01:01:10.9818413Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:01:10.9852941Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:01:10.9888850Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:01:10.9923283Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:01:10.9959508Z Entering 'third_party/flatbuffers' 2022-11-23T01:01:10.9997073Z Entering 'third_party/fmt' 2022-11-23T01:01:11.0031911Z Entering 'third_party/foxi' 2022-11-23T01:01:11.0067260Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:01:11.0103469Z Entering 'third_party/gloo' 2022-11-23T01:01:11.0138926Z Entering 'third_party/googletest' 2022-11-23T01:01:11.0174434Z Entering 'third_party/ideep' 2022-11-23T01:01:11.0209522Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:01:11.0246657Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:01:11.0286603Z Entering 'third_party/ios-cmake' 2022-11-23T01:01:11.0322314Z Entering 'third_party/ittapi' 2022-11-23T01:01:11.0358423Z Entering 'third_party/kineto' 2022-11-23T01:01:11.0394650Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:01:11.0426990Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:01:11.0463778Z Entering 'third_party/nccl/nccl' 2022-11-23T01:01:11.0497829Z Entering 'third_party/neon2sse' 2022-11-23T01:01:11.0531600Z Entering 'third_party/nlohmann' 2022-11-23T01:01:11.0568144Z Entering 'third_party/onnx' 2022-11-23T01:01:11.0614765Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.0651103Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.0687910Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:01:11.0721217Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:11.0760692Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.0797195Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.0833243Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.0873795Z Entering 'third_party/pocketfft' 2022-11-23T01:01:11.0909370Z Entering 'third_party/protobuf' 2022-11-23T01:01:11.0947849Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:11.0981677Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:11.1018984Z Entering 'third_party/psimd' 2022-11-23T01:01:11.1053768Z Entering 'third_party/pthreadpool' 2022-11-23T01:01:11.1089316Z Entering 'third_party/pybind11' 2022-11-23T01:01:11.1124052Z Entering 'third_party/python-enum' 2022-11-23T01:01:11.1158913Z Entering 'third_party/python-peachpy' 2022-11-23T01:01:11.1194231Z Entering 'third_party/python-six' 2022-11-23T01:01:11.1228713Z Entering 'third_party/sleef' 2022-11-23T01:01:11.1264537Z Entering 'third_party/tbb' 2022-11-23T01:01:11.1300899Z Entering 'third_party/tensorpipe' 2022-11-23T01:01:11.1335625Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:11.1369406Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:11.1403180Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:11.1437355Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:11.1471323Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.1507984Z Entering 'third_party/zstd' 2022-11-23T01:01:11.1554527Z ##[endgroup] 2022-11-23T01:01:11.1554971Z ##[group]Persisting credentials for submodules 2022-11-23T01:01:11.1560186Z [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' || : 2022-11-23T01:01:11.1817373Z Entering 'android/libs/fbjni' 2022-11-23T01:01:11.1851663Z Entering 'third_party/FP16' 2022-11-23T01:01:11.1886011Z Entering 'third_party/FXdiv' 2022-11-23T01:01:11.1919679Z Entering 'third_party/NNPACK' 2022-11-23T01:01:11.1953464Z Entering 'third_party/QNNPACK' 2022-11-23T01:01:11.1989043Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:01:11.2023960Z Entering 'third_party/XNNPACK' 2022-11-23T01:01:11.2067367Z Entering 'third_party/benchmark' 2022-11-23T01:01:11.2101728Z Entering 'third_party/cpuinfo' 2022-11-23T01:01:11.2135622Z Entering 'third_party/cub' 2022-11-23T01:01:11.2170742Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:01:11.2210993Z Entering 'third_party/cutlass' 2022-11-23T01:01:11.2252616Z Entering 'third_party/eigen' 2022-11-23T01:01:11.2289513Z Entering 'third_party/fbgemm' 2022-11-23T01:01:11.2323777Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:01:11.2358410Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:01:11.2395904Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:01:11.2430518Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:01:11.2465742Z Entering 'third_party/flatbuffers' 2022-11-23T01:01:11.2503156Z Entering 'third_party/fmt' 2022-11-23T01:01:11.2539500Z Entering 'third_party/foxi' 2022-11-23T01:01:11.2574797Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:01:11.2609432Z Entering 'third_party/gloo' 2022-11-23T01:01:11.2644634Z Entering 'third_party/googletest' 2022-11-23T01:01:11.2680691Z Entering 'third_party/ideep' 2022-11-23T01:01:11.2716710Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:01:11.2753137Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:01:11.2794428Z Entering 'third_party/ios-cmake' 2022-11-23T01:01:11.2828738Z Entering 'third_party/ittapi' 2022-11-23T01:01:11.2863795Z Entering 'third_party/kineto' 2022-11-23T01:01:11.2900431Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:01:11.2933505Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:01:11.2969849Z Entering 'third_party/nccl/nccl' 2022-11-23T01:01:11.3005342Z Entering 'third_party/neon2sse' 2022-11-23T01:01:11.3040182Z Entering 'third_party/nlohmann' 2022-11-23T01:01:11.3077142Z Entering 'third_party/onnx' 2022-11-23T01:01:11.3125219Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.3159123Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.3196681Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:01:11.3229910Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:11.3267334Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.3302888Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.3338025Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.3377156Z Entering 'third_party/pocketfft' 2022-11-23T01:01:11.3411496Z Entering 'third_party/protobuf' 2022-11-23T01:01:11.3448896Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:11.3482928Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:11.3519501Z Entering 'third_party/psimd' 2022-11-23T01:01:11.3554233Z Entering 'third_party/pthreadpool' 2022-11-23T01:01:11.3588219Z Entering 'third_party/pybind11' 2022-11-23T01:01:11.3622282Z Entering 'third_party/python-enum' 2022-11-23T01:01:11.3656215Z Entering 'third_party/python-peachpy' 2022-11-23T01:01:11.3689531Z Entering 'third_party/python-six' 2022-11-23T01:01:11.3723831Z Entering 'third_party/sleef' 2022-11-23T01:01:11.3758230Z Entering 'third_party/tbb' 2022-11-23T01:01:11.3794204Z Entering 'third_party/tensorpipe' 2022-11-23T01:01:11.3828750Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:11.3864169Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:11.3897291Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:11.3931631Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:11.3965445Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.4003444Z Entering 'third_party/zstd' 2022-11-23T01:01:11.4048824Z [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 2022-11-23T01:01:11.4310899Z Entering 'android/libs/fbjni' 2022-11-23T01:01:11.4342860Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/android/libs/fbjni/config remote.origin.url 2022-11-23T01:01:11.4356402Z Entering 'third_party/FP16' 2022-11-23T01:01:11.4387945Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/FP16/config remote.origin.url 2022-11-23T01:01:11.4401505Z Entering 'third_party/FXdiv' 2022-11-23T01:01:11.4433225Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/FXdiv/config remote.origin.url 2022-11-23T01:01:11.4446733Z Entering 'third_party/NNPACK' 2022-11-23T01:01:11.4477856Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK/config remote.origin.url 2022-11-23T01:01:11.4492500Z Entering 'third_party/QNNPACK' 2022-11-23T01:01:11.4525182Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/QNNPACK/config remote.origin.url 2022-11-23T01:01:11.4539880Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:01:11.4571264Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/VulkanMemoryAllocator/config remote.origin.url 2022-11-23T01:01:11.4585815Z Entering 'third_party/XNNPACK' 2022-11-23T01:01:11.4618449Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/XNNPACK/config remote.origin.url 2022-11-23T01:01:11.4642499Z Entering 'third_party/benchmark' 2022-11-23T01:01:11.4675470Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/benchmark/config remote.origin.url 2022-11-23T01:01:11.4690765Z Entering 'third_party/cpuinfo' 2022-11-23T01:01:11.4723764Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cpuinfo/config remote.origin.url 2022-11-23T01:01:11.4738448Z Entering 'third_party/cub' 2022-11-23T01:01:11.4770258Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cub/config remote.origin.url 2022-11-23T01:01:11.4785791Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:01:11.4817722Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cudnn_frontend/config remote.origin.url 2022-11-23T01:01:11.4837118Z Entering 'third_party/cutlass' 2022-11-23T01:01:11.4868962Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cutlass/config remote.origin.url 2022-11-23T01:01:11.4890074Z Entering 'third_party/eigen' 2022-11-23T01:01:11.4922356Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/eigen/config remote.origin.url 2022-11-23T01:01:11.4939940Z Entering 'third_party/fbgemm' 2022-11-23T01:01:11.4972211Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/config remote.origin.url 2022-11-23T01:01:11.4987314Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:01:11.5018326Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/asmjit/config remote.origin.url 2022-11-23T01:01:11.5032453Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:01:11.5065907Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/cpuinfo/config remote.origin.url 2022-11-23T01:01:11.5080587Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:01:11.5111333Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/googletest/config remote.origin.url 2022-11-23T01:01:11.5125742Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:01:11.5157580Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/hipify_torch/config remote.origin.url 2022-11-23T01:01:11.5173404Z Entering 'third_party/flatbuffers' 2022-11-23T01:01:11.5206334Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/flatbuffers/config remote.origin.url 2022-11-23T01:01:11.5222548Z Entering 'third_party/fmt' 2022-11-23T01:01:11.5254684Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fmt/config remote.origin.url 2022-11-23T01:01:11.5268921Z Entering 'third_party/foxi' 2022-11-23T01:01:11.5300860Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/foxi/config remote.origin.url 2022-11-23T01:01:11.5315865Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:01:11.5346996Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/gemmlowp/gemmlowp/config remote.origin.url 2022-11-23T01:01:11.5361073Z Entering 'third_party/gloo' 2022-11-23T01:01:11.5393670Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/gloo/config remote.origin.url 2022-11-23T01:01:11.5407743Z Entering 'third_party/googletest' 2022-11-23T01:01:11.5439526Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/googletest/config remote.origin.url 2022-11-23T01:01:11.5453303Z Entering 'third_party/ideep' 2022-11-23T01:01:11.5485937Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ideep/config remote.origin.url 2022-11-23T01:01:11.5499195Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:01:11.5532267Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ideep/modules/mkl-dnn/config remote.origin.url 2022-11-23T01:01:11.5548877Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:01:11.5581077Z 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 2022-11-23T01:01:11.5602165Z Entering 'third_party/ios-cmake' 2022-11-23T01:01:11.5634728Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ios-cmake/config remote.origin.url 2022-11-23T01:01:11.5649218Z Entering 'third_party/ittapi' 2022-11-23T01:01:11.5681906Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ittapi/config remote.origin.url 2022-11-23T01:01:11.5696119Z Entering 'third_party/kineto' 2022-11-23T01:01:11.5727594Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/config remote.origin.url 2022-11-23T01:01:11.5741564Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:01:11.5773370Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/modules/libkineto/third_party/fmt/config remote.origin.url 2022-11-23T01:01:11.5788122Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:01:11.5821023Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/modules/libkineto/third_party/googletest/config remote.origin.url 2022-11-23T01:01:11.5837867Z Entering 'third_party/nccl/nccl' 2022-11-23T01:01:11.5868879Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/nccl/nccl/config remote.origin.url 2022-11-23T01:01:11.5885398Z Entering 'third_party/neon2sse' 2022-11-23T01:01:11.5917973Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/neon2sse/config remote.origin.url 2022-11-23T01:01:11.5932395Z Entering 'third_party/nlohmann' 2022-11-23T01:01:11.5967279Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/nlohmann/config remote.origin.url 2022-11-23T01:01:11.5983465Z Entering 'third_party/onnx' 2022-11-23T01:01:11.6015419Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/config remote.origin.url 2022-11-23T01:01:11.6040430Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.6073426Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/modules/third_party/benchmark/config remote.origin.url 2022-11-23T01:01:11.6087816Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.6119308Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/modules/third_party/pybind11/config remote.origin.url 2022-11-23T01:01:11.6135600Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:01:11.6167579Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/config remote.origin.url 2022-11-23T01:01:11.6180784Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:11.6212886Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/modules/third_party/onnx/config remote.origin.url 2022-11-23T01:01:11.6232436Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:11.6263911Z 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 2022-11-23T01:01:11.6278126Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:11.6309401Z 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 2022-11-23T01:01:11.6324046Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.6356382Z 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 2022-11-23T01:01:11.6375315Z Entering 'third_party/pocketfft' 2022-11-23T01:01:11.6408711Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/pocketfft/config remote.origin.url 2022-11-23T01:01:11.6424044Z Entering 'third_party/protobuf' 2022-11-23T01:01:11.6455623Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/config remote.origin.url 2022-11-23T01:01:11.6473054Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:11.6504729Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/modules/third_party/benchmark/config remote.origin.url 2022-11-23T01:01:11.6518674Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:11.6550389Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/modules/third_party/googletest/config remote.origin.url 2022-11-23T01:01:11.6566022Z Entering 'third_party/psimd' 2022-11-23T01:01:11.6599820Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/psimd/config remote.origin.url 2022-11-23T01:01:11.6613628Z Entering 'third_party/pthreadpool' 2022-11-23T01:01:11.6646053Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/pthreadpool/config remote.origin.url 2022-11-23T01:01:11.6662695Z Entering 'third_party/pybind11' 2022-11-23T01:01:11.6695331Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/pybind11/config remote.origin.url 2022-11-23T01:01:11.6709673Z Entering 'third_party/python-enum' 2022-11-23T01:01:11.6741861Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-enum/config remote.origin.url 2022-11-23T01:01:11.6755848Z Entering 'third_party/python-peachpy' 2022-11-23T01:01:11.6788532Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-peachpy/config remote.origin.url 2022-11-23T01:01:11.6802174Z Entering 'third_party/python-six' 2022-11-23T01:01:11.6833178Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-six/config remote.origin.url 2022-11-23T01:01:11.6847347Z Entering 'third_party/sleef' 2022-11-23T01:01:11.6879013Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/sleef/config remote.origin.url 2022-11-23T01:01:11.6893503Z Entering 'third_party/tbb' 2022-11-23T01:01:11.6926515Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tbb/config remote.origin.url 2022-11-23T01:01:11.6942834Z Entering 'third_party/tensorpipe' 2022-11-23T01:01:11.6974370Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/config remote.origin.url 2022-11-23T01:01:11.6988500Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:11.7020073Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/googletest/config remote.origin.url 2022-11-23T01:01:11.7034793Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:11.7066162Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/libnop/config remote.origin.url 2022-11-23T01:01:11.7080569Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:11.7112277Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/libuv/config remote.origin.url 2022-11-23T01:01:11.7127261Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:11.7159044Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/pybind11/config remote.origin.url 2022-11-23T01:01:11.7172919Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:11.7205709Z 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 2022-11-23T01:01:11.7223254Z Entering 'third_party/zstd' 2022-11-23T01:01:11.7255323Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/zstd/config remote.origin.url 2022-11-23T01:01:12.1047810Z [command]/usr/bin/git submodule foreach --recursive git config --local --add 'url.https://github.com/.insteadOf' 'git@github.com:' 2022-11-23T01:01:12.1311861Z Entering 'android/libs/fbjni' 2022-11-23T01:01:12.1346653Z Entering 'third_party/FP16' 2022-11-23T01:01:12.1382528Z Entering 'third_party/FXdiv' 2022-11-23T01:01:12.1418055Z Entering 'third_party/NNPACK' 2022-11-23T01:01:12.1453376Z Entering 'third_party/QNNPACK' 2022-11-23T01:01:12.1489798Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:01:12.1524963Z Entering 'third_party/XNNPACK' 2022-11-23T01:01:12.1571982Z Entering 'third_party/benchmark' 2022-11-23T01:01:12.1607543Z Entering 'third_party/cpuinfo' 2022-11-23T01:01:12.1644194Z Entering 'third_party/cub' 2022-11-23T01:01:12.1679153Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:01:12.1721274Z Entering 'third_party/cutlass' 2022-11-23T01:01:12.1764076Z Entering 'third_party/eigen' 2022-11-23T01:01:12.1802215Z Entering 'third_party/fbgemm' 2022-11-23T01:01:12.1837980Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:01:12.1871696Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:01:12.1907723Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:01:12.1942586Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:01:12.1978612Z Entering 'third_party/flatbuffers' 2022-11-23T01:01:12.2014925Z Entering 'third_party/fmt' 2022-11-23T01:01:12.2049482Z Entering 'third_party/foxi' 2022-11-23T01:01:12.2084776Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:01:12.2119719Z Entering 'third_party/gloo' 2022-11-23T01:01:12.2154772Z Entering 'third_party/googletest' 2022-11-23T01:01:12.2189911Z Entering 'third_party/ideep' 2022-11-23T01:01:12.2224300Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:01:12.2261383Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:01:12.2302129Z Entering 'third_party/ios-cmake' 2022-11-23T01:01:12.2338212Z Entering 'third_party/ittapi' 2022-11-23T01:01:12.2374895Z Entering 'third_party/kineto' 2022-11-23T01:01:12.2411933Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:01:12.2447134Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:01:12.2482542Z Entering 'third_party/nccl/nccl' 2022-11-23T01:01:12.2519284Z Entering 'third_party/neon2sse' 2022-11-23T01:01:12.2553575Z Entering 'third_party/nlohmann' 2022-11-23T01:01:12.2590467Z Entering 'third_party/onnx' 2022-11-23T01:01:12.2637672Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:12.2671910Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:12.2707020Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:01:12.2741866Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:12.2780482Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:12.2814885Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:12.2849451Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:01:12.2890057Z Entering 'third_party/pocketfft' 2022-11-23T01:01:12.2925229Z Entering 'third_party/protobuf' 2022-11-23T01:01:12.2963204Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:12.2999135Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:12.3034700Z Entering 'third_party/psimd' 2022-11-23T01:01:12.3070234Z Entering 'third_party/pthreadpool' 2022-11-23T01:01:12.3104736Z Entering 'third_party/pybind11' 2022-11-23T01:01:12.3140179Z Entering 'third_party/python-enum' 2022-11-23T01:01:12.3175086Z Entering 'third_party/python-peachpy' 2022-11-23T01:01:12.3211379Z Entering 'third_party/python-six' 2022-11-23T01:01:12.3245831Z Entering 'third_party/sleef' 2022-11-23T01:01:12.3281374Z Entering 'third_party/tbb' 2022-11-23T01:01:12.3318505Z Entering 'third_party/tensorpipe' 2022-11-23T01:01:12.3352743Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:12.3386865Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:12.3421969Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:12.3455288Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:12.3487578Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:12.3526690Z Entering 'third_party/zstd' 2022-11-23T01:01:12.3574573Z [command]/usr/bin/git submodule foreach --recursive git config --local --add 'url.https://github.com/.insteadOf' 'org-21003710@github.com:' 2022-11-23T01:01:12.3839834Z Entering 'android/libs/fbjni' 2022-11-23T01:01:12.3875558Z Entering 'third_party/FP16' 2022-11-23T01:01:12.3912211Z Entering 'third_party/FXdiv' 2022-11-23T01:01:12.3948934Z Entering 'third_party/NNPACK' 2022-11-23T01:01:12.3985304Z Entering 'third_party/QNNPACK' 2022-11-23T01:01:12.4021964Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:01:12.4057902Z Entering 'third_party/XNNPACK' 2022-11-23T01:01:12.4104524Z Entering 'third_party/benchmark' 2022-11-23T01:01:12.4140112Z Entering 'third_party/cpuinfo' 2022-11-23T01:01:12.4176258Z Entering 'third_party/cub' 2022-11-23T01:01:12.4212029Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:01:12.4253686Z Entering 'third_party/cutlass' 2022-11-23T01:01:12.4297316Z Entering 'third_party/eigen' 2022-11-23T01:01:12.4334760Z Entering 'third_party/fbgemm' 2022-11-23T01:01:12.4371989Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:01:12.4406540Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:01:12.4442684Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:01:12.4478439Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:01:12.4514927Z Entering 'third_party/flatbuffers' 2022-11-23T01:01:12.4552711Z Entering 'third_party/fmt' 2022-11-23T01:01:12.4588236Z Entering 'third_party/foxi' 2022-11-23T01:01:12.4625303Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:01:12.4663351Z Entering 'third_party/gloo' 2022-11-23T01:01:12.4701228Z Entering 'third_party/googletest' 2022-11-23T01:01:12.4735435Z Entering 'third_party/ideep' 2022-11-23T01:01:12.4770608Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:01:12.4809300Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:01:12.4850476Z Entering 'third_party/ios-cmake' 2022-11-23T01:01:12.4885672Z Entering 'third_party/ittapi' 2022-11-23T01:01:12.4921550Z Entering 'third_party/kineto' 2022-11-23T01:01:12.4956278Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:01:12.4990847Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:01:12.5028179Z Entering 'third_party/nccl/nccl' 2022-11-23T01:01:12.5063499Z Entering 'third_party/neon2sse' 2022-11-23T01:01:12.5099122Z Entering 'third_party/nlohmann' 2022-11-23T01:01:12.5134923Z Entering 'third_party/onnx' 2022-11-23T01:01:12.5182487Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:01:12.5217543Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:01:12.5255251Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:01:12.5291867Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:01:12.5332644Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:01:12.5368590Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:01:12.5403075Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:01:12.5441601Z Entering 'third_party/pocketfft' 2022-11-23T01:01:12.5476327Z Entering 'third_party/protobuf' 2022-11-23T01:01:12.5515288Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:01:12.5550681Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:01:12.5587480Z Entering 'third_party/psimd' 2022-11-23T01:01:12.5622396Z Entering 'third_party/pthreadpool' 2022-11-23T01:01:12.5656955Z Entering 'third_party/pybind11' 2022-11-23T01:01:12.5692269Z Entering 'third_party/python-enum' 2022-11-23T01:01:12.5727878Z Entering 'third_party/python-peachpy' 2022-11-23T01:01:12.5762437Z Entering 'third_party/python-six' 2022-11-23T01:01:12.5798575Z Entering 'third_party/sleef' 2022-11-23T01:01:12.5833564Z Entering 'third_party/tbb' 2022-11-23T01:01:12.5870836Z Entering 'third_party/tensorpipe' 2022-11-23T01:01:12.5907151Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:01:12.5942183Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:01:12.5976158Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:01:12.6011521Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:01:12.6046268Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:01:12.6083419Z Entering 'third_party/zstd' 2022-11-23T01:01:12.6132919Z ##[endgroup] 2022-11-23T01:01:12.6172248Z [command]/usr/bin/git log -1 --format='%H' 2022-11-23T01:01:12.6198228Z '1cfd3858ac54fe3883534309081631a0a892ba3f' 2022-11-23T01:01:12.6317290Z Prepare all required actions 2022-11-23T01:01:12.6343481Z ##[group]Run ./.github/actions/setup-linux 2022-11-23T01:01:12.6343717Z env: 2022-11-23T01:01:12.6343929Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:12.6344135Z ##[endgroup] 2022-11-23T01:01:12.6452238Z ##[group]Run set -euo pipefail 2022-11-23T01:01:12.6452510Z set -euo pipefail 2022-11-23T01:01:12.6452757Z function get_ec2_metadata() { 2022-11-23T01:01:12.6453042Z  # Pulled from instance metadata endpoint for EC2 2022-11-23T01:01:12.6453423Z  # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html 2022-11-23T01:01:12.6453757Z  category=$1 2022-11-23T01:01:12.6454042Z  curl -fsSL "http://169.254.169.254/latest/meta-data/${category}" 2022-11-23T01:01:12.6454405Z } 2022-11-23T01:01:12.6454630Z echo "ami-id: $(get_ec2_metadata ami-id)" 2022-11-23T01:01:12.6454955Z echo "instance-id: $(get_ec2_metadata instance-id)" 2022-11-23T01:01:12.6455271Z echo "instance-type: $(get_ec2_metadata instance-type)" 2022-11-23T01:01:12.6455540Z echo "system info $(uname -a)" 2022-11-23T01:01:12.6467400Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:01:12.6467654Z env: 2022-11-23T01:01:12.6467851Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:12.6468075Z ##[endgroup] 2022-11-23T01:01:12.6550279Z ami-id: ami-096198a0bccc6bad4 2022-11-23T01:01:12.6603257Z instance-id: i-00833b511002e726f 2022-11-23T01:01:12.6653457Z instance-type: c5.2xlarge 2022-11-23T01:01:12.6660498Z system info Linux ip-10-0-5-102.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 2022-11-23T01:01:12.6676177Z ##[group]Run if systemctl is-active --quiet docker; then 2022-11-23T01:01:12.6676473Z if systemctl is-active --quiet docker; then 2022-11-23T01:01:12.6676719Z  echo "Docker daemon is running..."; 2022-11-23T01:01:12.6676934Z else 2022-11-23T01:01:12.6677156Z  echo "Starting docker deamon..." && sudo systemctl start docker; 2022-11-23T01:01:12.6677383Z fi 2022-11-23T01:01:12.6688924Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:01:12.6689130Z env: 2022-11-23T01:01:12.6689311Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:12.6689499Z ##[endgroup] 2022-11-23T01:01:12.7158563Z Docker daemon is running... 2022-11-23T01:01:12.7207367Z ##[group]Run AWS_ACCOUNT_ID=$(aws sts get-caller-identity|grep Account|cut -f4 -d\") 2022-11-23T01:01:12.7207733Z AWS_ACCOUNT_ID=$(aws sts get-caller-identity|grep Account|cut -f4 -d\") 2022-11-23T01:01:12.7208022Z retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2022-11-23T01:01:12.7208412Z retry aws ecr get-login*** "$AWS_DEFAULT_REGION" | docker login --username AWS \ 2022-11-23T01:01:12.7208778Z  --password-stdin "$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com" 2022-11-23T01:01:12.7219810Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:01:12.7220028Z env: 2022-11-23T01:01:12.7220207Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:12.7220395Z AWS_RETRY_MODE: standard 2022-11-23T01:01:12.7220585Z AWS_MAX_ATTEMPTS: 5 2022-11-23T01:01:12.7220785Z AWS_DEFAULT_REGION: us-east-1 2022-11-23T01:01:12.7220970Z ##[endgroup] 2022-11-23T01:01:14.3524463Z WARNING! Your password will be stored unencrypted in /home/ec2-user/.docker/config.json. 2022-11-23T01:01:14.3524844Z Configure a credential helper to remove this warning. See 2022-11-23T01:01:14.3525407Z https://docs.docker.com/engine/reference/commandline/login/#credentials-store 2022-11-23T01:01:14.3525605Z 2022-11-23T01:01:14.3525714Z Login Succeeded 2022-11-23T01:01:14.3558864Z ##[group]Run env | grep '^GITHUB' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2022-11-23T01:01:14.3559180Z env | grep '^GITHUB' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2022-11-23T01:01:14.3559535Z env | grep '^CI' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2022-11-23T01:01:14.3570894Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:01:14.3571103Z env: 2022-11-23T01:01:14.3571283Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:14.3571473Z ##[endgroup] 2022-11-23T01:01:14.3660015Z ##[group]Run pytorch/test-infra/.github/actions/pull-docker-image@main 2022-11-23T01:01:14.3660301Z with: 2022-11-23T01:01:14.3660668Z docker-image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:01:14.3661027Z env: 2022-11-23T01:01:14.3661239Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:14.3661462Z ##[endgroup] 2022-11-23T01:01:14.3673720Z ##[group]Run retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2022-11-23T01:01:14.3674099Z retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2022-11-23T01:01:14.3674398Z # ignore output since only exit code is used for conditional 2022-11-23T01:01:14.3674716Z # only pull docker image if it's not available locally 2022-11-23T01:01:14.3675042Z if ! docker inspect --type=image "${DOCKER_IMAGE}" >/dev/null 2>/dev/null; then 2022-11-23T01:01:14.3675372Z  retry docker pull "${DOCKER_IMAGE}" 2022-11-23T01:01:14.3675603Z fi 2022-11-23T01:01:14.3686217Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:01:14.3686467Z env: 2022-11-23T01:01:14.3686672Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:01:14.3687062Z DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:01:14.3687431Z ##[endgroup] 2022-11-23T01:01:14.5941034Z 072aae4a77ed7d3a69ad5683420509c41301b940: Pulling from pytorch/pytorch-linux-focal-py3-clang7-asan 2022-11-23T01:01:14.5957853Z eaead16dc43b: Pulling fs layer 2022-11-23T01:01:14.5958576Z 08e28b7f24cb: Pulling fs layer 2022-11-23T01:01:14.5959135Z eb222a67db4e: Pulling fs layer 2022-11-23T01:01:14.5961044Z a078424009f8: Pulling fs layer 2022-11-23T01:01:14.5961584Z 1fa5e26d1ca7: Pulling fs layer 2022-11-23T01:01:14.5961891Z 53d1f50f21ef: Pulling fs layer 2022-11-23T01:01:14.5962230Z 00f031ea3c8c: Pulling fs layer 2022-11-23T01:01:14.5962603Z 911da22359ac: Pulling fs layer 2022-11-23T01:01:14.5962958Z e55f0bb146cc: Pulling fs layer 2022-11-23T01:01:14.5963313Z d06627288bfc: Pulling fs layer 2022-11-23T01:01:14.5968512Z 01cb44a1f67d: Pulling fs layer 2022-11-23T01:01:14.5968856Z fbf4015cea9c: Pulling fs layer 2022-11-23T01:01:14.5969159Z a078424009f8: Waiting 2022-11-23T01:01:14.5969458Z 1fa5e26d1ca7: Waiting 2022-11-23T01:01:14.5969725Z 4470167dbba6: Pulling fs layer 2022-11-23T01:01:14.5970056Z 0c5a059e08e3: Pulling fs layer 2022-11-23T01:01:14.5970342Z 53d1f50f21ef: Waiting 2022-11-23T01:01:14.5970626Z 62c192e2f160: Pulling fs layer 2022-11-23T01:01:14.5970896Z 911da22359ac: Waiting 2022-11-23T01:01:14.5971203Z e55f0bb146cc: Waiting 2022-11-23T01:01:14.5971511Z 5f223392c464: Pulling fs layer 2022-11-23T01:01:14.5971860Z a5af83dc28e1: Pulling fs layer 2022-11-23T01:01:14.5972156Z fbf4015cea9c: Waiting 2022-11-23T01:01:14.5972454Z c89ca147ba1f: Pulling fs layer 2022-11-23T01:01:14.5972776Z b21c8a1183c2: Pulling fs layer 2022-11-23T01:01:14.5973169Z 289b3326fa6f: Pulling fs layer 2022-11-23T01:01:14.5973477Z 056c34b393c2: Pulling fs layer 2022-11-23T01:01:14.5973816Z 41863efab66f: Pulling fs layer 2022-11-23T01:01:14.5974099Z 62c192e2f160: Waiting 2022-11-23T01:01:14.5974426Z a5af83dc28e1: Waiting 2022-11-23T01:01:14.5974685Z b38de0885489: Pulling fs layer 2022-11-23T01:01:14.5974957Z 5f223392c464: Waiting 2022-11-23T01:01:14.5975219Z c89ca147ba1f: Waiting 2022-11-23T01:01:14.5975511Z 500edc8daf67: Pulling fs layer 2022-11-23T01:01:14.5975830Z 350dd27d9107: Pulling fs layer 2022-11-23T01:01:14.5976150Z b21c8a1183c2: Waiting 2022-11-23T01:01:14.5976455Z d7ba7a711cfa: Pulling fs layer 2022-11-23T01:01:14.5976751Z 289b3326fa6f: Waiting 2022-11-23T01:01:14.5977045Z 9fca8e90ea14: Pulling fs layer 2022-11-23T01:01:14.5977351Z 2e2e44b7420a: Pulling fs layer 2022-11-23T01:01:14.5977649Z 41863efab66f: Waiting 2022-11-23T01:01:14.5977965Z ab5ff07b3c46: Pulling fs layer 2022-11-23T01:01:14.5978270Z 056c34b393c2: Waiting 2022-11-23T01:01:14.5978997Z e26881ee0bd3: Pulling fs layer 2022-11-23T01:01:14.5979322Z b38de0885489: Waiting 2022-11-23T01:01:14.5979625Z 9b98af7bda31: Pulling fs layer 2022-11-23T01:01:14.5979939Z 500edc8daf67: Waiting 2022-11-23T01:01:14.5980241Z 350dd27d9107: Waiting 2022-11-23T01:01:14.5980537Z afa9b29a37b1: Pulling fs layer 2022-11-23T01:01:14.5980847Z 9fca8e90ea14: Waiting 2022-11-23T01:01:14.5981121Z 2e2e44b7420a: Waiting 2022-11-23T01:01:14.5981398Z 3d2147d6d5da: Pulling fs layer 2022-11-23T01:01:14.5981696Z d7ba7a711cfa: Waiting 2022-11-23T01:01:14.5982005Z 2a93d1c532e9: Pulling fs layer 2022-11-23T01:01:14.5982442Z ab5ff07b3c46: Waiting 2022-11-23T01:01:14.5982758Z 737ef663d6b3: Pulling fs layer 2022-11-23T01:01:14.5983073Z 9b98af7bda31: Waiting 2022-11-23T01:01:14.5983424Z e26881ee0bd3: Waiting 2022-11-23T01:01:14.5983738Z 8d9c024a83d7: Pulling fs layer 2022-11-23T01:01:14.5984108Z afa9b29a37b1: Waiting 2022-11-23T01:01:14.5984476Z c05e93bbbd14: Pulling fs layer 2022-11-23T01:01:14.6006161Z 3d2147d6d5da: Waiting 2022-11-23T01:01:14.6006549Z b1cd3060e8ff: Pulling fs layer 2022-11-23T01:01:14.6006831Z 737ef663d6b3: Waiting 2022-11-23T01:01:14.6007116Z 2a93d1c532e9: Waiting 2022-11-23T01:01:14.6007431Z b5865c71d56b: Pulling fs layer 2022-11-23T01:01:14.6007753Z ce571b4fb113: Pulling fs layer 2022-11-23T01:01:14.6008056Z 8d9c024a83d7: Waiting 2022-11-23T01:01:14.6008350Z 06ba93e61fad: Pulling fs layer 2022-11-23T01:01:14.6008639Z c05e93bbbd14: Waiting 2022-11-23T01:01:14.6008936Z e13059f04844: Pulling fs layer 2022-11-23T01:01:14.6009216Z b1cd3060e8ff: Waiting 2022-11-23T01:01:14.6009496Z c440f1c811ae: Pulling fs layer 2022-11-23T01:01:14.6009797Z ce571b4fb113: Waiting 2022-11-23T01:01:14.6010102Z 5dc337bfe0d0: Pulling fs layer 2022-11-23T01:01:14.6010398Z 06ba93e61fad: Waiting 2022-11-23T01:01:14.6010693Z b5865c71d56b: Waiting 2022-11-23T01:01:14.6010977Z e13059f04844: Waiting 2022-11-23T01:01:14.6011288Z 0d5648f290ac: Pulling fs layer 2022-11-23T01:01:14.6011606Z 561a5a0b635e: Pulling fs layer 2022-11-23T01:01:14.6011923Z 5dc337bfe0d0: Waiting 2022-11-23T01:01:14.6012233Z baa2fdf41367: Pulling fs layer 2022-11-23T01:01:14.6012538Z ceb442905740: Pulling fs layer 2022-11-23T01:01:14.6012834Z 0d5648f290ac: Waiting 2022-11-23T01:01:14.6013147Z b1eea350d8da: Pulling fs layer 2022-11-23T01:01:14.6013461Z c947c5c2d653: Pulling fs layer 2022-11-23T01:01:14.6013802Z bda70097328a: Pulling fs layer 2022-11-23T01:01:14.6014136Z 95ed7b17f236: Pulling fs layer 2022-11-23T01:01:14.6014434Z 8ff663750733: Pulling fs layer 2022-11-23T01:01:14.6014747Z 8df0f8847465: Pulling fs layer 2022-11-23T01:01:14.6015071Z c947c5c2d653: Waiting 2022-11-23T01:01:14.6015368Z 7d6c1ba98c17: Pulling fs layer 2022-11-23T01:01:14.6015693Z b1eea350d8da: Waiting 2022-11-23T01:01:14.6016026Z 198ac061e737: Pulling fs layer 2022-11-23T01:01:14.6016323Z 8ff663750733: Waiting 2022-11-23T01:01:14.6016645Z 17c6ff666fd4: Pulling fs layer 2022-11-23T01:01:14.6016966Z 198ac061e737: Waiting 2022-11-23T01:01:14.6017248Z 8df0f8847465: Waiting 2022-11-23T01:01:14.6017556Z 4470167dbba6: Waiting 2022-11-23T01:01:14.6769277Z 08e28b7f24cb: Download complete 2022-11-23T01:01:14.7950658Z a078424009f8: Verifying Checksum 2022-11-23T01:01:14.7951048Z a078424009f8: Download complete 2022-11-23T01:01:14.9625664Z eaead16dc43b: Verifying Checksum 2022-11-23T01:01:14.9626090Z eaead16dc43b: Download complete 2022-11-23T01:01:15.0660589Z 53d1f50f21ef: Download complete 2022-11-23T01:01:15.2914552Z 00f031ea3c8c: Verifying Checksum 2022-11-23T01:01:15.2915118Z 00f031ea3c8c: Download complete 2022-11-23T01:01:15.3728440Z 911da22359ac: Verifying Checksum 2022-11-23T01:01:15.3728852Z 911da22359ac: Download complete 2022-11-23T01:01:15.4704788Z e55f0bb146cc: Verifying Checksum 2022-11-23T01:01:15.4705243Z e55f0bb146cc: Download complete 2022-11-23T01:01:15.4901802Z 1fa5e26d1ca7: Verifying Checksum 2022-11-23T01:01:15.4902197Z 1fa5e26d1ca7: Download complete 2022-11-23T01:01:15.5480318Z d06627288bfc: Verifying Checksum 2022-11-23T01:01:15.5480877Z d06627288bfc: Download complete 2022-11-23T01:01:15.5781424Z 01cb44a1f67d: Verifying Checksum 2022-11-23T01:01:15.5781817Z 01cb44a1f67d: Download complete 2022-11-23T01:01:15.6337953Z fbf4015cea9c: Verifying Checksum 2022-11-23T01:01:15.6338359Z fbf4015cea9c: Download complete 2022-11-23T01:01:15.6540738Z 4470167dbba6: Verifying Checksum 2022-11-23T01:01:15.6541163Z 4470167dbba6: Download complete 2022-11-23T01:01:15.6760040Z eaead16dc43b: Pull complete 2022-11-23T01:01:15.7296177Z 62c192e2f160: Verifying Checksum 2022-11-23T01:01:15.7296576Z 62c192e2f160: Download complete 2022-11-23T01:01:15.7617838Z 08e28b7f24cb: Pull complete 2022-11-23T01:01:15.8010831Z 5f223392c464: Verifying Checksum 2022-11-23T01:01:15.8011443Z 5f223392c464: Download complete 2022-11-23T01:01:15.8784652Z a5af83dc28e1: Download complete 2022-11-23T01:01:15.9593405Z c89ca147ba1f: Verifying Checksum 2022-11-23T01:01:15.9593808Z c89ca147ba1f: Download complete 2022-11-23T01:01:16.0647916Z b21c8a1183c2: Download complete 2022-11-23T01:01:16.1475058Z 289b3326fa6f: Verifying Checksum 2022-11-23T01:01:16.1475466Z 289b3326fa6f: Download complete 2022-11-23T01:01:16.2273980Z 056c34b393c2: Verifying Checksum 2022-11-23T01:01:16.2274361Z 056c34b393c2: Download complete 2022-11-23T01:01:16.3228142Z 41863efab66f: Verifying Checksum 2022-11-23T01:01:16.3228478Z 41863efab66f: Download complete 2022-11-23T01:01:16.3981692Z b38de0885489: Download complete 2022-11-23T01:01:16.4842630Z 500edc8daf67: Verifying Checksum 2022-11-23T01:01:16.4842991Z 500edc8daf67: Download complete 2022-11-23T01:01:17.7488102Z eb222a67db4e: Verifying Checksum 2022-11-23T01:01:17.7488529Z eb222a67db4e: Download complete 2022-11-23T01:01:17.8267103Z d7ba7a711cfa: Verifying Checksum 2022-11-23T01:01:17.8267625Z d7ba7a711cfa: Download complete 2022-11-23T01:01:17.9063212Z 9fca8e90ea14: Download complete 2022-11-23T01:01:18.0053720Z 2e2e44b7420a: Verifying Checksum 2022-11-23T01:01:18.0054123Z 2e2e44b7420a: Download complete 2022-11-23T01:01:18.0812453Z ab5ff07b3c46: Verifying Checksum 2022-11-23T01:01:18.0812722Z ab5ff07b3c46: Download complete 2022-11-23T01:01:18.1507096Z e26881ee0bd3: Verifying Checksum 2022-11-23T01:01:18.1507451Z e26881ee0bd3: Download complete 2022-11-23T01:01:18.2021391Z 350dd27d9107: Verifying Checksum 2022-11-23T01:01:18.2021797Z 350dd27d9107: Download complete 2022-11-23T01:01:18.2783176Z afa9b29a37b1: Verifying Checksum 2022-11-23T01:01:18.2785688Z afa9b29a37b1: Download complete 2022-11-23T01:01:18.3641057Z 3d2147d6d5da: Verifying Checksum 2022-11-23T01:01:18.3642125Z 3d2147d6d5da: Download complete 2022-11-23T01:01:18.4328070Z 2a93d1c532e9: Verifying Checksum 2022-11-23T01:01:18.4328547Z 2a93d1c532e9: Download complete 2022-11-23T01:01:18.5106450Z 737ef663d6b3: Verifying Checksum 2022-11-23T01:01:18.5106839Z 737ef663d6b3: Download complete 2022-11-23T01:01:18.5951549Z 8d9c024a83d7: Verifying Checksum 2022-11-23T01:01:18.5951977Z 8d9c024a83d7: Download complete 2022-11-23T01:01:18.6677595Z c05e93bbbd14: Verifying Checksum 2022-11-23T01:01:18.6678124Z c05e93bbbd14: Download complete 2022-11-23T01:01:18.7448194Z b1cd3060e8ff: Verifying Checksum 2022-11-23T01:01:18.7448600Z b1cd3060e8ff: Download complete 2022-11-23T01:01:18.8905988Z ce571b4fb113: Verifying Checksum 2022-11-23T01:01:18.8906462Z ce571b4fb113: Download complete 2022-11-23T01:01:18.9663366Z 06ba93e61fad: Verifying Checksum 2022-11-23T01:01:18.9664086Z 06ba93e61fad: Download complete 2022-11-23T01:01:19.0423610Z e13059f04844: Verifying Checksum 2022-11-23T01:01:19.0424612Z e13059f04844: Download complete 2022-11-23T01:01:19.1062586Z c440f1c811ae: Download complete 2022-11-23T01:01:19.1879481Z 5dc337bfe0d0: Download complete 2022-11-23T01:01:19.2734187Z 0d5648f290ac: Download complete 2022-11-23T01:01:19.4195939Z baa2fdf41367: Verifying Checksum 2022-11-23T01:01:19.4196340Z baa2fdf41367: Download complete 2022-11-23T01:01:19.6663026Z ceb442905740: Verifying Checksum 2022-11-23T01:01:19.6663478Z ceb442905740: Download complete 2022-11-23T01:01:19.7503958Z b1eea350d8da: Verifying Checksum 2022-11-23T01:01:19.7504384Z b1eea350d8da: Download complete 2022-11-23T01:01:19.8261342Z c947c5c2d653: Verifying Checksum 2022-11-23T01:01:19.8261708Z c947c5c2d653: Download complete 2022-11-23T01:01:20.3969912Z 9b98af7bda31: Verifying Checksum 2022-11-23T01:01:20.3970347Z 9b98af7bda31: Download complete 2022-11-23T01:01:20.4913577Z 95ed7b17f236: Verifying Checksum 2022-11-23T01:01:20.4913949Z 95ed7b17f236: Download complete 2022-11-23T01:01:20.5714643Z 8ff663750733: Verifying Checksum 2022-11-23T01:01:20.5715036Z 8ff663750733: Download complete 2022-11-23T01:01:20.6545273Z 8df0f8847465: Verifying Checksum 2022-11-23T01:01:20.6545915Z 8df0f8847465: Download complete 2022-11-23T01:01:20.7369960Z 7d6c1ba98c17: Verifying Checksum 2022-11-23T01:01:20.7370375Z 7d6c1ba98c17: Download complete 2022-11-23T01:01:20.8015245Z 198ac061e737: Verifying Checksum 2022-11-23T01:01:20.8015555Z 198ac061e737: Download complete 2022-11-23T01:01:21.4675105Z 17c6ff666fd4: Verifying Checksum 2022-11-23T01:01:24.3547495Z eb222a67db4e: Pull complete 2022-11-23T01:01:24.4690549Z bda70097328a: Download complete 2022-11-23T01:01:24.4934377Z a078424009f8: Pull complete 2022-11-23T01:01:25.9957299Z 1fa5e26d1ca7: Pull complete 2022-11-23T01:01:26.2240111Z 53d1f50f21ef: Pull complete 2022-11-23T01:01:26.4472112Z 00f031ea3c8c: Pull complete 2022-11-23T01:01:26.6959803Z 911da22359ac: Pull complete 2022-11-23T01:01:26.8608188Z e55f0bb146cc: Pull complete 2022-11-23T01:01:27.0560060Z d06627288bfc: Pull complete 2022-11-23T01:01:27.3142037Z 01cb44a1f67d: Pull complete 2022-11-23T01:01:27.5158924Z fbf4015cea9c: Pull complete 2022-11-23T01:01:27.7070830Z 4470167dbba6: Pull complete 2022-11-23T01:01:28.2420643Z 0c5a059e08e3: Verifying Checksum 2022-11-23T01:01:28.2420930Z 0c5a059e08e3: Download complete 2022-11-23T01:01:50.4970625Z 0c5a059e08e3: Pull complete 2022-11-23T01:01:50.8776347Z 62c192e2f160: Pull complete 2022-11-23T01:01:51.1957045Z 5f223392c464: Pull complete 2022-11-23T01:01:51.3607536Z a5af83dc28e1: Pull complete 2022-11-23T01:01:51.4528106Z c89ca147ba1f: Pull complete 2022-11-23T01:01:51.5744454Z b21c8a1183c2: Pull complete 2022-11-23T01:01:51.6682011Z 289b3326fa6f: Pull complete 2022-11-23T01:01:51.7531067Z 056c34b393c2: Pull complete 2022-11-23T01:01:51.8464041Z 41863efab66f: Pull complete 2022-11-23T01:01:51.9296729Z b38de0885489: Pull complete 2022-11-23T01:01:52.0293372Z 500edc8daf67: Pull complete 2022-11-23T01:01:54.8425993Z 350dd27d9107: Pull complete 2022-11-23T01:01:54.9988692Z d7ba7a711cfa: Pull complete 2022-11-23T01:01:55.2520052Z 9fca8e90ea14: Pull complete 2022-11-23T01:01:55.4849177Z 2e2e44b7420a: Pull complete 2022-11-23T01:01:55.6883964Z ab5ff07b3c46: Pull complete 2022-11-23T01:01:55.9188809Z e26881ee0bd3: Pull complete 2022-11-23T01:02:00.4325866Z 9b98af7bda31: Pull complete 2022-11-23T01:02:00.5845410Z afa9b29a37b1: Pull complete 2022-11-23T01:02:00.7269009Z 3d2147d6d5da: Pull complete 2022-11-23T01:02:00.9382783Z 2a93d1c532e9: Pull complete 2022-11-23T01:02:01.1764297Z 737ef663d6b3: Pull complete 2022-11-23T01:02:01.3989861Z 8d9c024a83d7: Pull complete 2022-11-23T01:02:01.5018268Z c05e93bbbd14: Pull complete 2022-11-23T01:02:01.5936201Z b1cd3060e8ff: Pull complete 2022-11-23T01:02:01.6810679Z b5865c71d56b: Pull complete 2022-11-23T01:02:01.7819377Z ce571b4fb113: Pull complete 2022-11-23T01:02:01.8893331Z 06ba93e61fad: Pull complete 2022-11-23T01:02:01.9903260Z e13059f04844: Pull complete 2022-11-23T01:02:02.1091715Z c440f1c811ae: Pull complete 2022-11-23T01:02:02.1817609Z 5dc337bfe0d0: Pull complete 2022-11-23T01:02:02.2690635Z 0d5648f290ac: Pull complete 2022-11-23T01:02:02.3734576Z 561a5a0b635e: Pull complete 2022-11-23T01:02:02.4653589Z baa2fdf41367: Pull complete 2022-11-23T01:02:02.7972182Z ceb442905740: Pull complete 2022-11-23T01:02:02.9826228Z b1eea350d8da: Pull complete 2022-11-23T01:02:03.1988232Z c947c5c2d653: Pull complete 2022-11-23T01:02:07.9637793Z bda70097328a: Pull complete 2022-11-23T01:02:08.1015024Z 95ed7b17f236: Pull complete 2022-11-23T01:02:08.2555908Z 8ff663750733: Pull complete 2022-11-23T01:02:08.4788483Z 8df0f8847465: Pull complete 2022-11-23T01:02:08.6738056Z 7d6c1ba98c17: Pull complete 2022-11-23T01:02:08.8982533Z 198ac061e737: Pull complete 2022-11-23T01:02:10.5425083Z 17c6ff666fd4: Pull complete 2022-11-23T01:02:10.6302467Z Digest: sha256:34e1bcba9828261caa1c7fe4033262dcda23b44eddd67475534e3a1447bdd75d 2022-11-23T01:02:10.6601440Z Status: Downloaded newer image for 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:02:10.6655355Z 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:02:10.6712676Z ##[group]Run python3 -m pip install psutil==5.9.1 2022-11-23T01:02:10.6712953Z python3 -m pip install psutil==5.9.1 2022-11-23T01:02:10.6713196Z python3 -m pip install pynvml==11.4.1 2022-11-23T01:02:10.6713465Z python3 -m tools.stats.monitor > usage_log.txt 2>&1 & 2022-11-23T01:02:10.6713739Z echo "monitor-script-pid=${!}" >> "${GITHUB_OUTPUT}" 2022-11-23T01:02:10.6724986Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:02:10.6725206Z env: 2022-11-23T01:02:10.6725374Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:10.6725567Z ##[endgroup] 2022-11-23T01:02:12.1820475Z Defaulting to user installation because normal site-packages is not writeable 2022-11-23T01:02:12.2042828Z Requirement already satisfied: psutil==5.9.1 in /home/ec2-user/.local/lib/python3.7/site-packages (5.9.1) 2022-11-23T01:02:12.6420374Z Defaulting to user installation because normal site-packages is not writeable 2022-11-23T01:02:12.6601268Z Requirement already satisfied: pynvml==11.4.1 in /home/ec2-user/.local/lib/python3.7/site-packages (11.4.1) 2022-11-23T01:02:12.8720898Z Prepare all required actions 2022-11-23T01:02:12.8721155Z Getting action download info 2022-11-23T01:02:13.0543481Z Download action repository 'seemethere/download-artifact-s3@v4' (SHA:4a8bfae15cc25cc0785c1603ee87a9da8fd442ea) 2022-11-23T01:02:13.2122385Z Download action repository 'actions/download-artifact@v3' (SHA:9782bd6a9848b53b110e712e20e42d89988822b7) 2022-11-23T01:02:13.3519207Z ##[group]Run ./.github/actions/download-build-artifacts 2022-11-23T01:02:13.3519424Z with: 2022-11-23T01:02:13.3519626Z name: linux-focal-py3.7-clang7-tsan 2022-11-23T01:02:13.3519900Z env: 2022-11-23T01:02:13.3520080Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:13.3520268Z ##[endgroup] 2022-11-23T01:02:13.3542966Z ##[group]Run seemethere/download-artifact-s3@v4 2022-11-23T01:02:13.3543184Z with: 2022-11-23T01:02:13.3543386Z name: linux-focal-py3.7-clang7-tsan 2022-11-23T01:02:13.3543615Z s3-bucket: gha-artifacts 2022-11-23T01:02:13.3543793Z region: us-east-1 2022-11-23T01:02:13.3543994Z env: 2022-11-23T01:02:13.3544154Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:13.3544342Z ##[endgroup] 2022-11-23T01:02:13.7748115Z Found 1 objects with prefix pytorch/pytorch/3528293554/linux-focal-py3.7-clang7-tsan/ 2022-11-23T01:02:13.7748660Z Starting download (1/1): /home/ec2-user/actions-runner/_work/pytorch/pytorch/artifacts.zip 2022-11-23T01:02:23.8204938Z Finished download (1/1): /home/ec2-user/actions-runner/_work/pytorch/pytorch/artifacts.zip 2022-11-23T01:02:23.8205194Z 2022-11-23T01:02:23.8222189Z ##[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/ 2022-11-23T01:02:23.8230316Z Artifact download has finished successfully 2022-11-23T01:02:23.8312191Z ##[group]Run unzip -o artifacts.zip 2022-11-23T01:02:23.8312441Z unzip -o artifacts.zip 2022-11-23T01:02:23.8323494Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:02:23.8323714Z env: 2022-11-23T01:02:23.8323897Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:23.8324077Z ##[endgroup] 2022-11-23T01:02:23.8629895Z Archive: artifacts.zip 2022-11-23T01:02:23.8630548Z creating: dist/ 2022-11-23T01:02:25.0707309Z inflating: dist/torch-1.14.0a0+git1cfd385-cp37-cp37m-linux_x86_64.whl 2022-11-23T01:02:25.0707753Z creating: build/lib/ 2022-11-23T01:02:25.0708153Z inflating: build/lib/libclog.a 2022-11-23T01:02:25.0787251Z inflating: build/lib/libgtest.a 2022-11-23T01:02:25.0799243Z inflating: build/lib/libpthreadpool.a 2022-11-23T01:02:25.0893109Z inflating: build/lib/libbenchmark.a 2022-11-23T01:02:25.1016428Z inflating: build/lib/libprotobuf-lite.a 2022-11-23T01:02:25.1026237Z inflating: build/lib/libittnotify.a 2022-11-23T01:02:25.1068054Z inflating: build/lib/libfmt.a 2022-11-23T01:02:25.1111589Z inflating: build/lib/libtensorpipe_uv.a 2022-11-23T01:02:25.1112612Z inflating: build/lib/libfoxi_loader.a 2022-11-23T01:02:25.1214198Z inflating: build/lib/libasmjit.a 2022-11-23T01:02:25.1315376Z inflating: build/lib/libgloo.a 2022-11-23T01:02:25.1911611Z inflating: build/lib/libprotobuf.a 2022-11-23T01:02:25.1912989Z inflating: build/lib/libtorch_global_deps.so 2022-11-23T01:02:25.1988511Z inflating: build/lib/libc10.so 2022-11-23T01:02:25.2001897Z inflating: build/lib/libcpuinfo.a 2022-11-23T01:02:25.2015292Z inflating: build/lib/libcpuinfo_internals.a 2022-11-23T01:02:25.2041890Z inflating: build/lib/libqnnpack.a 2022-11-23T01:02:25.2046568Z inflating: build/lib/libnnpack_reference_layers.a 2022-11-23T01:02:25.2085337Z inflating: build/lib/libpytorch_qnnpack.a 2022-11-23T01:02:25.2687879Z inflating: build/lib/libprotoc.a 2022-11-23T01:02:25.2704180Z inflating: build/lib/libgmock.a 2022-11-23T01:02:25.2705149Z inflating: build/lib/libgtest_main.a 2022-11-23T01:02:25.2706170Z inflating: build/lib/libbenchmark_main.a 2022-11-23T01:02:25.3365102Z inflating: build/lib/libtensorpipe.a 2022-11-23T01:02:25.3386457Z inflating: build/lib/libnnpack.a 2022-11-23T01:02:25.5075458Z inflating: build/lib/libfbgemm.a 2022-11-23T01:02:25.5076364Z inflating: build/lib/libgmock_main.a 2022-11-23T01:02:25.5447032Z inflating: build/lib/libkineto.a 2022-11-23T01:02:25.5508850Z inflating: build/lib/libcaffe2_protos.a 2022-11-23T01:02:25.5745174Z inflating: build/lib/libXNNPACK.a 2022-11-23T01:02:25.5810439Z inflating: build/lib/libonnx_proto.a 2022-11-23T01:02:25.6529774Z inflating: build/lib/libonnx.a 2022-11-23T01:02:27.5595192Z inflating: build/lib/libtorch_cpu.so 2022-11-23T01:02:27.5595891Z inflating: build/lib/libtorch.so 2022-11-23T01:02:27.5601134Z inflating: build/lib/libshm.so 2022-11-23T01:02:27.5673138Z inflating: build/lib/libtorchbind_test.so 2022-11-23T01:02:27.5703579Z inflating: build/lib/libjitbackend_test.so 2022-11-23T01:02:27.5738682Z inflating: build/lib/libbackend_with_compiler.so 2022-11-23T01:02:27.7986903Z inflating: build/lib/libtorch_python.so 2022-11-23T01:02:27.8036892Z inflating: build/lib/libnnapi_backend.so 2022-11-23T01:02:27.8037131Z creating: build/bin/ 2022-11-23T01:02:27.8185692Z inflating: build/bin/c10_CompileTimeFunctionPointer_test 2022-11-23T01:02:27.8335283Z inflating: build/bin/c10_DeviceGuard_test 2022-11-23T01:02:27.8484006Z inflating: build/bin/c10_Device_test 2022-11-23T01:02:27.8640664Z inflating: build/bin/c10_DispatchKeySet_test 2022-11-23T01:02:27.8787978Z inflating: build/bin/c10_StreamGuard_test 2022-11-23T01:02:27.8936100Z inflating: build/bin/c10_SymInt_test 2022-11-23T01:02:27.9091177Z inflating: build/bin/c10_InlineStreamGuard_test 2022-11-23T01:02:27.9244040Z inflating: build/bin/c10_InlineDeviceGuard_test 2022-11-23T01:02:27.9398564Z inflating: build/bin/c10_SizesAndStrides_test 2022-11-23T01:02:27.9549525Z inflating: build/bin/c10_Bitset_test 2022-11-23T01:02:27.9697118Z inflating: build/bin/c10_Array_test 2022-11-23T01:02:27.9846721Z inflating: build/bin/c10_C++17_test 2022-11-23T01:02:27.9994804Z inflating: build/bin/c10_DeadlockDetection_test 2022-11-23T01:02:28.0142074Z inflating: build/bin/c10_ConstexprCrc_test 2022-11-23T01:02:28.0302301Z inflating: build/bin/c10_Metaprogramming_test 2022-11-23T01:02:28.0450260Z inflating: build/bin/c10_Half_test 2022-11-23T01:02:28.0604717Z inflating: build/bin/c10_LeftRight_test 2022-11-23T01:02:28.0881268Z inflating: build/bin/c10_SmallVectorTest 2022-11-23T01:02:28.1029886Z inflating: build/bin/c10_Synchronized_test 2022-11-23T01:02:28.1183026Z inflating: build/bin/c10_ThreadLocal_test 2022-11-23T01:02:28.1332655Z inflating: build/bin/c10_TypeIndex_test 2022-11-23T01:02:28.1481693Z inflating: build/bin/c10_TypeList_test 2022-11-23T01:02:28.1629367Z inflating: build/bin/c10_TypeTraits_test 2022-11-23T01:02:28.1779783Z inflating: build/bin/c10_accumulate_test 2022-11-23T01:02:28.1932779Z inflating: build/bin/c10_bfloat16_test 2022-11-23T01:02:28.2086908Z inflating: build/bin/c10_complex_math_test 2022-11-23T01:02:28.2240999Z inflating: build/bin/c10_complex_test 2022-11-23T01:02:28.2446502Z inflating: build/bin/c10_either_test 2022-11-23T01:02:28.2597117Z inflating: build/bin/c10_exception_test 2022-11-23T01:02:28.2746451Z inflating: build/bin/c10_flags_test 2022-11-23T01:02:28.3010524Z inflating: build/bin/c10_intrusive_ptr_test 2022-11-23T01:02:28.3159407Z inflating: build/bin/c10_irange_test 2022-11-23T01:02:28.3313084Z inflating: build/bin/c10_logging_test 2022-11-23T01:02:28.3494260Z inflating: build/bin/c10_optional_test 2022-11-23T01:02:28.3659493Z inflating: build/bin/c10_ordered_preserving_dict_test 2022-11-23T01:02:28.3812664Z inflating: build/bin/c10_registry_test 2022-11-23T01:02:28.3969251Z inflating: build/bin/c10_string_view_test 2022-11-23T01:02:28.4117979Z inflating: build/bin/c10_tempfile_test 2022-11-23T01:02:28.4260746Z inflating: build/bin/c10_intrusive_ptr_benchmark 2022-11-23T01:02:28.4413137Z inflating: build/bin/c10_typeid_test 2022-11-23T01:02:28.5027833Z inflating: build/bin/protoc-3.13.0.0 2022-11-23T01:02:28.5642474Z inflating: build/bin/protoc 2022-11-23T01:02:28.6134057Z inflating: build/bin/vec_test_all_types_DEFAULT 2022-11-23T01:02:28.6655824Z inflating: build/bin/vec_test_all_types_AVX2 2022-11-23T01:02:28.7171759Z inflating: build/bin/vec_test_all_types_AVX512 2022-11-23T01:02:28.7323808Z inflating: build/bin/FileStoreTest 2022-11-23T01:02:28.7482754Z inflating: build/bin/TCPStoreTest 2022-11-23T01:02:28.7634561Z inflating: build/bin/HashStoreTest 2022-11-23T01:02:28.7803351Z inflating: build/bin/ProcessGroupGlooTest 2022-11-23T01:02:28.7895101Z inflating: build/bin/example_allreduce 2022-11-23T01:02:28.8049128Z inflating: build/bin/test_dist_autograd 2022-11-23T01:02:28.8139596Z inflating: build/bin/parallel_benchmark 2022-11-23T01:02:28.8311266Z inflating: build/bin/test_cpp_rpc 2022-11-23T01:02:28.8461535Z inflating: build/bin/Dimname_test 2022-11-23T01:02:28.8635257Z inflating: build/bin/Dict_test 2022-11-23T01:02:28.9176703Z inflating: build/bin/test_lazy 2022-11-23T01:02:28.9345429Z inflating: build/bin/MaybeOwned_test 2022-11-23T01:02:28.9500936Z inflating: build/bin/NamedTensor_test 2022-11-23T01:02:28.9660667Z inflating: build/bin/apply_utils_test 2022-11-23T01:02:28.9819656Z inflating: build/bin/atest 2022-11-23T01:02:28.9984121Z inflating: build/bin/basic 2022-11-23T01:02:29.0137865Z inflating: build/bin/broadcast_test 2022-11-23T01:02:29.0293633Z inflating: build/bin/cpu_generator_test 2022-11-23T01:02:29.0446011Z inflating: build/bin/cpu_profiling_allocator_test 2022-11-23T01:02:29.2362238Z inflating: build/bin/test_api 2022-11-23T01:02:29.2510645Z inflating: build/bin/dlconvertor_test 2022-11-23T01:02:29.2659464Z inflating: build/bin/dispatch_key_set_test 2022-11-23T01:02:29.2863702Z inflating: build/bin/cpu_rng_test 2022-11-23T01:02:29.3023024Z inflating: build/bin/extension_backend_test 2022-11-23T01:02:29.3174045Z inflating: build/bin/half_test 2022-11-23T01:02:29.3384375Z inflating: build/bin/ivalue_test 2022-11-23T01:02:29.3532416Z inflating: build/bin/lazy_tensor_test 2022-11-23T01:02:29.3686061Z inflating: build/bin/math_kernel_test 2022-11-23T01:02:29.3837662Z inflating: build/bin/memory_format_test 2022-11-23T01:02:29.3988486Z inflating: build/bin/memory_overlapping_test 2022-11-23T01:02:29.4142134Z inflating: build/bin/mobile_memory_cleanup 2022-11-23T01:02:29.4291566Z inflating: build/bin/operator_name_test 2022-11-23T01:02:29.4448504Z inflating: build/bin/native_test 2022-11-23T01:02:29.4604195Z inflating: build/bin/operators_test 2022-11-23T01:02:29.4761814Z inflating: build/bin/packedtensoraccessor_test 2022-11-23T01:02:29.4948886Z inflating: build/bin/pow_test 2022-11-23T01:02:29.5112359Z inflating: build/bin/quantized_test 2022-11-23T01:02:29.5267243Z inflating: build/bin/reduce_ops_test 2022-11-23T01:02:29.5425085Z inflating: build/bin/reportMemoryUsage_test 2022-11-23T01:02:29.5587513Z inflating: build/bin/scalar_tensor_test 2022-11-23T01:02:29.5746962Z inflating: build/bin/stride_properties_test 2022-11-23T01:02:29.5911563Z inflating: build/bin/scalar_test 2022-11-23T01:02:29.6111105Z inflating: build/bin/tensor_iterator_test 2022-11-23T01:02:29.6264457Z inflating: build/bin/test_parallel 2022-11-23T01:02:29.6415326Z inflating: build/bin/type_ptr_test 2022-11-23T01:02:29.6506551Z inflating: build/bin/thread_init_test 2022-11-23T01:02:29.6671041Z inflating: build/bin/type_test 2022-11-23T01:02:29.6819264Z inflating: build/bin/variant_test 2022-11-23T01:02:29.6969669Z inflating: build/bin/undefined_tensor_test 2022-11-23T01:02:29.7059055Z inflating: build/bin/verify_api_visibility 2022-11-23T01:02:29.7240339Z inflating: build/bin/vmap_test 2022-11-23T01:02:29.7389938Z inflating: build/bin/weakref_test 2022-11-23T01:02:29.7540696Z inflating: build/bin/wrapdim_test 2022-11-23T01:02:29.7688691Z inflating: build/bin/xla_tensor_test 2022-11-23T01:02:29.7849315Z inflating: build/bin/IListRef_test 2022-11-23T01:02:29.8059717Z inflating: build/bin/List_test 2022-11-23T01:02:29.8315271Z inflating: build/bin/kernel_function_legacy_test 2022-11-23T01:02:29.8481456Z inflating: build/bin/KernelFunction_test 2022-11-23T01:02:29.8690301Z inflating: build/bin/kernel_function_test 2022-11-23T01:02:29.8947697Z inflating: build/bin/kernel_lambda_legacy_test 2022-11-23T01:02:29.9166681Z inflating: build/bin/kernel_lambda_test 2022-11-23T01:02:29.9328188Z inflating: build/bin/kernel_stackbased_test 2022-11-23T01:02:29.9476394Z inflating: build/bin/CppSignature_test 2022-11-23T01:02:29.9687491Z inflating: build/bin/make_boxed_from_unboxed_functor_test 2022-11-23T01:02:29.9841973Z inflating: build/bin/backend_fallback_test 2022-11-23T01:02:29.9989207Z inflating: build/bin/op_allowlist_test 2022-11-23T01:02:30.0488054Z inflating: build/bin/op_registration_test 2022-11-23T01:02:30.0638676Z inflating: build/bin/inline_container_test 2022-11-23T01:02:30.0749277Z inflating: build/bin/tutorial_tensorexpr 2022-11-23T01:02:30.0843238Z inflating: build/bin/torch_shm_manager 2022-11-23T01:02:30.2459013Z inflating: build/bin/test_tensorexpr 2022-11-23T01:02:30.3300217Z inflating: build/bin/test_jit 2022-11-23T01:02:30.3320699Z ##[group]Run df -H 2022-11-23T01:02:30.3320896Z df -H 2022-11-23T01:02:30.3332033Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:02:30.3332253Z env: 2022-11-23T01:02:30.3332435Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:30.3332609Z ##[endgroup] 2022-11-23T01:02:30.3692025Z Filesystem Size Used Avail Use% Mounted on 2022-11-23T01:02:30.3692535Z devtmpfs 8.2G 0 8.2G 0% /dev 2022-11-23T01:02:30.3692845Z tmpfs 8.2G 2.7M 8.2G 1% /dev/shm 2022-11-23T01:02:30.3693039Z tmpfs 8.2G 431k 8.2G 1% /run 2022-11-23T01:02:30.3693253Z tmpfs 8.2G 0 8.2G 0% /sys/fs/cgroup 2022-11-23T01:02:30.3694868Z /dev/nvme0n1p1 162G 17G 145G 11% / 2022-11-23T01:02:30.3715297Z ##[group]Run .github/scripts/parse_ref.py 2022-11-23T01:02:30.3715526Z .github/scripts/parse_ref.py 2022-11-23T01:02:30.3726458Z shell: /usr/bin/bash -e {0} 2022-11-23T01:02:30.3726647Z env: 2022-11-23T01:02:30.3726812Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:30.3727003Z ##[endgroup] 2022-11-23T01:02:30.4011980Z ##[group]Run set -x 2022-11-23T01:02:30.4012247Z set -x 2022-11-23T01:02:30.4012410Z  2022-11-23T01:02:30.4012598Z if [[ $TEST_CONFIG == 'multigpu' ]]; then 2022-11-23T01:02:30.4012855Z  TEST_COMMAND=.jenkins/pytorch/multigpu-test.sh 2022-11-23T01:02:30.4013190Z elif [[ $BUILD_ENVIRONMENT == *onnx* ]]; then 2022-11-23T01:02:30.4013415Z  TEST_COMMAND=.jenkins/caffe2/test.sh 2022-11-23T01:02:30.4013614Z else 2022-11-23T01:02:30.4013816Z  TEST_COMMAND=.jenkins/pytorch/test.sh 2022-11-23T01:02:30.4014013Z fi 2022-11-23T01:02:30.4014157Z  2022-11-23T01:02:30.4014392Z COMMIT_MESSAGES=$(git cherry -v "origin/${GIT_DEFAULT_BRANCH:-master}") 2022-11-23T01:02:30.4014629Z  2022-11-23T01:02:30.4014835Z # sanitize the input commit message and PR body here: 2022-11-23T01:02:30.4015048Z # 2022-11-23T01:02:30.4015329Z # trim all new lines from commit messages + PR_BODY to avoid issues with batch environment 2022-11-23T01:02:30.4015695Z # variable copying. see https://github.com/pytorch/pytorch/pull/80043#issuecomment-1167796028 2022-11-23T01:02:30.4016011Z COMMIT_MESSAGES="${COMMIT_MESSAGES//[$'\n\r']}" 2022-11-23T01:02:30.4016307Z PR_BODY="${PR_BODY//[$'\n\r']}" 2022-11-23T01:02:30.4016525Z  2022-11-23T01:02:30.4016850Z # then trim all special characters like single and double quotes to avoid unescaped inputs to 2022-11-23T01:02:30.4017269Z # wreak havoc internally 2022-11-23T01:02:30.4017535Z export COMMIT_MESSAGES="${COMMIT_MESSAGES//[\'\"]}" 2022-11-23T01:02:30.4017840Z export PR_BODY="${PR_BODY//[\'\"]}" 2022-11-23T01:02:30.4018087Z  2022-11-23T01:02:30.4018334Z # detached container should get cleaned up by teardown_ec2_linux 2022-11-23T01:02:30.4019019Z # TODO: Stop building test binaries as part of the build phase 2022-11-23T01:02:30.4019333Z # Used for GPU_FLAG since that doesn't play nice 2022-11-23T01:02:30.4019619Z # shellcheck disable=SC2086,SC2090 2022-11-23T01:02:30.4019854Z container_name=$(docker run \ 2022-11-23T01:02:30.4020117Z  ${GPU_FLAG:-} \ 2022-11-23T01:02:30.4020386Z  -e BUILD_ENVIRONMENT \ 2022-11-23T01:02:30.4020596Z  -e PR_NUMBER \ 2022-11-23T01:02:30.4020825Z  -e GITHUB_ACTIONS \ 2022-11-23T01:02:30.4021058Z  -e BASE_SHA \ 2022-11-23T01:02:30.4021410Z  -e BRANCH \ 2022-11-23T01:02:30.4021652Z  -e SHA1 \ 2022-11-23T01:02:30.4021883Z  -e AWS_DEFAULT_REGION \ 2022-11-23T01:02:30.4022087Z  -e IN_WHEEL_TEST \ 2022-11-23T01:02:30.4022328Z  -e SHARD_NUMBER \ 2022-11-23T01:02:30.4022578Z  -e TEST_CONFIG \ 2022-11-23T01:02:30.4022820Z  -e NUM_TEST_SHARDS \ 2022-11-23T01:02:30.4023021Z  -e PR_BODY \ 2022-11-23T01:02:30.4023264Z  -e COMMIT_MESSAGES \ 2022-11-23T01:02:30.4023528Z  -e PYTORCH_RETRY_TEST_CASES \ 2022-11-23T01:02:30.4023781Z  -e PYTORCH_OVERRIDE_FLAKY_SIGNAL \ 2022-11-23T01:02:30.4024030Z  -e PR_LABELS \ 2022-11-23T01:02:30.4024298Z  -e MAX_JOBS="$(nproc --ignore=2)" \ 2022-11-23T01:02:30.4024516Z  -e SCCACHE_BUCKET \ 2022-11-23T01:02:30.4024758Z  -e SCCACHE_S3_KEY_PREFIX \ 2022-11-23T01:02:30.4062914Z  -e XLA_CUDA \ 2022-11-23T01:02:30.4063140Z  -e XLA_CLANG_CACHE_S3_BUCKET_NAME \ 2022-11-23T01:02:30.4063382Z  -e PYTORCH_TEST_CUDA_MEM_LEAK_CHECK \ 2022-11-23T01:02:30.4063628Z  -e PYTORCH_TEST_RERUN_DISABLED_TESTS \ 2022-11-23T01:02:30.4063877Z  --env-file="/tmp/github_env_${GITHUB_RUN_ID}" \ 2022-11-23T01:02:30.4064109Z  --ulimit stack=10485760:83886080 \ 2022-11-23T01:02:30.4064338Z  --security-opt seccomp=unconfined \ 2022-11-23T01:02:30.4064686Z  --cap-add=SYS_PTRACE \ 2022-11-23T01:02:30.4064876Z  --ipc=host \ 2022-11-23T01:02:30.4065073Z  --shm-size="${SHM_SIZE}" \ 2022-11-23T01:02:30.4065264Z  --tty \ 2022-11-23T01:02:30.4065427Z  --detach \ 2022-11-23T01:02:30.4065683Z  --name="${container_name}" \ 2022-11-23T01:02:30.4065890Z  --user jenkins \ 2022-11-23T01:02:30.4066117Z  -v "${GITHUB_WORKSPACE}:/var/lib/jenkins/workspace" \ 2022-11-23T01:02:30.4066372Z  -w /var/lib/jenkins/workspace \ 2022-11-23T01:02:30.4066582Z  "${DOCKER_IMAGE}" 2022-11-23T01:02:30.4066747Z ) 2022-11-23T01:02:30.4066971Z echo "DOCKER_CONTAINER_ID=${container_name}" >> "${GITHUB_ENV}" 2022-11-23T01:02:30.4067308Z docker exec -t "${container_name}" sh -c "pip install $(echo dist/*.whl)[opt-einsum] && ${TEST_COMMAND}" 2022-11-23T01:02:30.4078822Z shell: /usr/bin/bash -e {0} 2022-11-23T01:02:30.4079002Z env: 2022-11-23T01:02:30.4079191Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:02:30.4079439Z BUILD_ENVIRONMENT: linux-focal-py3.7-clang7-tsan 2022-11-23T01:02:30.4079654Z PR_NUMBER: 2022-11-23T01:02:30.4079828Z BRANCH: master 2022-11-23T01:02:30.4080031Z SHA1: 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:02:30.4080259Z BASE_SHA: 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:02:30.4080471Z PYTORCH_RETRY_TEST_CASES: 1 2022-11-23T01:02:30.4080682Z PYTORCH_OVERRIDE_FLAKY_SIGNAL: 1 2022-11-23T01:02:30.4080870Z TEST_CONFIG: tsan 2022-11-23T01:02:30.4081047Z SHARD_NUMBER: 1 2022-11-23T01:02:30.4081223Z NUM_TEST_SHARDS: 1 2022-11-23T01:02:30.4081383Z PR_BODY: 2022-11-23T01:02:30.4081607Z SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2 2022-11-23T01:02:30.4081851Z SCCACHE_S3_KEY_PREFIX: trunk 2022-11-23T01:02:30.4082022Z SHM_SIZE: 1g 2022-11-23T01:02:30.4082373Z DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:02:30.4082704Z XLA_CUDA: 2022-11-23T01:02:30.4082965Z XLA_CLANG_CACHE_S3_BUCKET_NAME: ossci-compiler-clang-cache-circleci-xla 2022-11-23T01:02:30.4083235Z PYTORCH_TEST_CUDA_MEM_LEAK_CHECK: 0 2022-11-23T01:02:30.4083457Z PYTORCH_TEST_RERUN_DISABLED_TESTS: 0 2022-11-23T01:02:30.4083656Z ##[endgroup] 2022-11-23T01:02:30.4108315Z + [[ tsan == \m\u\l\t\i\g\p\u ]] 2022-11-23T01:02:30.4108989Z + [[ linux-focal-py3.7-clang7-tsan == *onnx* ]] 2022-11-23T01:02:30.4109261Z + TEST_COMMAND=.jenkins/pytorch/test.sh 2022-11-23T01:02:30.4111779Z ++ git cherry -v origin/master 2022-11-23T01:02:30.4125981Z + COMMIT_MESSAGES= 2022-11-23T01:02:30.4126437Z + COMMIT_MESSAGES= 2022-11-23T01:02:30.4126753Z + PR_BODY= 2022-11-23T01:02:30.4127046Z + export COMMIT_MESSAGES= 2022-11-23T01:02:30.4127371Z + COMMIT_MESSAGES= 2022-11-23T01:02:30.4127701Z + export PR_BODY= 2022-11-23T01:02:30.4127907Z + PR_BODY= 2022-11-23T01:02:30.4135284Z +++ nproc --ignore=2 2022-11-23T01:02:30.4272169Z ++ 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 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_3528293554 --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:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:02:40.8305845Z + container_name=1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:02:40.8306386Z + echo DOCKER_CONTAINER_ID=1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:02:40.8309892Z ++ echo dist/torch-1.14.0a0+git1cfd385-cp37-cp37m-linux_x86_64.whl 2022-11-23T01:02:40.8311525Z + docker exec -t 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c sh -c 'pip install dist/torch-1.14.0a0+git1cfd385-cp37-cp37m-linux_x86_64.whl[opt-einsum] && .jenkins/pytorch/test.sh' 2022-11-23T01:02:41.2469829Z Processing ./dist/torch-1.14.0a0+git1cfd385-cp37-cp37m-linux_x86_64.whl 2022-11-23T01:02:41.7802566Z Requirement already satisfied: sympy in /opt/conda/lib/python3.7/site-packages (from torch==1.14.0a0+git1cfd385) (1.10.1) 2022-11-23T01:02:41.7805958Z Requirement already satisfied: networkx in /opt/conda/lib/python3.7/site-packages (from torch==1.14.0a0+git1cfd385) (2.6.3) 2022-11-23T01:02:41.7809756Z Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.7/site-packages (from torch==1.14.0a0+git1cfd385) (4.3.0) 2022-11-23T01:02:41.7823705Z Requirement already satisfied: opt-einsum>=3.3 in /opt/conda/lib/python3.7/site-packages (from torch==1.14.0a0+git1cfd385) (3.3.0) 2022-11-23T01:02:41.7889326Z Requirement already satisfied: numpy>=1.7 in /opt/conda/lib/python3.7/site-packages (from opt-einsum>=3.3->torch==1.14.0a0+git1cfd385) (1.18.5) 2022-11-23T01:02:41.8069516Z Requirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.7/site-packages (from sympy->torch==1.14.0a0+git1cfd385) (1.2.1) 2022-11-23T01:02:42.5857616Z Installing collected packages: torch 2022-11-23T01:02:49.2406540Z Successfully installed torch-1.14.0a0+git1cfd385 2022-11-23T01:02:49.3042373Z ++ python -c 'import site; print(site.getsitepackages()[0])' 2022-11-23T01:02:49.3199254Z + TORCH_INSTALL_DIR=/opt/conda/lib/python3.7/site-packages/torch 2022-11-23T01:02:49.3199917Z + TORCH_BIN_DIR=/opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:49.3200477Z + TORCH_LIB_DIR=/opt/conda/lib/python3.7/site-packages/torch/lib 2022-11-23T01:02:49.3201108Z + TORCH_TEST_DIR=/opt/conda/lib/python3.7/site-packages/torch/test 2022-11-23T01:02:49.3201486Z + BUILD_DIR=build 2022-11-23T01:02:49.3201781Z + BUILD_RENAMED_DIR=build_renamed 2022-11-23T01:02:49.3202087Z + BUILD_BIN_DIR=build/bin 2022-11-23T01:02:49.3202369Z + export VALGRIND=ON 2022-11-23T01:02:49.3202648Z + VALGRIND=ON 2022-11-23T01:02:49.3203084Z + [[ linux-focal-py3.7-clang7-tsan == *clang9* ]] 2022-11-23T01:02:49.3203614Z + [[ linux-focal-py3.7-clang7-tsan != *bazel* ]] 2022-11-23T01:02:49.3204012Z ++ realpath build/custom_test_artifacts 2022-11-23T01:02:49.3210945Z + CUSTOM_TEST_ARTIFACT_BUILD_DIR=/var/lib/jenkins/workspace/build/custom_test_artifacts 2022-11-23T01:02:49.3212630Z ++ dirname .jenkins/pytorch/test.sh 2022-11-23T01:02:49.3218215Z + source .jenkins/pytorch/common.sh 2022-11-23T01:02:49.3221631Z +++ dirname .jenkins/pytorch/common.sh 2022-11-23T01:02:49.3226184Z ++ source .jenkins/pytorch/common_utils.sh 2022-11-23T01:02:49.3227925Z +++ declare -f -t trap_add 2022-11-23T01:02:49.3232703Z ++ set -ex 2022-11-23T01:02:49.3233072Z ++ [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2022-11-23T01:02:49.3233298Z ++ BUILD_TEST_LIBTORCH=0 2022-11-23T01:02:49.3234718Z + echo 'Environment variables' 2022-11-23T01:02:49.3235182Z Environment variables 2022-11-23T01:02:49.3235513Z + env 2022-11-23T01:02:49.3239476Z INSTALLED_DB=yes 2022-11-23T01:02:49.3240413Z GITHUB_WORKSPACE=/home/ec2-user/actions-runner/_work/pytorch/pytorch 2022-11-23T01:02:49.3240866Z BUILD_ENVIRONMENT=linux-focal-py3.7-clang7-tsan 2022-11-23T01:02:49.3241286Z PYTORCH_OVERRIDE_FLAKY_SIGNAL=1 2022-11-23T01:02:49.3241605Z HOSTNAME=1512129e002c 2022-11-23T01:02:49.3242327Z GITHUB_PATH=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/add_path_22aa5ee0-1112-4c1f-bcd7-5747886f3993 2022-11-23T01:02:49.3242831Z GITHUB_ACTION=__self 2022-11-23T01:02:49.3243038Z PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=0 2022-11-23T01:02:49.3243226Z GITHUB_RUN_NUMBER=18336 2022-11-23T01:02:49.3243408Z TEST_CONFIG=tsan 2022-11-23T01:02:49.3243840Z TORCH_NVCC_FLAGS=-Xfatbin -compress-all 2022-11-23T01:02:49.3244066Z GITHUB_TRIGGERING_ACTOR=pytorchmergebot 2022-11-23T01:02:49.3244283Z GITHUB_REF_TYPE=branch 2022-11-23T01:02:49.3244480Z TORCH_CUDA_ARCH_LIST=Maxwell 2022-11-23T01:02:49.3244743Z BASE_SHA=1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:02:49.3245132Z XLA_CUDA= 2022-11-23T01:02:49.3246127Z *** 2022-11-23T01:02:49.3246450Z CARGO_NET_GIT_FETCH_WITH_CLI=true 2022-11-23T01:02:49.3246814Z GITHUB_ACTIONS=true 2022-11-23T01:02:49.3247190Z SHA1=1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:02:49.3247582Z GITHUB_SHA=1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:02:49.3247930Z UCC_HOME=/usr 2022-11-23T01:02:49.3248270Z GITHUB_REF=refs/heads/master 2022-11-23T01:02:49.3248614Z SHARD_NUMBER=1 2022-11-23T01:02:49.3248938Z GITHUB_REF_PROTECTED=true 2022-11-23T01:02:49.3249288Z HOME=/var/lib/jenkins 2022-11-23T01:02:49.3249674Z GITHUB_API_URL=https://api.github.com 2022-11-23T01:02:49.3249966Z PYTORCH_TEST_RERUN_DISABLED_TESTS=0 2022-11-23T01:02:49.3250171Z INSTALLED_THRIFT= 2022-11-23T01:02:49.3250341Z UCX_COMMIT= 2022-11-23T01:02:49.3250507Z SCCACHE_S3_KEY_PREFIX=trunk 2022-11-23T01:02:49.3250694Z NUM_TEST_SHARDS=1 2022-11-23T01:02:49.3250862Z UCX_HOME=/usr 2022-11-23T01:02:49.3251283Z GITHUB_STATE=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/save_state_22aa5ee0-1112-4c1f-bcd7-5747886f3993 2022-11-23T01:02:49.3251589Z PYTORCH_RETRY_TEST_CASES=1 2022-11-23T01:02:49.3252059Z GITHUB_ENV=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_env_22aa5ee0-1112-4c1f-bcd7-5747886f3993 2022-11-23T01:02:49.3252499Z GITHUB_EVENT_PATH=/home/ec2-user/actions-runner/_work/_temp/_github_workflow/event.json 2022-11-23T01:02:49.3252751Z GITHUB_EVENT_NAME=push 2022-11-23T01:02:49.3252941Z GITHUB_RUN_ID=3528293554 2022-11-23T01:02:49.3253358Z GITHUB_STEP_SUMMARY=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/step_summary_22aa5ee0-1112-4c1f-bcd7-5747886f3993 2022-11-23T01:02:49.3253661Z GITHUB_ACTOR=pytorchmergebot 2022-11-23T01:02:49.3253859Z PR_NUMBER= 2022-11-23T01:02:49.3254024Z DESIRED_CUDA= 2022-11-23T01:02:49.3254186Z GITHUB_RUN_ATTEMPT=1 2022-11-23T01:02:49.3254365Z VALGRIND=ON 2022-11-23T01:02:49.3254591Z GITHUB_GRAPHQL_URL=https://api.github.com/graphql 2022-11-23T01:02:49.3254797Z TERM=xterm 2022-11-23T01:02:49.3254969Z INSTALLED_VISION=yes 2022-11-23T01:02:49.3255145Z BRANCH=master 2022-11-23T01:02:49.3255315Z OPENSSL_ROOT_DIR=/opt/openssl 2022-11-23T01:02:49.3255513Z CUDA_PATH=/usr/local/cuda 2022-11-23T01:02:49.3255877Z GITHUB_ACTION_PATH=/home/ec2-user/actions-runner/_work/pytorch/pytorch/./.github/actions/setup-linux 2022-11-23T01:02:49.3256176Z GITHUB_SERVER_URL=https://github.com 2022-11-23T01:02:49.3256364Z UCC_COMMIT= 2022-11-23T01:02:49.3256535Z INSTALLED_ANDROID= 2022-11-23T01:02:49.3256705Z SHLVL=1 2022-11-23T01:02:49.3256845Z MAX_JOBS=6 2022-11-23T01:02:49.3257010Z COMMIT_MESSAGES= 2022-11-23T01:02:49.3257188Z GITHUB_REF_NAME=master 2022-11-23T01:02:49.3257508Z XLA_CLANG_CACHE_S3_BUCKET_NAME=ossci-compiler-clang-cache-circleci-xla 2022-11-23T01:02:49.3257765Z GITHUB_JOB=test 2022-11-23T01:02:49.3257959Z GITHUB_REPOSITORY=pytorch/pytorch 2022-11-23T01:02:49.3258151Z GITHUB_RETENTION_DAYS=90 2022-11-23T01:02:49.3258342Z OPENSSL_DIR=/opt/openssl 2022-11-23T01:02:49.3258777Z GITHUB_ACTION_REPOSITORY= 2022-11-23T01:02:49.3259085Z 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 2022-11-23T01:02:49.3259372Z GITHUB_BASE_REF= 2022-11-23T01:02:49.3259539Z CI=true 2022-11-23T01:02:49.3259708Z GITHUB_REPOSITORY_OWNER=pytorch 2022-11-23T01:02:49.3259913Z INSTALLED_PROTOBUF=yes 2022-11-23T01:02:49.3260098Z GITHUB_HEAD_REF= 2022-11-23T01:02:49.3260265Z GITHUB_ACTION_REF= 2022-11-23T01:02:49.3260549Z SCCACHE_BUCKET=ossci-compiler-cache-circleci-v2 2022-11-23T01:02:49.3260786Z GITHUB_WORKFLOW=trunk 2022-11-23T01:02:49.3260974Z DEBIAN_FRONTEND=noninteractive 2022-11-23T01:02:49.3261523Z GITHUB_OUTPUT=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_output_22aa5ee0-1112-4c1f-bcd7-5747886f3993 2022-11-23T01:02:49.3261813Z PR_BODY= 2022-11-23T01:02:49.3261964Z _=/usr/bin/env 2022-11-23T01:02:49.3262177Z + echo 'Testing pytorch' 2022-11-23T01:02:49.3262364Z Testing pytorch 2022-11-23T01:02:49.3262600Z + export LANG=C.UTF-8 2022-11-23T01:02:49.3262789Z + LANG=C.UTF-8 2022-11-23T01:02:49.3262953Z + PR_NUMBER= 2022-11-23T01:02:49.3263116Z + [[ tsan == \d\e\f\a\u\l\t ]] 2022-11-23T01:02:49.3263311Z + [[ tsan == \d\i\s\t\r\i\b\u\t\e\d ]] 2022-11-23T01:02:49.3263505Z + [[ tsan == \s\l\o\w ]] 2022-11-23T01:02:49.3263799Z + [[ linux-focal-py3.7-clang7-tsan == *slow-gradcheck* ]] 2022-11-23T01:02:49.3264107Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2022-11-23T01:02:49.3264404Z + [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2022-11-23T01:02:49.3264622Z + [[ tsan == *crossref* ]] 2022-11-23T01:02:49.3264793Z + [[ tsan == *dynamo* ]] 2022-11-23T01:02:49.3264974Z + [[ tsan == *inductor* ]] 2022-11-23T01:02:49.3265243Z + [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2022-11-23T01:02:49.3265534Z + [[ linux-focal-py3.7-clang7-tsan != *-bazel-* ]] 2022-11-23T01:02:49.3265806Z + pip_install --user ninja==1.10.2 2022-11-23T01:02:49.3266095Z + pip install --progress-bar off --user ninja==1.10.2 2022-11-23T01:02:49.7278401Z Collecting ninja==1.10.2 2022-11-23T01:02:49.7455575Z Downloading ninja-1.10.2-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (108 kB) 2022-11-23T01:02:50.4777175Z Installing collected packages: ninja 2022-11-23T01:02:50.4864860Z  WARNING: The script ninja is installed in '/var/lib/jenkins/.local/bin' which is not on PATH. 2022-11-23T01:02:50.4865424Z Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. 2022-11-23T01:02:50.4912709Z Successfully installed ninja-1.10.2 2022-11-23T01:02:50.5589528Z + 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 2022-11-23T01:02:50.5590274Z + 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 2022-11-23T01:02:50.5591174Z + [[ linux-focal-py3.7-clang7-tsan == *asan* ]] 2022-11-23T01:02:50.5591770Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2022-11-23T01:02:50.5592180Z + export PYTORCH_TEST_WITH_TSAN=1 2022-11-23T01:02:50.5592385Z + PYTORCH_TEST_WITH_TSAN=1 2022-11-23T01:02:50.5592593Z + [[ tsan == \n\o\g\p\u\_\N\O\_\A\V\X\2 ]] 2022-11-23T01:02:50.5592806Z + [[ tsan == \n\o\g\p\u\_\A\V\X\5\1\2 ]] 2022-11-23T01:02:50.5597536Z + [[ linux-focal-py3.7-clang7-tsan == *tbb* ]] 2022-11-23T01:02:50.5608796Z + [[ linux-focal-py3.7-clang7-tsan == *libtorch* ]] 2022-11-23T01:02:50.5609393Z + [[ linux-focal-py3.7-clang7-tsan == *-bazel-* ]] 2022-11-23T01:02:50.5609762Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2022-11-23T01:02:50.5613099Z + [[ tsan == *backward* ]] 2022-11-23T01:02:50.5613528Z + [[ tsan == *xla* ]] 2022-11-23T01:02:50.5614281Z + [[ tsan == \j\i\t\_\l\e\g\a\c\y ]] 2022-11-23T01:02:50.5614776Z + [[ linux-focal-py3.7-clang7-tsan == *libtorch* ]] 2022-11-23T01:02:50.5615013Z + [[ tsan == distributed ]] 2022-11-23T01:02:50.5615222Z + [[ tsan == deploy ]] 2022-11-23T01:02:50.5615422Z + [[ tsan == *inductor_distributed* ]] 2022-11-23T01:02:50.5615607Z + [[ tsan == *dynamo* ]] 2022-11-23T01:02:50.5615786Z + [[ tsan == *dynamo* ]] 2022-11-23T01:02:50.5615982Z + [[ tsan == *inductor_huggingface* ]] 2022-11-23T01:02:50.5616171Z + [[ tsan == *inductor_timm* ]] 2022-11-23T01:02:50.5616375Z + [[ tsan == *inductor_torchbench* ]] 2022-11-23T01:02:50.5616575Z + [[ tsan == *inductor* ]] 2022-11-23T01:02:50.5616734Z + [[ 1 == 1 ]] 2022-11-23T01:02:50.5616928Z + [[ 1 -gt 1 ]] 2022-11-23T01:02:50.5617090Z + [[ 1 == 2 ]] 2022-11-23T01:02:50.5617261Z + [[ 1 -gt 2 ]] 2022-11-23T01:02:50.5617520Z + [[ linux-focal-py3.7-clang7-tsan == *vulkan* ]] 2022-11-23T01:02:50.5618040Z + [[ linux-focal-py3.7-clang7-tsan == *-bazel-* ]] 2022-11-23T01:02:50.5618404Z + [[ linux-focal-py3.7-clang7-tsan == *-mobile-lightweight-dispatch* ]] 2022-11-23T01:02:50.5618933Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2022-11-23T01:02:50.5619147Z + test_libtorch 2022-11-23T01:02:50.5619462Z + [[ linux-focal-py3.7-clang7-tsan != *rocm* ]] 2022-11-23T01:02:50.5619715Z + echo 'Testing libtorch' 2022-11-23T01:02:50.5619900Z Testing libtorch 2022-11-23T01:02:50.5620298Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libbackend_with_compiler.so /opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:50.5626366Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libjitbackend_test.so /opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:50.5635518Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so /opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:50.5644116Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libshm.so /opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:50.5652184Z + 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 2022-11-23T01:02:50.5660114Z + ln -sf '/opt/conda/lib/python3.7/site-packages/torch/lib/libtbb*' /opt/conda/lib/python3.7/site-packages/torch/bin 2022-11-23T01:02:50.5668832Z + TEST_REPORTS_DIR=test/test-reports/cpp-unittest/test_libtorch 2022-11-23T01:02:50.5669279Z + mkdir -p test/test-reports/cpp-unittest/test_libtorch 2022-11-23T01:02:50.5669620Z + python tools/download_mnist.py --quiet -d test/cpp/api/mnist 2022-11-23T01:02:50.5682463Z + [[ linux-focal-py3.7-clang7-tsan != *-tsan* ]] 2022-11-23T01:02:50.5682776Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2022-11-23T01:02:50.5683283Z + /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 2022-11-23T01:02:50.6110554Z Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz ... 2022-11-23T01:02:50.9280704Z Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz ... 2022-11-23T01:02:50.9512419Z Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz ... 2022-11-23T01:02:51.0191128Z Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz ... 2022-11-23T01:02:54.2022048Z CUDA not available. Disabling CUDA and MultiCUDA tests 2022-11-23T01:02:54.2068950Z Note: Google Test filter = -*CUDA:*_CUDA:*_MultiCUDA 2022-11-23T01:02:54.2069353Z [==========] Running 568 tests from 118 test suites. 2022-11-23T01:02:54.2069669Z [----------] Global test environment set-up. 2022-11-23T01:02:54.2069996Z [----------] 2 tests from AddIfThenElseOpTest 2022-11-23T01:02:54.2070415Z [ RUN ] AddIfThenElseOpTest.AddIfThenElseOpSimple 2022-11-23T01:02:54.2551844Z [ OK ] AddIfThenElseOpTest.AddIfThenElseOpSimple (48 ms) 2022-11-23T01:02:54.2552350Z [ RUN ] AddIfThenElseOpTest.NoIfThenElseOpMultipleOutputs 2022-11-23T01:02:54.2558233Z [ OK ] AddIfThenElseOpTest.NoIfThenElseOpMultipleOutputs (0 ms) 2022-11-23T01:02:54.2558788Z [----------] 2 tests from AddIfThenElseOpTest (48 ms total) 2022-11-23T01:02:54.2558969Z 2022-11-23T01:02:54.2559134Z [----------] 15 tests from TopologicalMoveTest 2022-11-23T01:02:54.2559453Z [ RUN ] TopologicalMoveTest.SplitsDeps 2022-11-23T01:02:54.2567862Z [ OK ] TopologicalMoveTest.SplitsDeps (0 ms) 2022-11-23T01:02:54.2568414Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardSimple 2022-11-23T01:02:54.2575143Z [ OK ] TopologicalMoveTest.MoveAfterBackwardSimple (0 ms) 2022-11-23T01:02:54.2576000Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardInvalid 2022-11-23T01:02:54.2582719Z [ OK ] TopologicalMoveTest.MoveAfterBackwardInvalid (0 ms) 2022-11-23T01:02:54.2583279Z [ RUN ] TopologicalMoveTest.MoveAfterNoOp 2022-11-23T01:02:54.2589761Z [ OK ] TopologicalMoveTest.MoveAfterNoOp (0 ms) 2022-11-23T01:02:54.2590475Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardMultipleDeps 2022-11-23T01:02:54.2597266Z [ OK ] TopologicalMoveTest.MoveAfterBackwardMultipleDeps (0 ms) 2022-11-23T01:02:54.2597910Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardNonZeroWorkingSet 2022-11-23T01:02:54.2604608Z [ OK ] TopologicalMoveTest.MoveAfterBackwardNonZeroWorkingSet (0 ms) 2022-11-23T01:02:54.2605213Z [ RUN ] TopologicalMoveTest.MoveAfterForwardSimple 2022-11-23T01:02:54.2611448Z [ OK ] TopologicalMoveTest.MoveAfterForwardSimple (0 ms) 2022-11-23T01:02:54.2612064Z [ RUN ] TopologicalMoveTest.MoveAfterForwardNonZeroWorkingSet 2022-11-23T01:02:54.2618784Z [ OK ] TopologicalMoveTest.MoveAfterForwardNonZeroWorkingSet (0 ms) 2022-11-23T01:02:54.2619392Z [ RUN ] TopologicalMoveTest.MoveBeforeForwardSimple 2022-11-23T01:02:54.2625637Z [ OK ] TopologicalMoveTest.MoveBeforeForwardSimple (0 ms) 2022-11-23T01:02:54.2626272Z [ RUN ] TopologicalMoveTest.MoveBeforeBackwardSimple 2022-11-23T01:02:54.2632822Z [ OK ] TopologicalMoveTest.MoveBeforeBackwardSimple (0 ms) 2022-11-23T01:02:54.2633401Z [ RUN ] TopologicalMoveTest.MoveBeforeNoOp 2022-11-23T01:02:54.2639573Z [ OK ] TopologicalMoveTest.MoveBeforeNoOp (0 ms) 2022-11-23T01:02:54.2639992Z [ RUN ] TopologicalMoveTest.MoveBeforeForwardWithDeps 2022-11-23T01:02:54.2646805Z [ OK ] TopologicalMoveTest.MoveBeforeForwardWithDeps (0 ms) 2022-11-23T01:02:54.2647443Z [ RUN ] TopologicalMoveTest.MoveBeforeBackwardWithDeps 2022-11-23T01:02:54.2653934Z [ OK ] TopologicalMoveTest.MoveBeforeBackwardWithDeps (0 ms) 2022-11-23T01:02:54.2654534Z [ RUN ] TopologicalMoveTest.DepsDisallowMove 2022-11-23T01:02:54.2664602Z [ OK ] TopologicalMoveTest.DepsDisallowMove (1 ms) 2022-11-23T01:02:54.2665291Z [ RUN ] TopologicalMoveTest.MoveAfterBeforeWithDeps 2022-11-23T01:02:54.2672785Z [ OK ] TopologicalMoveTest.MoveAfterBeforeWithDeps (0 ms) 2022-11-23T01:02:54.2673460Z [----------] 15 tests from TopologicalMoveTest (11 ms total) 2022-11-23T01:02:54.2673637Z 2022-11-23T01:02:54.2673804Z [----------] 6 tests from AliasAnalysisTest 2022-11-23T01:02:54.2674148Z [ RUN ] AliasAnalysisTest.AliasingMutationBlocksMoves 2022-11-23T01:02:54.3184480Z [ OK ] AliasAnalysisTest.AliasingMutationBlocksMoves (50 ms) 2022-11-23T01:02:54.3184962Z [ RUN ] AliasAnalysisTest.AliasingMutationBlocksMoves2 2022-11-23T01:02:54.3192248Z [ OK ] AliasAnalysisTest.AliasingMutationBlocksMoves2 (0 ms) 2022-11-23T01:02:54.3192982Z [ RUN ] AliasAnalysisTest.SideEffectsBlockMoves 2022-11-23T01:02:54.3194932Z [ OK ] AliasAnalysisTest.SideEffectsBlockMoves (0 ms) 2022-11-23T01:02:54.3195560Z [ RUN ] AliasAnalysisTest.MovingAcrossInnerBlocks 2022-11-23T01:02:54.3203862Z [ OK ] AliasAnalysisTest.MovingAcrossInnerBlocks (0 ms) 2022-11-23T01:02:54.3204469Z [ RUN ] AliasAnalysisTest.NoneHasNoWriters 2022-11-23T01:02:54.3210628Z [ OK ] AliasAnalysisTest.NoneHasNoWriters (0 ms) 2022-11-23T01:02:54.3211298Z [ RUN ] AliasAnalysisTest.SafeToChangeAliasingRelationship 2022-11-23T01:02:54.3224686Z [ OK ] AliasAnalysisTest.SafeToChangeAliasingRelationship (1 ms) 2022-11-23T01:02:54.3225397Z [----------] 6 tests from AliasAnalysisTest (55 ms total) 2022-11-23T01:02:54.3225809Z 2022-11-23T01:02:54.3225980Z [----------] 4 tests from WriteTrackingTest 2022-11-23T01:02:54.3226271Z [ RUN ] WriteTrackingTest.Basic 2022-11-23T01:02:54.3232105Z [ OK ] WriteTrackingTest.Basic (0 ms) 2022-11-23T01:02:54.3232792Z [ RUN ] WriteTrackingTest.IsMutable 2022-11-23T01:02:54.3236573Z [ OK ] WriteTrackingTest.IsMutable (0 ms) 2022-11-23T01:02:54.3237147Z [ RUN ] WriteTrackingTest.IsImmutable 2022-11-23T01:02:54.3241186Z [ OK ] WriteTrackingTest.IsImmutable (0 ms) 2022-11-23T01:02:54.3241776Z [ RUN ] WriteTrackingTest.HasWriters 2022-11-23T01:02:54.3247481Z [ OK ] WriteTrackingTest.HasWriters (0 ms) 2022-11-23T01:02:54.3248102Z [----------] 4 tests from WriteTrackingTest (2 ms total) 2022-11-23T01:02:54.3248346Z 2022-11-23T01:02:54.3248525Z [----------] 13 tests from ContainerAliasingTest 2022-11-23T01:02:54.3248868Z [ RUN ] ContainerAliasingTest.MayContainAlias 2022-11-23T01:02:54.3258852Z [ OK ] ContainerAliasingTest.MayContainAlias (1 ms) 2022-11-23T01:02:54.3259564Z [ RUN ] ContainerAliasingTest.MayContainAlias_cast 2022-11-23T01:02:54.3270356Z [ OK ] ContainerAliasingTest.MayContainAlias_cast (1 ms) 2022-11-23T01:02:54.3271017Z [ RUN ] ContainerAliasingTest.PrimitveValuesDontAliasContainers 2022-11-23T01:02:54.3278949Z [ OK ] ContainerAliasingTest.PrimitveValuesDontAliasContainers (0 ms) 2022-11-23T01:02:54.3279520Z [ RUN ] ContainerAliasingTest.UnionAliasing 2022-11-23T01:02:54.3286382Z [ OK ] ContainerAliasingTest.UnionAliasing (0 ms) 2022-11-23T01:02:54.3286975Z [ RUN ] ContainerAliasingTest.InputsCanAliasOutputs 2022-11-23T01:02:54.3291378Z [ OK ] ContainerAliasingTest.InputsCanAliasOutputs (0 ms) 2022-11-23T01:02:54.3291995Z [ RUN ] ContainerAliasingTest.NestedTupleConstruct 2022-11-23T01:02:54.3303200Z [ OK ] ContainerAliasingTest.NestedTupleConstruct (1 ms) 2022-11-23T01:02:54.3303771Z [ RUN ] ContainerAliasingTest.NestedTypes 2022-11-23T01:02:54.3312274Z [ OK ] ContainerAliasingTest.NestedTypes (0 ms) 2022-11-23T01:02:54.3312847Z [ RUN ] ContainerAliasingTest.Simple 2022-11-23T01:02:54.3317616Z [ OK ] ContainerAliasingTest.Simple (0 ms) 2022-11-23T01:02:54.3318173Z [ RUN ] ContainerAliasingTest.Lists 2022-11-23T01:02:54.3324333Z [ OK ] ContainerAliasingTest.Lists (0 ms) 2022-11-23T01:02:54.3324912Z [ RUN ] ContainerAliasingTest.Lists2 2022-11-23T01:02:54.3340185Z [ OK ] ContainerAliasingTest.Lists2 (1 ms) 2022-11-23T01:02:54.3340782Z [ RUN ] ContainerAliasingTest.Conservative 2022-11-23T01:02:54.3359685Z [ OK ] ContainerAliasingTest.Conservative (1 ms) 2022-11-23T01:02:54.3360311Z [ RUN ] ContainerAliasingTest.MovesAcrossContainedWrites 2022-11-23T01:02:54.3385558Z [ OK ] ContainerAliasingTest.MovesAcrossContainedWrites (2 ms) 2022-11-23T01:02:54.3386214Z [ RUN ] ContainerAliasingTest.MovesAcrossContainedWritesNested 2022-11-23T01:02:54.3413198Z [ OK ] ContainerAliasingTest.MovesAcrossContainedWritesNested (2 ms) 2022-11-23T01:02:54.3413874Z [----------] 13 tests from ContainerAliasingTest (16 ms total) 2022-11-23T01:02:54.3414076Z 2022-11-23T01:02:54.3414341Z [----------] 3 tests from WildcardsTest 2022-11-23T01:02:54.3414859Z [ RUN ] WildcardsTest.Basic 2022-11-23T01:02:54.3429794Z [ OK ] WildcardsTest.Basic (1 ms) 2022-11-23T01:02:54.3430506Z [ RUN ] WildcardsTest.TypeIsolation 2022-11-23T01:02:54.3440653Z [ OK ] WildcardsTest.TypeIsolation (1 ms) 2022-11-23T01:02:54.3441036Z [ RUN ] WildcardsTest.InvariantContainerAliasing 2022-11-23T01:02:54.3455832Z [ OK ] WildcardsTest.InvariantContainerAliasing (1 ms) 2022-11-23T01:02:54.3456215Z [----------] 3 tests from WildcardsTest (4 ms total) 2022-11-23T01:02:54.3456376Z 2022-11-23T01:02:54.3456554Z [----------] 18 tests from AliasRegistrationTest 2022-11-23T01:02:54.3457009Z [ RUN ] AliasRegistrationTest.ConservativeWithInferredSchema 2022-11-23T01:02:54.3466140Z [ OK ] AliasRegistrationTest.ConservativeWithInferredSchema (0 ms) 2022-11-23T01:02:54.3466603Z [ RUN ] AliasRegistrationTest.ConservativeWithSpecifiedSchema 2022-11-23T01:02:54.3476480Z [ OK ] AliasRegistrationTest.ConservativeWithSpecifiedSchema (1 ms) 2022-11-23T01:02:54.3477012Z [ RUN ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError 2022-11-23T01:02:54.3515388Z [ OK ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError (3 ms) 2022-11-23T01:02:54.3515996Z [ RUN ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError2 2022-11-23T01:02:54.3551788Z [ OK ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError2 (3 ms) 2022-11-23T01:02:54.3552370Z [ RUN ] AliasRegistrationTest.FromSchemaWithInferredSchemaShouldError 2022-11-23T01:02:54.3567151Z [ OK ] AliasRegistrationTest.FromSchemaWithInferredSchemaShouldError (1 ms) 2022-11-23T01:02:54.3567693Z [ RUN ] AliasRegistrationTest.FromSchemaInferredPure 2022-11-23T01:02:54.3577179Z [ OK ] AliasRegistrationTest.FromSchemaInferredPure (0 ms) 2022-11-23T01:02:54.3577597Z [ RUN ] AliasRegistrationTest.FromSchemaAliased 2022-11-23T01:02:54.3588454Z [ OK ] AliasRegistrationTest.FromSchemaAliased (1 ms) 2022-11-23T01:02:54.3588832Z [ RUN ] AliasRegistrationTest.FromSchemaPure 2022-11-23T01:02:54.3599386Z [ OK ] AliasRegistrationTest.FromSchemaPure (1 ms) 2022-11-23T01:02:54.3599741Z [ RUN ] AliasRegistrationTest.PureNoSchema 2022-11-23T01:02:54.3608924Z [ OK ] AliasRegistrationTest.PureNoSchema (0 ms) 2022-11-23T01:02:54.3609286Z [ RUN ] AliasRegistrationTest.PureWithSchema 2022-11-23T01:02:54.3619038Z [ OK ] AliasRegistrationTest.PureWithSchema (0 ms) 2022-11-23T01:02:54.3619514Z [ RUN ] AliasRegistrationTest.PureWithAnnotationsShouldError 2022-11-23T01:02:54.3655093Z [ OK ] AliasRegistrationTest.PureWithAnnotationsShouldError (3 ms) 2022-11-23T01:02:54.3655525Z [ RUN ] AliasRegistrationTest.AliasMoveAtenListOp 2022-11-23T01:02:54.3665534Z [ OK ] AliasRegistrationTest.AliasMoveAtenListOp (1 ms) 2022-11-23T01:02:54.3666047Z [ RUN ] AliasRegistrationTest.AliasMoveForTupleConstructWithSingleUseAsGraphOutput 2022-11-23T01:02:54.3671285Z [ OK ] AliasRegistrationTest.AliasMoveForTupleConstructWithSingleUseAsGraphOutput (0 ms) 2022-11-23T01:02:54.3671866Z [ RUN ] AliasRegistrationTest.RecursiveSubgraphTupleContainment 2022-11-23T01:02:54.3678332Z [ OK ] AliasRegistrationTest.RecursiveSubgraphTupleContainment (0 ms) 2022-11-23T01:02:54.3678847Z [ RUN ] AliasRegistrationTest.WildcardAliasForTupleConstructWithUses 2022-11-23T01:02:54.3689442Z [ OK ] AliasRegistrationTest.WildcardAliasForTupleConstructWithUses (1 ms) 2022-11-23T01:02:54.3690003Z [ RUN ] AliasRegistrationTest.ATenSplitIntListAliasCheck 2022-11-23T01:02:54.3705145Z [ OK ] AliasRegistrationTest.ATenSplitIntListAliasCheck (1 ms) 2022-11-23T01:02:54.3705571Z [ RUN ] AliasRegistrationTest.ATenSplitIntAliasCheck 2022-11-23T01:02:54.3719472Z [ OK ] AliasRegistrationTest.ATenSplitIntAliasCheck (1 ms) 2022-11-23T01:02:54.3719999Z [ RUN ] AliasRegistrationTest.PureWithAnnotationsShouldError2 2022-11-23T01:02:54.3755864Z [ OK ] AliasRegistrationTest.PureWithAnnotationsShouldError2 (3 ms) 2022-11-23T01:02:54.3756317Z [----------] 18 tests from AliasRegistrationTest (29 ms total) 2022-11-23T01:02:54.3756495Z 2022-11-23T01:02:54.3756657Z [----------] 2 tests from IRNonDeterminismTest 2022-11-23T01:02:54.3757026Z [ RUN ] IRNonDeterminismTest.Basic 2022-11-23T01:02:54.3762918Z [ OK ] IRNonDeterminismTest.Basic (0 ms) 2022-11-23T01:02:54.3763271Z [ RUN ] IRNonDeterminismTest.DropoutSpecialCase 2022-11-23T01:02:54.3773236Z [ OK ] IRNonDeterminismTest.DropoutSpecialCase (1 ms) 2022-11-23T01:02:54.3773631Z [----------] 2 tests from IRNonDeterminismTest (1 ms total) 2022-11-23T01:02:54.3773800Z 2022-11-23T01:02:54.3774017Z [----------] 1 test from NonDeterminismBackwardsCompatibility 2022-11-23T01:02:54.3774456Z [ RUN ] NonDeterminismBackwardsCompatibility.BackwardsCompatibility 2022-11-23T01:02:54.3819558Z [ OK ] NonDeterminismBackwardsCompatibility.BackwardsCompatibility (4 ms) 2022-11-23T01:02:54.3820055Z [----------] 1 test from NonDeterminismBackwardsCompatibility (4 ms total) 2022-11-23T01:02:54.3820328Z 2022-11-23T01:02:54.3820482Z [----------] 3 tests from AutodiffTest 2022-11-23T01:02:54.3820748Z [ RUN ] AutodiffTest.ADFormulas 2022-11-23T01:02:55.0434344Z [ OK ] AutodiffTest.ADFormulas (661 ms) 2022-11-23T01:02:55.0434741Z [ RUN ] AutodiffTest.Differentiate 2022-11-23T01:02:55.0488624Z [ OK ] AutodiffTest.Differentiate (5 ms) 2022-11-23T01:02:55.0489007Z [ RUN ] AutodiffTest.DifferentiateWithRequiresGrad 2022-11-23T01:02:55.0847238Z [ OK ] AutodiffTest.DifferentiateWithRequiresGrad (35 ms) 2022-11-23T01:02:55.0847689Z [----------] 3 tests from AutodiffTest (702 ms total) 2022-11-23T01:02:55.0847859Z 2022-11-23T01:02:55.0848079Z [----------] 1 test from AutodiffRemoveUnusedGradientsTest 2022-11-23T01:02:55.0848448Z [ RUN ] AutodiffRemoveUnusedGradientsTest.Linear 2022-11-23T01:02:55.1011998Z [ OK ] AutodiffRemoveUnusedGradientsTest.Linear (16 ms) 2022-11-23T01:02:55.1012781Z [----------] 1 test from AutodiffRemoveUnusedGradientsTest (16 ms total) 2022-11-23T01:02:55.1013044Z 2022-11-23T01:02:55.1013203Z [----------] 1 test from UpgraderLoad 2022-11-23T01:02:55.1013520Z [ RUN ] UpgraderLoad.CanPopulateUpgradersGraph 2022-11-23T01:02:55.1610552Z [ OK ] UpgraderLoad.CanPopulateUpgradersGraph (59 ms) 2022-11-23T01:02:55.1611234Z [----------] 1 test from UpgraderLoad (59 ms total) 2022-11-23T01:02:55.1611520Z 2022-11-23T01:02:55.1611823Z [----------] 4 tests from OpReplacementTest 2022-11-23T01:02:55.1612462Z [ RUN ] OpReplacementTest.ReplaceDivInSimpleFunction 2022-11-23T01:02:55.1639336Z [ OK ] OpReplacementTest.ReplaceDivInSimpleFunction (2 ms) 2022-11-23T01:02:55.1640000Z [ RUN ] OpReplacementTest.ReplaceTwoOpsInSimpleFunction 2022-11-23T01:02:55.1672587Z [ OK ] OpReplacementTest.ReplaceTwoOpsInSimpleFunction (3 ms) 2022-11-23T01:02:55.1673251Z [ RUN ] OpReplacementTest.ReplaceDivInNestedFunction 2022-11-23T01:02:55.1711060Z [ OK ] OpReplacementTest.ReplaceDivInNestedFunction (3 ms) 2022-11-23T01:02:55.1711725Z [ RUN ] OpReplacementTest.ReplaceTestSubcmulInSimpleFunction 2022-11-23T01:02:55.1738857Z [ OK ] OpReplacementTest.ReplaceTestSubcmulInSimpleFunction (2 ms) 2022-11-23T01:02:55.1739429Z [----------] 4 tests from OpReplacementTest (12 ms total) 2022-11-23T01:02:55.1739676Z 2022-11-23T01:02:55.1739835Z [----------] 4 tests from UpgraderUtils 2022-11-23T01:02:55.1740240Z [ RUN ] UpgraderUtils.FindCorrectUpgrader 2022-11-23T01:02:55.1740962Z [ OK ] UpgraderUtils.FindCorrectUpgrader (0 ms) 2022-11-23T01:02:55.1741369Z [ RUN ] UpgraderUtils.IsVersionMapSorted 2022-11-23T01:02:55.1741723Z [ OK ] UpgraderUtils.IsVersionMapSorted (0 ms) 2022-11-23T01:02:55.1742061Z [ RUN ] UpgraderUtils.FindIfOpIsCurrent 2022-11-23T01:02:55.1742472Z [ OK ] UpgraderUtils.FindIfOpIsCurrent (0 ms) 2022-11-23T01:02:55.1742917Z [ RUN ] UpgraderUtils.CanLoadHistoricOp 2022-11-23T01:02:55.1743731Z [ OK ] UpgraderUtils.CanLoadHistoricOp (0 ms) 2022-11-23T01:02:55.1744345Z [----------] 4 tests from UpgraderUtils (0 ms total) 2022-11-23T01:02:55.1744601Z 2022-11-23T01:02:55.1744749Z [----------] 9 tests from BackendTest 2022-11-23T01:02:55.1745025Z [ RUN ] BackendTest.ToBackend 2022-11-23T01:02:55.2467998Z [ OK ] BackendTest.ToBackend (72 ms) 2022-11-23T01:02:55.2468395Z [ RUN ] BackendTest.ToBackendNotAvailable 2022-11-23T01:02:55.2806101Z [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) 2022-11-23T01:02:55.3059851Z [ OK ] BackendTest.ToBackendNotAvailable (59 ms) 2022-11-23T01:02:55.3060231Z [ RUN ] BackendTest.TestCompiler 2022-11-23T01:02:55.3911618Z [ OK ] BackendTest.TestCompiler (85 ms) 2022-11-23T01:02:55.3912006Z [ RUN ] BackendTest.TestCompilerWithStringTable 2022-11-23T01:02:55.4761277Z [ OK ] BackendTest.TestCompilerWithStringTable (84 ms) 2022-11-23T01:02:55.4761641Z [ RUN ] BackendTest.TestComposite 2022-11-23T01:02:55.6393540Z [ OK ] BackendTest.TestComposite (163 ms) 2022-11-23T01:02:55.6393905Z [ RUN ] BackendTest.TestPrimDtype 2022-11-23T01:02:55.6452147Z [ OK ] BackendTest.TestPrimDtype (5 ms) 2022-11-23T01:02:55.6452575Z [ RUN ] BackendTest.TestCompositeWithSetStates 2022-11-23T01:02:55.8146556Z [ OK ] BackendTest.TestCompositeWithSetStates (169 ms) 2022-11-23T01:02:55.8146995Z [ RUN ] BackendTest.TestConsistencyOfCompositeWithSetStates 2022-11-23T01:02:56.1363888Z [ OK ] BackendTest.TestConsistencyOfCompositeWithSetStates (321 ms) 2022-11-23T01:02:56.1364326Z [ RUN ] BackendTest.TestCompilerNotSupport 2022-11-23T01:02:56.1402624Z [ OK ] BackendTest.TestCompilerNotSupport (3 ms) 2022-11-23T01:02:56.1403306Z [----------] 9 tests from BackendTest (965 ms total) 2022-11-23T01:02:56.1403465Z 2022-11-23T01:02:56.1403637Z [----------] 6 tests from BackendTestDebugInfo 2022-11-23T01:02:56.1403992Z [ RUN ] BackendTestDebugInfo.TestCompiler 2022-11-23T01:02:56.2228291Z [ OK ] BackendTestDebugInfo.TestCompiler (82 ms) 2022-11-23T01:02:56.2228967Z [ RUN ] BackendTestDebugInfo.TestCompilerWithStringTable 2022-11-23T01:02:56.3067293Z [ OK ] BackendTestDebugInfo.TestCompilerWithStringTable (83 ms) 2022-11-23T01:02:56.3067873Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithModuleHierarchy 2022-11-23T01:02:56.3959416Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithModuleHierarchy (89 ms) 2022-11-23T01:02:56.3960132Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithTwoLevelModuleHierarchy 2022-11-23T01:02:56.4873456Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithTwoLevelModuleHierarchy (91 ms) 2022-11-23T01:02:56.4874118Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithLoweredSubModule 2022-11-23T01:02:56.5817792Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithLoweredSubModule (94 ms) 2022-11-23T01:02:56.5818890Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithSelectiveLoweredSubModule 2022-11-23T01:02:56.6804574Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithSelectiveLoweredSubModule (98 ms) 2022-11-23T01:02:56.6805555Z [----------] 6 tests from BackendTestDebugInfo (539 ms total) 2022-11-23T01:02:56.6806087Z 2022-11-23T01:02:56.6806384Z [----------] 4 tests from ClassImportTest 2022-11-23T01:02:56.6806883Z [ RUN ] ClassImportTest.Basic 2022-11-23T01:02:56.6889767Z [ OK ] ClassImportTest.Basic (8 ms) 2022-11-23T01:02:56.6890104Z [ RUN ] ClassImportTest.ScriptObject 2022-11-23T01:02:56.7031316Z [ OK ] ClassImportTest.ScriptObject (14 ms) 2022-11-23T01:02:56.7031633Z [ RUN ] ClassImportTest.ClassDerive 2022-11-23T01:02:56.7041346Z [ OK ] ClassImportTest.ClassDerive (0 ms) 2022-11-23T01:02:56.7041676Z [ RUN ] ClassImportTest.CustomClass 2022-11-23T01:02:56.7060824Z [ OK ] ClassImportTest.CustomClass (1 ms) 2022-11-23T01:02:56.7061451Z [----------] 4 tests from ClassImportTest (25 ms total) 2022-11-23T01:02:56.7061626Z 2022-11-23T01:02:56.7061785Z [----------] 1 test from ClassParserTest 2022-11-23T01:02:56.7062068Z [ RUN ] ClassParserTest.Basic 2022-11-23T01:02:56.7066625Z [ OK ] ClassParserTest.Basic (0 ms) 2022-11-23T01:02:56.7067241Z [----------] 1 test from ClassParserTest (0 ms total) 2022-11-23T01:02:56.7067542Z 2022-11-23T01:02:56.7067782Z [----------] 3 tests from ClassTypeTest 2022-11-23T01:02:56.7068285Z [ RUN ] ClassTypeTest.AddRemoveAttr 2022-11-23T01:02:56.7068837Z [ OK ] ClassTypeTest.AddRemoveAttr (0 ms) 2022-11-23T01:02:56.7069399Z [ RUN ] ClassTypeTest.AddRemoveConstant 2022-11-23T01:02:56.7069741Z [ OK ] ClassTypeTest.AddRemoveConstant (0 ms) 2022-11-23T01:02:56.7070168Z [ RUN ] ClassTypeTest.IdenticalTypesDifferentCus 2022-11-23T01:02:56.7085573Z [ OK ] ClassTypeTest.IdenticalTypesDifferentCus (1 ms) 2022-11-23T01:02:56.7086324Z [----------] 3 tests from ClassTypeTest (1 ms total) 2022-11-23T01:02:56.7086614Z 2022-11-23T01:02:56.7086813Z [----------] 2 tests from TestCodeTemplate 2022-11-23T01:02:56.7087262Z [ RUN ] TestCodeTemplate.Copying 2022-11-23T01:02:56.7088385Z [ OK ] TestCodeTemplate.Copying (0 ms) 2022-11-23T01:02:56.7088938Z [ RUN ] TestCodeTemplate.Formatting 2022-11-23T01:02:56.7089266Z [ OK ] TestCodeTemplate.Formatting (0 ms) 2022-11-23T01:02:56.7089610Z [----------] 2 tests from TestCodeTemplate (0 ms total) 2022-11-23T01:02:56.7089781Z 2022-11-23T01:02:56.7089923Z [----------] 13 tests from ConcatOptTest 2022-11-23T01:02:56.7090290Z [ RUN ] ConcatOptTest.SimpleCommonInputsEliminationPrefix 2022-11-23T01:02:56.7489835Z [ OK ] ConcatOptTest.SimpleCommonInputsEliminationPrefix (39 ms) 2022-11-23T01:02:56.7490343Z [ RUN ] ConcatOptTest.SimpleCommonInputsEliminationSuffix 2022-11-23T01:02:56.7849917Z [ OK ] ConcatOptTest.SimpleCommonInputsEliminationSuffix (35 ms) 2022-11-23T01:02:56.7850455Z [ RUN ] ConcatOptTest.CommonInputsEliminationWithDifferentOrderInputs 2022-11-23T01:02:56.8221794Z [ OK ] ConcatOptTest.CommonInputsEliminationWithDifferentOrderInputs (37 ms) 2022-11-23T01:02:56.8222294Z [ RUN ] ConcatOptTest.MoreCommonInputsElimination 2022-11-23T01:02:56.8832216Z [ OK ] ConcatOptTest.MoreCommonInputsElimination (61 ms) 2022-11-23T01:02:56.8832629Z [ RUN ] ConcatOptTest.ExpandConcat 2022-11-23T01:02:56.9131922Z [ OK ] ConcatOptTest.ExpandConcat (29 ms) 2022-11-23T01:02:56.9132291Z [ RUN ] ConcatOptTest.ConcatWithoutResultShape 2022-11-23T01:02:56.9412466Z [ OK ] ConcatOptTest.ConcatWithoutResultShape (28 ms) 2022-11-23T01:02:56.9413094Z [ RUN ] ConcatOptTest.ConcatWithoutInputShape 2022-11-23T01:02:56.9694719Z [ OK ] ConcatOptTest.ConcatWithoutInputShape (28 ms) 2022-11-23T01:02:56.9695132Z [ RUN ] ConcatOptTest.UseVariadicCat 2022-11-23T01:02:57.0272978Z [ OK ] ConcatOptTest.UseVariadicCat (57 ms) 2022-11-23T01:02:57.0273453Z [ RUN ] ConcatOptTest.UseVariadicCatWithMultipleListUses 2022-11-23T01:02:57.0534603Z [ OK ] ConcatOptTest.UseVariadicCatWithMultipleListUses (26 ms) 2022-11-23T01:02:57.0535128Z [ RUN ] ConcatOptTest.UseVariadicCatWithListMutationAfterCat 2022-11-23T01:02:57.0870992Z [ OK ] ConcatOptTest.UseVariadicCatWithListMutationAfterCat (33 ms) 2022-11-23T01:02:57.0871545Z [ RUN ] ConcatOptTest.UseVariadicCatWithListMutationBeforeCat 2022-11-23T01:02:57.1249496Z [ OK ] ConcatOptTest.UseVariadicCatWithListMutationBeforeCat (37 ms) 2022-11-23T01:02:57.1250090Z [ RUN ] ConcatOptTest.UseVariadicCatWithMultipleListMutations 2022-11-23T01:02:57.1846666Z [ OK ] ConcatOptTest.UseVariadicCatWithMultipleListMutations (59 ms) 2022-11-23T01:02:57.1847270Z [ RUN ] ConcatOptTest.RemoveListMutationUseVariadicCatAndCommonInputsElimination 2022-11-23T01:02:57.2258287Z [ OK ] ConcatOptTest.RemoveListMutationUseVariadicCatAndCommonInputsElimination (41 ms) 2022-11-23T01:02:57.2259122Z [----------] 13 tests from ConcatOptTest (516 ms total) 2022-11-23T01:02:57.2259288Z 2022-11-23T01:02:57.2259468Z [----------] 1 test from OptimizeConcatTest 2022-11-23T01:02:57.2259829Z [ RUN ] OptimizeConcatTest.UseVariadicCatReplaceMultiple 2022-11-23T01:02:57.2678947Z [ OK ] OptimizeConcatTest.UseVariadicCatReplaceMultiple (42 ms) 2022-11-23T01:02:57.2679528Z [----------] 1 test from OptimizeConcatTest (42 ms total) 2022-11-23T01:02:57.2679704Z 2022-11-23T01:02:57.2679867Z [----------] 3 tests from ConcatOpt 2022-11-23T01:02:57.2680174Z [ RUN ] ConcatOpt.CombineConcatsSimpleCase 2022-11-23T01:02:57.2699116Z [ OK ] ConcatOpt.CombineConcatsSimpleCase (2 ms) 2022-11-23T01:02:57.2699700Z [ RUN ] ConcatOpt.CombineConcatsLongChain 2022-11-23T01:02:57.2724328Z [ OK ] ConcatOpt.CombineConcatsLongChain (2 ms) 2022-11-23T01:02:57.2724929Z [ RUN ] ConcatOpt.CombineConcatsMutation 2022-11-23T01:02:57.2737889Z [ OK ] ConcatOpt.CombineConcatsMutation (1 ms) 2022-11-23T01:02:57.2738630Z [----------] 3 tests from ConcatOpt (5 ms total) 2022-11-23T01:02:57.2738773Z 2022-11-23T01:02:57.2738948Z [----------] 4 tests from ConstantPoolingTest 2022-11-23T01:02:57.2739244Z [ RUN ] ConstantPoolingTest.Int 2022-11-23T01:02:57.2743271Z [ OK ] ConstantPoolingTest.Int (0 ms) 2022-11-23T01:02:57.2743900Z [ RUN ] ConstantPoolingTest.PoolingAcrossBlocks 2022-11-23T01:02:57.2756844Z [ OK ] ConstantPoolingTest.PoolingAcrossBlocks (1 ms) 2022-11-23T01:02:57.2757281Z [ RUN ] ConstantPoolingTest.PoolingDifferentDevices 2022-11-23T01:02:57.2784865Z [ OK ] ConstantPoolingTest.PoolingDifferentDevices (2 ms) 2022-11-23T01:02:57.2785265Z [ RUN ] ConstantPoolingTest.DictConstantPooling 2022-11-23T01:02:57.2796900Z [ OK ] ConstantPoolingTest.DictConstantPooling (1 ms) 2022-11-23T01:02:57.2797568Z [----------] 4 tests from ConstantPoolingTest (5 ms total) 2022-11-23T01:02:57.2797746Z 2022-11-23T01:02:57.2797905Z [----------] 1 test from CleanupPassTest 2022-11-23T01:02:57.2798177Z [ RUN ] CleanupPassTest.Basic 2022-11-23T01:02:57.2821225Z [ OK ] CleanupPassTest.Basic (2 ms) 2022-11-23T01:02:57.2821607Z [----------] 1 test from CleanupPassTest (2 ms total) 2022-11-23T01:02:57.2821771Z 2022-11-23T01:02:57.2822158Z [----------] 1 test from CreateAutodiffSubgraphsTest 2022-11-23T01:02:57.2822508Z [ RUN ] CreateAutodiffSubgraphsTest.Basic 2022-11-23T01:02:57.2874488Z [ OK ] CreateAutodiffSubgraphsTest.Basic (5 ms) 2022-11-23T01:02:57.2874892Z [----------] 1 test from CreateAutodiffSubgraphsTest (5 ms total) 2022-11-23T01:02:57.2875203Z 2022-11-23T01:02:57.2875348Z [----------] 4 tests from CustomClassTest 2022-11-23T01:02:57.2875668Z [ RUN ] CustomClassTest.TorchbindIValueAPI 2022-11-23T01:02:57.2959730Z [ OK ] CustomClassTest.TorchbindIValueAPI (8 ms) 2022-11-23T01:02:57.2960141Z [ RUN ] CustomClassTest.ScalarTypeClass 2022-11-23T01:02:57.2979912Z [ OK ] CustomClassTest.ScalarTypeClass (2 ms) 2022-11-23T01:02:57.2980278Z [ RUN ] CustomClassTest.TestDocString 2022-11-23T01:02:57.2980640Z [ OK ] CustomClassTest.TestDocString (0 ms) 2022-11-23T01:02:57.2980982Z [ RUN ] CustomClassTest.Serialization 2022-11-23T01:02:57.3208950Z [ OK ] CustomClassTest.Serialization (22 ms) 2022-11-23T01:02:57.3209332Z [----------] 4 tests from CustomClassTest (33 ms total) 2022-11-23T01:02:57.3209511Z 2022-11-23T01:02:57.3209723Z [----------] 5 tests from CustomOperatorTest 2022-11-23T01:02:57.3210044Z [ RUN ] CustomOperatorTest.InferredSchema 2022-11-23T01:02:57.3225526Z [ OK ] CustomOperatorTest.InferredSchema (1 ms) 2022-11-23T01:02:57.3225905Z [ RUN ] CustomOperatorTest.ExplicitSchema 2022-11-23T01:02:57.3242130Z [ OK ] CustomOperatorTest.ExplicitSchema (1 ms) 2022-11-23T01:02:57.3242493Z [ RUN ] CustomOperatorTest.ListParameters 2022-11-23T01:02:57.3254214Z [ OK ] CustomOperatorTest.ListParameters (1 ms) 2022-11-23T01:02:57.3254571Z [ RUN ] CustomOperatorTest.ListParameters2 2022-11-23T01:02:57.3269781Z [ OK ] CustomOperatorTest.ListParameters2 (1 ms) 2022-11-23T01:02:57.3270201Z [ RUN ] CustomOperatorTest.Aliasing 2022-11-23T01:02:57.3288109Z [ OK ] CustomOperatorTest.Aliasing (1 ms) 2022-11-23T01:02:57.3288767Z [----------] 5 tests from CustomOperatorTest (7 ms total) 2022-11-23T01:02:57.3289114Z 2022-11-23T01:02:57.3289302Z [----------] 2 tests from TestCustomOperator 2022-11-23T01:02:57.3289669Z [ RUN ] TestCustomOperator.OperatorGeneratorUndeclared 2022-11-23T01:02:57.3290104Z [ OK ] TestCustomOperator.OperatorGeneratorUndeclared (0 ms) 2022-11-23T01:02:57.3290499Z [ RUN ] TestCustomOperator.OperatorGeneratorBasic 2022-11-23T01:02:57.3298374Z [ OK ] TestCustomOperator.OperatorGeneratorBasic (0 ms) 2022-11-23T01:02:57.3298899Z [----------] 2 tests from TestCustomOperator (1 ms total) 2022-11-23T01:02:57.3299072Z 2022-11-23T01:02:57.3299245Z [----------] 1 test from EliminateDeadCodeTest 2022-11-23T01:02:57.3299551Z [ RUN ] EliminateDeadCodeTest.Basic 2022-11-23T01:02:57.3327118Z [ OK ] EliminateDeadCodeTest.Basic (2 ms) 2022-11-23T01:02:57.3327513Z [----------] 1 test from EliminateDeadCodeTest (2 ms total) 2022-11-23T01:02:57.3327693Z 2022-11-23T01:02:57.3327837Z [----------] 2 tests from FuserTest 2022-11-23T01:02:57.3328106Z [ RUN ] FuserTest.FusionAliasing 2022-11-23T01:02:57.3368904Z [ OK ] FuserTest.FusionAliasing (4 ms) 2022-11-23T01:02:57.3369211Z [ RUN ] FuserTest.KernelCaching 2022-11-23T01:02:57.3418307Z [ OK ] FuserTest.KernelCaching (4 ms) 2022-11-23T01:02:57.3418772Z [----------] 2 tests from FuserTest (9 ms total) 2022-11-23T01:02:57.3418927Z 2022-11-23T01:02:57.3419093Z [----------] 1 test from GraphExecutorTest 2022-11-23T01:02:57.3419413Z [ RUN ] GraphExecutorTest.runAsync_executor 2022-11-23T01:02:57.3727197Z [ OK ] GraphExecutorTest.runAsync_executor (30 ms) 2022-11-23T01:02:57.3727623Z [----------] 1 test from GraphExecutorTest (30 ms total) 2022-11-23T01:02:57.3727792Z 2022-11-23T01:02:57.3727959Z [----------] 5 tests from GraphIteratorTest 2022-11-23T01:02:57.3728346Z [ RUN ] GraphIteratorTest.ConstantReturnGraph 2022-11-23T01:02:57.3729152Z [ OK ] GraphIteratorTest.ConstantReturnGraph (0 ms) 2022-11-23T01:02:57.3729580Z [ RUN ] GraphIteratorTest.GraphWithParameters 2022-11-23T01:02:57.3733418Z [ OK ] GraphIteratorTest.GraphWithParameters (0 ms) 2022-11-23T01:02:57.3733767Z [ RUN ] GraphIteratorTest.GraphWithIf 2022-11-23T01:02:57.3743444Z [ OK ] GraphIteratorTest.GraphWithIf (0 ms) 2022-11-23T01:02:57.3743841Z [ RUN ] GraphIteratorTest.GraphWithNestedIf 2022-11-23T01:02:57.3768123Z [ OK ] GraphIteratorTest.GraphWithNestedIf (2 ms) 2022-11-23T01:02:57.3768570Z [ RUN ] GraphIteratorTest.GraphWithLoop 2022-11-23T01:02:57.3781719Z [ OK ] GraphIteratorTest.GraphWithLoop (1 ms) 2022-11-23T01:02:57.3782376Z [----------] 5 tests from GraphIteratorTest (5 ms total) 2022-11-23T01:02:57.3782658Z 2022-11-23T01:02:57.3782847Z [----------] 1 test from CSDebugInfoSerializaitionTest 2022-11-23T01:02:57.3783215Z [ RUN ] CSDebugInfoSerializaitionTest.TwoSubmodules 2022-11-23T01:02:57.3848533Z [ OK ] CSDebugInfoSerializaitionTest.TwoSubmodules (6 ms) 2022-11-23T01:02:57.3848961Z [----------] 1 test from CSDebugInfoSerializaitionTest (6 ms total) 2022-11-23T01:02:57.3849139Z 2022-11-23T01:02:57.3849286Z [----------] 1 test from InlinerTest 2022-11-23T01:02:57.3849547Z [ RUN ] InlinerTest.Basic 2022-11-23T01:02:57.3891408Z [ OK ] InlinerTest.Basic (4 ms) 2022-11-23T01:02:57.3891710Z [----------] 1 test from InlinerTest (4 ms total) 2022-11-23T01:02:57.3891867Z 2022-11-23T01:02:57.3892022Z [----------] 1 test from InterfaceTest 2022-11-23T01:02:57.3892359Z [ RUN ] InterfaceTest.ModuleInterfaceSerialization 2022-11-23T01:02:57.4126025Z [ OK ] InterfaceTest.ModuleInterfaceSerialization (23 ms) 2022-11-23T01:02:57.4126704Z [----------] 1 test from InterfaceTest (23 ms total) 2022-11-23T01:02:57.4126877Z 2022-11-23T01:02:57.4127035Z [----------] 4 tests from TypeCheckTest 2022-11-23T01:02:57.4127326Z [ RUN ] TypeCheckTest.MatchingType 2022-11-23T01:02:57.4143926Z [ OK ] TypeCheckTest.MatchingType (1 ms) 2022-11-23T01:02:57.4144271Z [ RUN ] TypeCheckTest.SizeMismatch 2022-11-23T01:02:57.4156569Z [ OK ] TypeCheckTest.SizeMismatch (1 ms) 2022-11-23T01:02:57.4156902Z [ RUN ] TypeCheckTest.GradientMismatch 2022-11-23T01:02:57.4168468Z [ OK ] TypeCheckTest.GradientMismatch (1 ms) 2022-11-23T01:02:57.4168893Z [ RUN ] TypeCheckTest.ScalarTypeMismatch 2022-11-23T01:02:57.4181417Z [ OK ] TypeCheckTest.ScalarTypeMismatch (1 ms) 2022-11-23T01:02:57.4181866Z [----------] 4 tests from TypeCheckTest (5 ms total) 2022-11-23T01:02:57.4182016Z 2022-11-23T01:02:57.4182182Z [----------] 3 tests from InterpreterTest 2022-11-23T01:02:57.4182509Z [ RUN ] InterpreterTest.IgnorableArgsInSchema 2022-11-23T01:02:57.4242365Z [ OK ] InterpreterTest.IgnorableArgsInSchema (6 ms) 2022-11-23T01:02:57.4242769Z [ RUN ] InterpreterTest.IgnorableArgsInSchemaWithOut 2022-11-23T01:02:57.4250972Z [ OK ] InterpreterTest.IgnorableArgsInSchemaWithOut (0 ms) 2022-11-23T01:02:57.4251352Z [ RUN ] InterpreterTest.runAsyncBasicTest 2022-11-23T01:02:57.4463706Z [ OK ] InterpreterTest.runAsyncBasicTest (21 ms) 2022-11-23T01:02:57.4464269Z [----------] 3 tests from InterpreterTest (28 ms total) 2022-11-23T01:02:57.4464436Z 2022-11-23T01:02:57.4464869Z [----------] 1 test from EnableRethrowCaughtExceptionTest 2022-11-23T01:02:57.4465454Z [ RUN ] EnableRethrowCaughtExceptionTest.EnableRethrowCaughtExceptionTestRethrowsCaughtException 2022-11-23T01:02:57.4686002Z [ OK ] EnableRethrowCaughtExceptionTest.EnableRethrowCaughtExceptionTestRethrowsCaughtException (22 ms) 2022-11-23T01:02:57.4686917Z [----------] 1 test from EnableRethrowCaughtExceptionTest (22 ms total) 2022-11-23T01:02:57.4687124Z 2022-11-23T01:02:57.4687266Z [----------] 4 tests from IRTest 2022-11-23T01:02:57.4687528Z [ RUN ] IRTest.Attributes 2022-11-23T01:02:57.4687801Z [ OK ] IRTest.Attributes (0 ms) 2022-11-23T01:02:57.4688046Z [ RUN ] IRTest.Blocks 2022-11-23T01:02:57.4713807Z [ OK ] IRTest.Blocks (2 ms) 2022-11-23T01:02:57.4714164Z [ RUN ] IRTest.CommonAncestor 2022-11-23T01:02:57.4728077Z [ OK ] IRTest.CommonAncestor (1 ms) 2022-11-23T01:02:57.4728444Z [ RUN ] IRTest.OperatorMap 2022-11-23T01:02:57.4740626Z [ OK ] IRTest.OperatorMap (1 ms) 2022-11-23T01:02:57.4740961Z [----------] 4 tests from IRTest (5 ms total) 2022-11-23T01:02:57.4741105Z 2022-11-23T01:02:57.4741259Z [----------] 21 tests from IRParserTest 2022-11-23T01:02:57.4741529Z [ RUN ] IRParserTest.Basic 2022-11-23T01:02:57.4746694Z [ OK ] IRParserTest.Basic (0 ms) 2022-11-23T01:02:57.4746975Z [ RUN ] IRParserTest.NestedBlock 2022-11-23T01:02:57.4753673Z [ OK ] IRParserTest.NestedBlock (0 ms) 2022-11-23T01:02:57.4753956Z [ RUN ] IRParserTest.If 2022-11-23T01:02:57.4767579Z [ OK ] IRParserTest.If (1 ms) 2022-11-23T01:02:57.4767837Z [ RUN ] IRParserTest.If2 2022-11-23T01:02:57.4781509Z [ OK ] IRParserTest.If2 (1 ms) 2022-11-23T01:02:57.4781917Z [ RUN ] IRParserTest.InferredTypeIsTensor 2022-11-23T01:02:57.4783323Z [ OK ] IRParserTest.InferredTypeIsTensor (0 ms) 2022-11-23T01:02:57.4783707Z [ RUN ] IRParserTest.ValueReuse 2022-11-23T01:02:57.4786373Z [ OK ] IRParserTest.ValueReuse (0 ms) 2022-11-23T01:02:57.4786720Z [ RUN ] IRParserTest.Attributes 2022-11-23T01:02:57.4798547Z [ OK ] IRParserTest.Attributes (1 ms) 2022-11-23T01:02:57.4798886Z [ RUN ] IRParserTest.OptionalTypes 2022-11-23T01:02:57.4802365Z [ OK ] IRParserTest.OptionalTypes (0 ms) 2022-11-23T01:02:57.4802723Z [ RUN ] IRParserTest.StarTensor 2022-11-23T01:02:57.4806568Z [ OK ] IRParserTest.StarTensor (0 ms) 2022-11-23T01:02:57.4806939Z [ RUN ] IRParserTest.UnshapedTensor 2022-11-23T01:02:57.4810481Z [ OK ] IRParserTest.UnshapedTensor (0 ms) 2022-11-23T01:02:57.4810841Z [ RUN ] IRParserTest.ShapedTensor 2022-11-23T01:02:57.4814620Z [ OK ] IRParserTest.ShapedTensor (0 ms) 2022-11-23T01:02:57.4814976Z [ RUN ] IRParserTest.NestedContrainer 2022-11-23T01:02:57.4822217Z [ OK ] IRParserTest.NestedContrainer (0 ms) 2022-11-23T01:02:57.4822641Z [ RUN ] IRParserTest.MalformedShapeAnnotation 2022-11-23T01:02:57.4826035Z [ OK ] IRParserTest.MalformedShapeAnnotation (0 ms) 2022-11-23T01:02:57.4826434Z [ RUN ] IRParserTest.FileCheck 2022-11-23T01:02:57.4828737Z [ OK ] IRParserTest.FileCheck (0 ms) 2022-11-23T01:02:57.4829083Z [ RUN ] IRParserTest.Strides 2022-11-23T01:02:57.4833559Z [ OK ] IRParserTest.Strides (0 ms) 2022-11-23T01:02:57.4833917Z [ RUN ] IRParserTest.MalformedStrides 2022-11-23T01:02:57.4836472Z [ OK ] IRParserTest.MalformedStrides (0 ms) 2022-11-23T01:02:57.4836853Z [ RUN ] IRParserTest.TensorShapes 2022-11-23T01:02:57.4841364Z [ OK ] IRParserTest.TensorShapes (0 ms) 2022-11-23T01:02:57.4841786Z [ RUN ] IRParserTest.DeviceAndRequiresGradTensors 2022-11-23T01:02:57.4853156Z [ OK ] IRParserTest.DeviceAndRequiresGradTensors (1 ms) 2022-11-23T01:02:57.4853578Z [ RUN ] IRParserTest.ListConstant 2022-11-23T01:02:57.4856644Z [ OK ] IRParserTest.ListConstant (0 ms) 2022-11-23T01:02:57.4857040Z [ RUN ] IRParserTest.PartialStarTensor 2022-11-23T01:02:57.4859559Z [ OK ] IRParserTest.PartialStarTensor (0 ms) 2022-11-23T01:02:57.4859978Z [ RUN ] IRParserTest.ComplexTensorAttributes 2022-11-23T01:02:57.4864705Z [ OK ] IRParserTest.ComplexTensorAttributes (0 ms) 2022-11-23T01:02:57.4865368Z [----------] 21 tests from IRParserTest (12 ms total) 2022-11-23T01:02:57.4865615Z 2022-11-23T01:02:57.4865769Z [----------] 2 tests from JitTypeTest 2022-11-23T01:02:57.4866036Z [ RUN ] JitTypeTest.IsComplete 2022-11-23T01:02:57.4866344Z [ OK ] JitTypeTest.IsComplete (0 ms) 2022-11-23T01:02:57.4866636Z [ RUN ] JitTypeTest.UnifyTypes 2022-11-23T01:02:57.4868758Z [ OK ] JitTypeTest.UnifyTypes (0 ms) 2022-11-23T01:02:57.4869167Z [----------] 2 tests from JitTypeTest (0 ms total) 2022-11-23T01:02:57.4869325Z 2022-11-23T01:02:57.4869496Z [----------] 42 tests from LiteInterpreterTest 2022-11-23T01:02:57.4869836Z [ RUN ] LiteInterpreterTest.UpsampleNearest2d 2022-11-23T01:02:57.5038900Z [ OK ] LiteInterpreterTest.UpsampleNearest2d (16 ms) 2022-11-23T01:02:57.5039293Z [ RUN ] LiteInterpreterTest.CheckAttrAccess 2022-11-23T01:02:57.5055338Z [ OK ] LiteInterpreterTest.CheckAttrAccess (1 ms) 2022-11-23T01:02:57.5055734Z [ RUN ] LiteInterpreterTest.MethodInvocation 2022-11-23T01:02:57.5408226Z [ OK ] LiteInterpreterTest.MethodInvocation (35 ms) 2022-11-23T01:02:57.5408758Z [ RUN ] LiteInterpreterTest.Conv 2022-11-23T01:02:57.5409070Z [ OK ] LiteInterpreterTest.Conv (0 ms) 2022-11-23T01:02:57.5409368Z [ RUN ] LiteInterpreterTest.Inline 2022-11-23T01:02:57.5529785Z [ OK ] LiteInterpreterTest.Inline (12 ms) 2022-11-23T01:02:57.5530327Z [ RUN ] LiteInterpreterTest.Tuple 2022-11-23T01:02:57.5621293Z [ OK ] LiteInterpreterTest.Tuple (9 ms) 2022-11-23T01:02:57.5621613Z [ RUN ] LiteInterpreterTest.AtenFormat 2022-11-23T01:02:57.5700969Z [ OK ] LiteInterpreterTest.AtenFormat (8 ms) 2022-11-23T01:02:57.5701306Z [ RUN ] LiteInterpreterTest.PrimDevice 2022-11-23T01:02:57.5752531Z [ OK ] LiteInterpreterTest.PrimDevice (5 ms) 2022-11-23T01:02:57.5752891Z [ RUN ] LiteInterpreterTest.Dict 2022-11-23T01:02:57.5842267Z [ OK ] LiteInterpreterTest.Dict (8 ms) 2022-11-23T01:02:57.5842598Z [ RUN ] LiteInterpreterTest.List 2022-11-23T01:02:57.5965351Z [ OK ] LiteInterpreterTest.List (12 ms) 2022-11-23T01:02:57.5965975Z [ RUN ] LiteInterpreterTest.PrimOverload 2022-11-23T01:02:57.5966405Z [ OK ] LiteInterpreterTest.PrimOverload (0 ms) 2022-11-23T01:02:57.5966723Z [ RUN ] LiteInterpreterTest.Prim 2022-11-23T01:02:57.6019566Z [ OK ] LiteInterpreterTest.Prim (5 ms) 2022-11-23T01:02:57.6020119Z [ RUN ] LiteInterpreterTest.PrimScalar 2022-11-23T01:02:57.6079764Z [ OK ] LiteInterpreterTest.PrimScalar (6 ms) 2022-11-23T01:02:57.6080387Z [ RUN ] LiteInterpreterTest.LoadOrigJit 2022-11-23T01:02:57.6168553Z [ OK ] LiteInterpreterTest.LoadOrigJit (8 ms) 2022-11-23T01:02:57.6169156Z [ RUN ] LiteInterpreterTest.WrongMethodName 2022-11-23T01:02:57.6231522Z [ OK ] LiteInterpreterTest.WrongMethodName (6 ms) 2022-11-23T01:02:57.6232355Z [ RUN ] LiteInterpreterTest.SetState 2022-11-23T01:02:57.6650253Z [ OK ] LiteInterpreterTest.SetState (41 ms) 2022-11-23T01:02:57.6650869Z [ RUN ] LiteInterpreterTest.BuiltinClass 2022-11-23T01:02:57.6766757Z [ OK ] LiteInterpreterTest.BuiltinClass (11 ms) 2022-11-23T01:02:57.6767676Z [ RUN ] LiteInterpreterTest.BuiltinFunction 2022-11-23T01:02:57.6813581Z [ OK ] LiteInterpreterTest.BuiltinFunction (4 ms) 2022-11-23T01:02:57.6814358Z [ RUN ] LiteInterpreterTest.GetRuntimeByteCodeVersion 2022-11-23T01:02:57.6814814Z [ OK ] LiteInterpreterTest.GetRuntimeByteCodeVersion (0 ms) 2022-11-23T01:02:57.6815235Z [ RUN ] LiteInterpreterTest.GetRuntimeOperatorsVersion 2022-11-23T01:02:57.6815649Z [ OK ] LiteInterpreterTest.GetRuntimeOperatorsVersion (0 ms) 2022-11-23T01:02:57.6816045Z [ RUN ] LiteInterpreterTest.GetByteCodeVersion 2022-11-23T01:02:57.6820396Z [ OK ] LiteInterpreterTest.GetByteCodeVersion (0 ms) 2022-11-23T01:02:57.6820972Z [ RUN ] LiteInterpreterTest.GetContainTypes 2022-11-23T01:02:57.6844289Z [ OK ] LiteInterpreterTest.GetContainTypes (2 ms) 2022-11-23T01:02:57.6845006Z [ RUN ] LiteInterpreterTest.BackPortByteCodeModelAllVersions 2022-11-23T01:02:58.2896640Z [ OK ] LiteInterpreterTest.BackPortByteCodeModelAllVersions (604 ms) 2022-11-23T01:02:58.2897323Z [ RUN ] LiteInterpreterTest.GetRuntimeOpsAndInfo 2022-11-23T01:02:58.3612053Z [ OK ] LiteInterpreterTest.GetRuntimeOpsAndInfo (71 ms) 2022-11-23T01:02:58.3612747Z [ RUN ] LiteInterpreterTest.isCompatibleSuccess 2022-11-23T01:02:58.4319130Z [ OK ] LiteInterpreterTest.isCompatibleSuccess (70 ms) 2022-11-23T01:02:58.4319812Z [ RUN ] LiteInterpreterTest.isCompatibleFail 2022-11-23T01:02:58.5726138Z [ OK ] LiteInterpreterTest.isCompatibleFail (140 ms) 2022-11-23T01:02:58.5726807Z [ RUN ] LiteInterpreterTest.Eval 2022-11-23T01:02:58.5838792Z [ OK ] LiteInterpreterTest.Eval (11 ms) 2022-11-23T01:02:58.5839234Z [ RUN ] LiteInterpreterTest.FindWrongMethodName 2022-11-23T01:02:58.5885537Z [ OK ] LiteInterpreterTest.FindWrongMethodName (4 ms) 2022-11-23T01:02:58.5886084Z [ RUN ] LiteInterpreterTest.FindAndRunMethod 2022-11-23T01:02:58.5978267Z [ OK ] LiteInterpreterTest.FindAndRunMethod (9 ms) 2022-11-23T01:02:58.5979163Z [ RUN ] LiteInterpreterTest.RunMethodVariadic 2022-11-23T01:02:58.6073827Z [ OK ] LiteInterpreterTest.RunMethodVariadic (9 ms) 2022-11-23T01:02:58.6074385Z [ RUN ] LiteInterpreterTest.DuplicateSetState 2022-11-23T01:02:58.6225205Z [ OK ] LiteInterpreterTest.DuplicateSetState (15 ms) 2022-11-23T01:02:58.6225594Z [ RUN ] LiteInterpreterTest.ExtraFiles 2022-11-23T01:02:58.6289342Z [ OK ] LiteInterpreterTest.ExtraFiles (6 ms) 2022-11-23T01:02:58.6289774Z [ RUN ] LiteInterpreterTest.OpNameExportFetchRootOperators 2022-11-23T01:02:58.6403155Z [ OK ] LiteInterpreterTest.OpNameExportFetchRootOperators (11 ms) 2022-11-23T01:02:58.6403618Z [ RUN ] LiteInterpreterTest.DefaultArgsConv 2022-11-23T01:02:58.6403984Z [ OK ] LiteInterpreterTest.DefaultArgsConv (0 ms) 2022-11-23T01:02:58.6404339Z [ RUN ] LiteInterpreterTest.DefaultArgsPinv 2022-11-23T01:02:58.6727602Z [ OK ] LiteInterpreterTest.DefaultArgsPinv (32 ms) 2022-11-23T01:02:58.6728138Z [ RUN ] LiteInterpreterTest.DefaultArgsTensorinvSpecifyDefault 2022-11-23T01:02:58.6823944Z [ OK ] LiteInterpreterTest.DefaultArgsTensorinvSpecifyDefault (9 ms) 2022-11-23T01:02:58.6824406Z [ RUN ] LiteInterpreterTest.DefaultArgsPinvWithOutArg 2022-11-23T01:02:58.7018413Z [ OK ] LiteInterpreterTest.DefaultArgsPinvWithOutArg (19 ms) 2022-11-23T01:02:58.7018998Z [ RUN ] LiteInterpreterTest.DefaultArgsWithOutArg 2022-11-23T01:02:58.7106282Z [ OK ] LiteInterpreterTest.DefaultArgsWithOutArg (8 ms) 2022-11-23T01:02:58.7106937Z [ RUN ] LiteInterpreterTest.TestExceptionStackWithTwoLevelModuleHierarchy 2022-11-23T01:02:58.7348487Z [ OK ] LiteInterpreterTest.TestExceptionStackWithTwoLevelModuleHierarchy (24 ms) 2022-11-23T01:02:58.7349029Z [ RUN ] LiteInterpreterTest.OperatorCacheDifferentiatesDefaultArgs 2022-11-23T01:02:58.7826493Z [ OK ] LiteInterpreterTest.OperatorCacheDifferentiatesDefaultArgs (47 ms) 2022-11-23T01:02:58.7826922Z [ RUN ] LiteInterpreterTest.OperatorSize1 2022-11-23T01:02:58.7884394Z [ OK ] LiteInterpreterTest.OperatorSize1 (5 ms) 2022-11-23T01:02:58.7884755Z [ RUN ] LiteInterpreterTest.OperatorTest2 2022-11-23T01:02:58.8094192Z [ OK ] LiteInterpreterTest.OperatorTest2 (20 ms) 2022-11-23T01:02:58.8094639Z [----------] 42 tests from LiteInterpreterTest (1322 ms total) 2022-11-23T01:02:58.8094812Z 2022-11-23T01:02:58.8094970Z [----------] 3 tests from RunTimeTest 2022-11-23T01:02:58.8095309Z [ RUN ] RunTimeTest.ParseBytecode 2022-11-23T01:02:58.8097285Z [ OK ] RunTimeTest.ParseBytecode (0 ms) 2022-11-23T01:02:58.8097645Z [ RUN ] RunTimeTest.ParseOperator 2022-11-23T01:02:58.8100551Z [ OK ] RunTimeTest.ParseOperator (0 ms) 2022-11-23T01:02:58.8100871Z [ RUN ] RunTimeTest.RuntimeCall 2022-11-23T01:02:58.8105737Z [ OK ] RunTimeTest.RuntimeCall (0 ms) 2022-11-23T01:02:58.8106196Z [----------] 3 tests from RunTimeTest (1 ms total) 2022-11-23T01:02:58.8106393Z 2022-11-23T01:02:58.8106592Z [----------] 11 tests from LiteInterpreterUpgraderTest 2022-11-23T01:02:58.8106965Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorV2 2022-11-23T01:02:58.8121081Z [ OK ] LiteInterpreterUpgraderTest.DivTensorV2 (1 ms) 2022-11-23T01:02:58.8121555Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorOutV2 2022-11-23T01:02:58.8133646Z [ OK ] LiteInterpreterUpgraderTest.DivTensorOutV2 (1 ms) 2022-11-23T01:02:58.8134337Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorInplaceV2 2022-11-23T01:02:58.8146107Z [ OK ] LiteInterpreterUpgraderTest.DivTensorInplaceV2 (1 ms) 2022-11-23T01:02:58.8146739Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarFloatV2 2022-11-23T01:02:58.8158109Z [ OK ] LiteInterpreterUpgraderTest.DivScalarFloatV2 (1 ms) 2022-11-23T01:02:58.8158546Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarReciprocalFloatV2 2022-11-23T01:02:58.8170168Z expect output: 0.5000 2022-11-23T01:02:58.8170673Z [ CPUFloatType{1} ]actual output: 0.5000 2022-11-23T01:02:58.8171575Z [ CPUFloatType{1} ][ OK ] LiteInterpreterUpgraderTest.DivScalarReciprocalFloatV2 (1 ms) 2022-11-23T01:02:58.8172071Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarReciprocalIntV2 2022-11-23T01:02:58.8183887Z [ OK ] LiteInterpreterUpgraderTest.DivScalarReciprocalIntV2 (1 ms) 2022-11-23T01:02:58.8184345Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarScalarV2 2022-11-23T01:02:58.8193201Z [ OK ] LiteInterpreterUpgraderTest.DivScalarScalarV2 (0 ms) 2022-11-23T01:02:58.8193619Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarIntV2 2022-11-23T01:02:58.8204285Z [ OK ] LiteInterpreterUpgraderTest.DivScalarIntV2 (1 ms) 2022-11-23T01:02:58.8204706Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarInplaceFloatV2 2022-11-23T01:02:58.8216343Z [ OK ] LiteInterpreterUpgraderTest.DivScalarInplaceFloatV2 (1 ms) 2022-11-23T01:02:58.8216801Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarInplaceIntV2 2022-11-23T01:02:58.8227973Z [ OK ] LiteInterpreterUpgraderTest.DivScalarInplaceIntV2 (1 ms) 2022-11-23T01:02:58.8228376Z [ RUN ] LiteInterpreterUpgraderTest.Upgrader 2022-11-23T01:02:58.8231437Z [ OK ] LiteInterpreterUpgraderTest.Upgrader (0 ms) 2022-11-23T01:02:58.8232279Z [----------] 11 tests from LiteInterpreterUpgraderTest (12 ms total) 2022-11-23T01:02:58.8232474Z 2022-11-23T01:02:58.8232663Z [----------] 29 tests from LiteInterpreterDirectTest 2022-11-23T01:02:58.8233021Z [ RUN ] LiteInterpreterDirectTest.UpsampleNearest2d 2022-11-23T01:02:58.8363449Z [ OK ] LiteInterpreterDirectTest.UpsampleNearest2d (12 ms) 2022-11-23T01:02:58.8363889Z [ RUN ] LiteInterpreterDirectTest.CheckAttrAccess 2022-11-23T01:02:58.8364349Z [ OK ] LiteInterpreterDirectTest.CheckAttrAccess (0 ms) 2022-11-23T01:02:58.8364760Z [ RUN ] LiteInterpreterDirectTest.MethodInvocation 2022-11-23T01:02:58.8437342Z hello 2022-11-23T01:02:58.8442105Z hello 3 2022-11-23T01:02:58.8535153Z hello 2022-11-23T01:02:58.8539768Z hello 3 2022-11-23T01:02:58.8598913Z hello 2022-11-23T01:02:58.8603316Z hello 3 2022-11-23T01:02:58.8606361Z [ OK ] LiteInterpreterDirectTest.MethodInvocation (24 ms) 2022-11-23T01:02:58.8607036Z [ RUN ] LiteInterpreterDirectTest.Conv 2022-11-23T01:02:58.8607384Z [ OK ] LiteInterpreterDirectTest.Conv (0 ms) 2022-11-23T01:02:58.8607708Z [ RUN ] LiteInterpreterDirectTest.Inline 2022-11-23T01:02:58.8679129Z [ OK ] LiteInterpreterDirectTest.Inline (7 ms) 2022-11-23T01:02:58.8679684Z [ RUN ] LiteInterpreterDirectTest.Tuple 2022-11-23T01:02:58.8729108Z [ OK ] LiteInterpreterDirectTest.Tuple (4 ms) 2022-11-23T01:02:58.8729669Z [ RUN ] LiteInterpreterDirectTest.Dict 2022-11-23T01:02:58.8778087Z [ OK ] LiteInterpreterDirectTest.Dict (4 ms) 2022-11-23T01:02:58.8778802Z [ RUN ] LiteInterpreterDirectTest.Prim 2022-11-23T01:02:58.8816370Z [ OK ] LiteInterpreterDirectTest.Prim (3 ms) 2022-11-23T01:02:58.8816740Z [ RUN ] LiteInterpreterDirectTest.PrimScalar 2022-11-23T01:02:58.8861116Z [ OK ] LiteInterpreterDirectTest.PrimScalar (4 ms) 2022-11-23T01:02:58.8861492Z [ RUN ] LiteInterpreterDirectTest.WrongMethodName 2022-11-23T01:02:58.8903891Z [ OK ] LiteInterpreterDirectTest.WrongMethodName (4 ms) 2022-11-23T01:02:58.8904271Z [ RUN ] LiteInterpreterDirectTest.SetState 2022-11-23T01:02:58.9195035Z [ OK ] LiteInterpreterDirectTest.SetState (29 ms) 2022-11-23T01:02:58.9195405Z [ RUN ] LiteInterpreterDirectTest.BuiltinFunction 2022-11-23T01:02:58.9214413Z [ OK ] LiteInterpreterDirectTest.BuiltinFunction (1 ms) 2022-11-23T01:02:58.9214923Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeByteCodeVersion 2022-11-23T01:02:58.9215438Z [ OK ] LiteInterpreterDirectTest.GetRuntimeByteCodeVersion (0 ms) 2022-11-23T01:02:58.9215879Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeOperatorsVersion 2022-11-23T01:02:58.9216350Z [ OK ] LiteInterpreterDirectTest.GetRuntimeOperatorsVersion (0 ms) 2022-11-23T01:02:58.9216782Z [ RUN ] LiteInterpreterDirectTest.GetByteCodeVersion 2022-11-23T01:02:58.9221279Z [ OK ] LiteInterpreterDirectTest.GetByteCodeVersion (0 ms) 2022-11-23T01:02:58.9221706Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeOpsAndInfo 2022-11-23T01:02:58.9921302Z [ OK ] LiteInterpreterDirectTest.GetRuntimeOpsAndInfo (69 ms) 2022-11-23T01:02:58.9921715Z [ RUN ] LiteInterpreterDirectTest.Eval 2022-11-23T01:02:58.9991143Z [ OK ] LiteInterpreterDirectTest.Eval (7 ms) 2022-11-23T01:02:58.9991612Z [ RUN ] LiteInterpreterDirectTest.FindWrongMethodName 2022-11-23T01:02:59.0015714Z [ OK ] LiteInterpreterDirectTest.FindWrongMethodName (2 ms) 2022-11-23T01:02:59.0016184Z [ RUN ] LiteInterpreterDirectTest.FindAndRunMethod 2022-11-23T01:02:59.0087777Z [ OK ] LiteInterpreterDirectTest.FindAndRunMethod (7 ms) 2022-11-23T01:02:59.0088314Z [ RUN ] LiteInterpreterDirectTest.RunMethodVariadic 2022-11-23T01:02:59.0155711Z [ OK ] LiteInterpreterDirectTest.RunMethodVariadic (6 ms) 2022-11-23T01:02:59.0156111Z [ RUN ] LiteInterpreterDirectTest.DuplicateSetState 2022-11-23T01:02:59.0224096Z [ OK ] LiteInterpreterDirectTest.DuplicateSetState (6 ms) 2022-11-23T01:02:59.0224616Z [ RUN ] LiteInterpreterDirectTest.OpNameExportFetchRootOperators 2022-11-23T01:02:59.0281399Z [ OK ] LiteInterpreterDirectTest.OpNameExportFetchRootOperators (5 ms) 2022-11-23T01:02:59.0282121Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsConv 2022-11-23T01:02:59.0282534Z [ OK ] LiteInterpreterDirectTest.DefaultArgsConv (0 ms) 2022-11-23T01:02:59.0282926Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsPinv 2022-11-23T01:02:59.0541255Z [ OK ] LiteInterpreterDirectTest.DefaultArgsPinv (25 ms) 2022-11-23T01:02:59.0542001Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsTensorinvSpecifyDefault 2022-11-23T01:02:59.0619333Z [ OK ] LiteInterpreterDirectTest.DefaultArgsTensorinvSpecifyDefault (7 ms) 2022-11-23T01:02:59.0619826Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsPinvWithOutArg 2022-11-23T01:02:59.0813990Z [ OK ] LiteInterpreterDirectTest.DefaultArgsPinvWithOutArg (19 ms) 2022-11-23T01:02:59.0814456Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsWithOutArg 2022-11-23T01:02:59.0877123Z [ OK ] LiteInterpreterDirectTest.DefaultArgsWithOutArg (6 ms) 2022-11-23T01:02:59.0877693Z [ RUN ] LiteInterpreterDirectTest.TestExceptionStackWithTwoLevelModuleHierarchy 2022-11-23T01:02:59.1057859Z [ OK ] LiteInterpreterDirectTest.TestExceptionStackWithTwoLevelModuleHierarchy (18 ms) 2022-11-23T01:02:59.1058648Z [ RUN ] LiteInterpreterDirectTest.OperatorCacheDifferentiatesDefaultArgs 2022-11-23T01:02:59.1354662Z [ OK ] LiteInterpreterDirectTest.OperatorCacheDifferentiatesDefaultArgs (29 ms) 2022-11-23T01:02:59.1355191Z [----------] 29 tests from LiteInterpreterDirectTest (312 ms total) 2022-11-23T01:02:59.1355418Z 2022-11-23T01:02:59.1355580Z [----------] 7 tests from LiteTrainerTest 2022-11-23T01:02:59.1355877Z [ RUN ] LiteTrainerTest.Params 2022-11-23T01:02:59.2464739Z [ OK ] LiteTrainerTest.Params (110 ms) 2022-11-23T01:02:59.2465061Z [ RUN ] LiteTrainerTest.SGD 2022-11-23T01:02:59.3569736Z [ OK ] LiteTrainerTest.SGD (110 ms) 2022-11-23T01:02:59.3570083Z [ RUN ] LiteTrainerTest.SequentialSampler 2022-11-23T01:02:59.3570479Z [ OK ] LiteTrainerTest.SequentialSampler (0 ms) 2022-11-23T01:02:59.3571038Z [ RUN ] LiteTrainerTest.RandomSamplerReturnsIndicesInCorrectRange 2022-11-23T01:02:59.3571944Z [ OK ] LiteTrainerTest.RandomSamplerReturnsIndicesInCorrectRange (0 ms) 2022-11-23T01:02:59.3572497Z [ RUN ] LiteTrainerTest.RandomSamplerReturnsLessValuesForLastBatch 2022-11-23T01:02:59.3573857Z [ OK ] LiteTrainerTest.RandomSamplerReturnsLessValuesForLastBatch (0 ms) 2022-11-23T01:02:59.3574570Z [ RUN ] LiteTrainerTest.RandomSamplerResetsWell 2022-11-23T01:02:59.3575257Z [ OK ] LiteTrainerTest.RandomSamplerResetsWell (0 ms) 2022-11-23T01:02:59.3575800Z [ RUN ] LiteTrainerTest.RandomSamplerResetsWithNewSizeWell 2022-11-23T01:02:59.3577109Z [ OK ] LiteTrainerTest.RandomSamplerResetsWithNewSizeWell (0 ms) 2022-11-23T01:02:59.3577823Z [----------] 7 tests from LiteTrainerTest (222 ms total) 2022-11-23T01:02:59.3578217Z 2022-11-23T01:02:59.3578370Z [----------] 6 tests from MobileTest 2022-11-23T01:02:59.3578948Z [ RUN ] MobileTest.SaveLoadParametersEmpty 2022-11-23T01:02:59.3633631Z [ OK ] MobileTest.SaveLoadParametersEmpty (5 ms) 2022-11-23T01:02:59.3634106Z [ RUN ] MobileTest.SaveParametersDefaultsToZip 2022-11-23T01:02:59.3635237Z [ OK ] MobileTest.SaveParametersDefaultsToZip (0 ms) 2022-11-23T01:02:59.3635676Z [ RUN ] MobileTest.SaveParametersCanUseFlatbuffer 2022-11-23T01:02:59.3639300Z [ OK ] MobileTest.SaveParametersCanUseFlatbuffer (0 ms) 2022-11-23T01:02:59.3639780Z [ RUN ] MobileTest.SaveLoadParametersUsingFlatbuffers 2022-11-23T01:02:59.3650985Z [ OK ] MobileTest.SaveLoadParametersUsingFlatbuffers (1 ms) 2022-11-23T01:02:59.3651488Z [ RUN ] MobileTest.LoadParametersUnexpectedFormatShouldThrow 2022-11-23T01:02:59.3673231Z [ OK ] MobileTest.LoadParametersUnexpectedFormatShouldThrow (2 ms) 2022-11-23T01:02:59.3673715Z [ RUN ] MobileTest.LoadParametersEmptyDataShouldThrow 2022-11-23T01:02:59.3694542Z [ OK ] MobileTest.LoadParametersEmptyDataShouldThrow (2 ms) 2022-11-23T01:02:59.3695262Z [----------] 6 tests from MobileTest (11 ms total) 2022-11-23T01:02:59.3695425Z 2022-11-23T01:02:59.3695573Z [----------] 1 test from MemoryDAGTest 2022-11-23T01:02:59.3695846Z [ RUN ] MemoryDAGTest.Basic 2022-11-23T01:02:59.3697282Z [ OK ] MemoryDAGTest.Basic (0 ms) 2022-11-23T01:02:59.3697792Z [----------] 1 test from MemoryDAGTest (0 ms total) 2022-11-23T01:02:59.3698041Z 2022-11-23T01:02:59.3698344Z [----------] 1 test from InternedStringsTest 2022-11-23T01:02:59.3698936Z [ RUN ] InternedStringsTest.Basic 2022-11-23T01:02:59.3699247Z [ OK ] InternedStringsTest.Basic (0 ms) 2022-11-23T01:02:59.3699592Z [----------] 1 test from InternedStringsTest (0 ms total) 2022-11-23T01:02:59.3699798Z 2022-11-23T01:02:59.3700062Z [----------] 1 test from FromQualStringTest 2022-11-23T01:02:59.3700437Z [ RUN ] FromQualStringTest.Basic 2022-11-23T01:02:59.3700897Z [ OK ] FromQualStringTest.Basic (0 ms) 2022-11-23T01:02:59.3701509Z [----------] 1 test from FromQualStringTest (0 ms total) 2022-11-23T01:02:59.3701759Z 2022-11-23T01:02:59.3701907Z [----------] 1 test from THNNConvTest 2022-11-23T01:02:59.3702164Z [ RUN ] THNNConvTest.Basic 2022-11-23T01:02:59.3831545Z [ OK ] THNNConvTest.Basic (12 ms) 2022-11-23T01:02:59.3831901Z [----------] 1 test from THNNConvTest (12 ms total) 2022-11-23T01:02:59.3832101Z 2022-11-23T01:02:59.3832310Z [----------] 1 test from ATenNativeBatchNormTest 2022-11-23T01:02:59.3832616Z [ RUN ] ATenNativeBatchNormTest.Basic 2022-11-23T01:02:59.3938048Z [ OK ] ATenNativeBatchNormTest.Basic (10 ms) 2022-11-23T01:02:59.3938445Z [----------] 1 test from ATenNativeBatchNormTest (10 ms total) 2022-11-23T01:02:59.3938815Z 2022-11-23T01:02:59.3938970Z [----------] 2 tests from CustomFusionTest 2022-11-23T01:02:59.3939268Z [ RUN ] CustomFusionTest.Basic 2022-11-23T01:02:59.3954431Z [ OK ] CustomFusionTest.Basic (1 ms) 2022-11-23T01:02:59.3954807Z [ RUN ] CustomFusionTest.NestedBlocks 2022-11-23T01:02:59.3979794Z [ OK ] CustomFusionTest.NestedBlocks (2 ms) 2022-11-23T01:02:59.3980477Z [----------] 2 tests from CustomFusionTest (4 ms total) 2022-11-23T01:02:59.3980781Z 2022-11-23T01:02:59.3981081Z [----------] 1 test from ControlFlowTest 2022-11-23T01:02:59.3981444Z [ RUN ] ControlFlowTest.Basic 2022-11-23T01:02:59.4069722Z [ OK ] ControlFlowTest.Basic (8 ms) 2022-11-23T01:02:59.4070708Z [----------] 1 test from ControlFlowTest (8 ms total) 2022-11-23T01:02:59.4070997Z 2022-11-23T01:02:59.4071242Z [----------] 1 test from ProtoTest 2022-11-23T01:02:59.4071710Z [ RUN ] ProtoTest.Basic 2022-11-23T01:02:59.4072177Z [ OK ] ProtoTest.Basic (0 ms) 2022-11-23T01:02:59.4072803Z [----------] 1 test from ProtoTest (0 ms total) 2022-11-23T01:02:59.4073042Z 2022-11-23T01:02:59.4073306Z [----------] 9 tests from SchemaParserTest 2022-11-23T01:02:59.4073822Z [ RUN ] SchemaParserTest.NestedArrays 2022-11-23T01:02:59.4074703Z [ OK ] SchemaParserTest.NestedArrays (0 ms) 2022-11-23T01:02:59.4075255Z [ RUN ] SchemaParserTest.OutVariant 2022-11-23T01:02:59.4083060Z [ OK ] SchemaParserTest.OutVariant (0 ms) 2022-11-23T01:02:59.4083678Z [ RUN ] SchemaParserTest.NamedReturns 2022-11-23T01:02:59.4086345Z [ OK ] SchemaParserTest.NamedReturns (0 ms) 2022-11-23T01:02:59.4086906Z [ RUN ] SchemaParserTest.Futures 2022-11-23T01:02:59.4088052Z [ OK ] SchemaParserTest.Futures (0 ms) 2022-11-23T01:02:59.4088646Z [ RUN ] SchemaParserTest.AnnotatedAliasSets 2022-11-23T01:02:59.4091303Z [ OK ] SchemaParserTest.AnnotatedAliasSets (0 ms) 2022-11-23T01:02:59.4092052Z [ RUN ] SchemaParserTest.TensorListAnnotatedAliasSets 2022-11-23T01:02:59.4095166Z [ OK ] SchemaParserTest.TensorListAnnotatedAliasSets (0 ms) 2022-11-23T01:02:59.4095962Z [ RUN ] SchemaParserTest.AnnotatedAliasWithoutBeforeSet 2022-11-23T01:02:59.4098353Z [ OK ] SchemaParserTest.AnnotatedAliasWithoutBeforeSet (0 ms) 2022-11-23T01:02:59.4099234Z [ RUN ] SchemaParserTest.BeforeAfterSets 2022-11-23T01:02:59.4103415Z [ OK ] SchemaParserTest.BeforeAfterSets (0 ms) 2022-11-23T01:02:59.4104057Z [ RUN ] SchemaParserTest.BeforeAfterSets2 2022-11-23T01:02:59.4108324Z [ OK ] SchemaParserTest.BeforeAfterSets2 (0 ms) 2022-11-23T01:02:59.4108972Z [----------] 9 tests from SchemaParserTest (3 ms total) 2022-11-23T01:02:59.4109238Z 2022-11-23T01:02:59.4109551Z [----------] 2 tests from TopologicalIndexTest 2022-11-23T01:02:59.4110172Z [ RUN ] TopologicalIndexTest.Basic 2022-11-23T01:02:59.4110736Z [ OK ] TopologicalIndexTest.Basic (0 ms) 2022-11-23T01:02:59.4111292Z [ RUN ] TopologicalIndexTest.Reindex 2022-11-23T01:02:59.4124281Z [ OK ] TopologicalIndexTest.Reindex (1 ms) 2022-11-23T01:02:59.4124880Z [----------] 2 tests from TopologicalIndexTest (1 ms total) 2022-11-23T01:02:59.4125166Z 2022-11-23T01:02:59.4125441Z [----------] 7 tests from RecordFunctionTest 2022-11-23T01:02:59.4126011Z [ RUN ] RecordFunctionTest.TracedTestInputsOutputs 2022-11-23T01:02:59.4190663Z [ OK ] RecordFunctionTest.TracedTestInputsOutputs (6 ms) 2022-11-23T01:02:59.4191353Z [ RUN ] RecordFunctionTest.SampledCallbacks 2022-11-23T01:02:59.5164812Z [ OK ] RecordFunctionTest.SampledCallbacks (97 ms) 2022-11-23T01:02:59.5165232Z [ RUN ] RecordFunctionTest.RecordFunctionGuard 2022-11-23T01:02:59.5165646Z [ OK ] RecordFunctionTest.RecordFunctionGuard (0 ms) 2022-11-23T01:02:59.5165977Z [ RUN ] RecordFunctionTest.Callbacks 2022-11-23T01:02:59.5185459Z [ OK ] RecordFunctionTest.Callbacks (2 ms) 2022-11-23T01:02:59.5186046Z [ RUN ] RecordFunctionTest.ShouldRun 2022-11-23T01:02:59.5186583Z [ OK ] RecordFunctionTest.ShouldRun (0 ms) 2022-11-23T01:02:59.5186893Z [ RUN ] RecordFunctionTest.Basic 2022-11-23T01:02:59.5205254Z [ OK ] RecordFunctionTest.Basic (1 ms) 2022-11-23T01:02:59.5205633Z [ RUN ] RecordFunctionTest.OperatorNameOverload 2022-11-23T01:02:59.5208131Z [ OK ] RecordFunctionTest.OperatorNameOverload (0 ms) 2022-11-23T01:02:59.5208534Z [----------] 7 tests from RecordFunctionTest (108 ms total) 2022-11-23T01:02:59.5208709Z 2022-11-23T01:02:59.5208893Z [----------] 1 test from ThreadLocalDebugInfoTest 2022-11-23T01:02:59.5209205Z [ RUN ] ThreadLocalDebugInfoTest.Basic 2022-11-23T01:02:59.5220539Z [ OK ] ThreadLocalDebugInfoTest.Basic (1 ms) 2022-11-23T01:02:59.5220964Z [----------] 1 test from ThreadLocalDebugInfoTest (1 ms total) 2022-11-23T01:02:59.5221148Z 2022-11-23T01:02:59.5221311Z [----------] 1 test from TestSymIntArrayRef 2022-11-23T01:02:59.5221619Z [ RUN ] TestSymIntArrayRef.BasicConversion 2022-11-23T01:02:59.5229028Z [ OK ] TestSymIntArrayRef.BasicConversion (0 ms) 2022-11-23T01:02:59.5229682Z [----------] 1 test from TestSymIntArrayRef (0 ms total) 2022-11-23T01:02:59.5229851Z 2022-11-23T01:02:59.5229996Z [----------] 4 tests from TestSymInt 2022-11-23T01:02:59.5230384Z [ RUN ] TestSymInt.NarrowCopyWithSymbolicInt 2022-11-23T01:02:59.5236983Z [ OK ] TestSymInt.NarrowCopyWithSymbolicInt (0 ms) 2022-11-23T01:02:59.5237309Z [ RUN ] TestSymInt.NarrowCopy 2022-11-23T01:02:59.5244076Z [ OK ] TestSymInt.NarrowCopy (0 ms) 2022-11-23T01:02:59.5244650Z [ RUN ] TestSymInt.AddSymbolicInt 2022-11-23T01:02:59.5245036Z [ OK ] TestSymInt.AddSymbolicInt (0 ms) 2022-11-23T01:02:59.5245375Z [ RUN ] TestSymInt.TestSymIntToSymNodeDispatch 2022-11-23T01:02:59.5250904Z [ OK ] TestSymInt.TestSymIntToSymNodeDispatch (0 ms) 2022-11-23T01:02:59.5251677Z [----------] 4 tests from TestSymInt (2 ms total) 2022-11-23T01:02:59.5251842Z 2022-11-23T01:02:59.5252008Z [----------] 1 test from FallbackGraphsTest 2022-11-23T01:02:59.5252292Z [ RUN ] FallbackGraphsTest.Basic 2022-11-23T01:02:59.5371767Z [ OK ] FallbackGraphsTest.Basic (11 ms) 2022-11-23T01:02:59.5372407Z [----------] 1 test from FallbackGraphsTest (12 ms total) 2022-11-23T01:02:59.5372586Z 2022-11-23T01:02:59.5372753Z [----------] 1 test from NoneSchemaMatchTest 2022-11-23T01:02:59.5373037Z [ RUN ] NoneSchemaMatchTest.Basic 2022-11-23T01:02:59.5378118Z [ OK ] NoneSchemaMatchTest.Basic (0 ms) 2022-11-23T01:02:59.5378858Z [----------] 1 test from NoneSchemaMatchTest (0 ms total) 2022-11-23T01:02:59.5379163Z 2022-11-23T01:02:59.5379373Z [----------] 1 test from PassManagementTest 2022-11-23T01:02:59.5379656Z [ RUN ] PassManagementTest.Basic 2022-11-23T01:02:59.5388913Z [ OK ] PassManagementTest.Basic (1 ms) 2022-11-23T01:02:59.5389265Z [----------] 1 test from PassManagementTest (1 ms total) 2022-11-23T01:02:59.5389432Z 2022-11-23T01:02:59.5389574Z [----------] 5 tests from LoopPeelerTest 2022-11-23T01:02:59.5389916Z [ RUN ] LoopPeelerTest.NoInductionVariableUse 2022-11-23T01:02:59.5430882Z [ OK ] LoopPeelerTest.NoInductionVariableUse (4 ms) 2022-11-23T01:02:59.5431267Z [ RUN ] LoopPeelerTest.YesInductionVariableUse 2022-11-23T01:02:59.5470236Z [ OK ] LoopPeelerTest.YesInductionVariableUse (3 ms) 2022-11-23T01:02:59.5470648Z [ RUN ] LoopPeelerTest.LoopWithTerminationCondition 2022-11-23T01:02:59.5523431Z [ OK ] LoopPeelerTest.LoopWithTerminationCondition (5 ms) 2022-11-23T01:02:59.5523802Z [ RUN ] LoopPeelerTest.SimpleNestedLoops 2022-11-23T01:02:59.5597754Z [ OK ] LoopPeelerTest.SimpleNestedLoops (7 ms) 2022-11-23T01:02:59.5598107Z [ RUN ] LoopPeelerTest.SimpleNestedLoops2 2022-11-23T01:02:59.5687123Z [ OK ] LoopPeelerTest.SimpleNestedLoops2 (8 ms) 2022-11-23T01:02:59.5687561Z [----------] 5 tests from LoopPeelerTest (29 ms total) 2022-11-23T01:02:59.5687727Z 2022-11-23T01:02:59.5688105Z [----------] 1 test from JitTracing 2022-11-23T01:02:59.5688375Z [ RUN ] JitTracing.Basic 2022-11-23T01:02:59.6684557Z [ OK ] JitTracing.Basic (99 ms) 2022-11-23T01:02:59.6685118Z [----------] 1 test from JitTracing (99 ms total) 2022-11-23T01:02:59.6685624Z 2022-11-23T01:02:59.6686038Z [----------] 1 test from InsertAndEliminateRedundantGuardsTest 2022-11-23T01:02:59.6686760Z [ RUN ] InsertAndEliminateRedundantGuardsTest.Basic 2022-11-23T01:02:59.6750374Z [ OK ] InsertAndEliminateRedundantGuardsTest.Basic (6 ms) 2022-11-23T01:02:59.6751223Z [----------] 1 test from InsertAndEliminateRedundantGuardsTest (6 ms total) 2022-11-23T01:02:59.6751590Z 2022-11-23T01:02:59.6751875Z [----------] 1 test from InsertBailOutsTest 2022-11-23T01:02:59.6752399Z [ RUN ] InsertBailOutsTest.Basic 2022-11-23T01:02:59.6876379Z [ OK ] InsertBailOutsTest.Basic (12 ms) 2022-11-23T01:02:59.6877183Z [----------] 1 test from InsertBailOutsTest (12 ms total) 2022-11-23T01:02:59.6877530Z 2022-11-23T01:02:59.6877855Z [----------] 2 tests from ProfilerTest 2022-11-23T01:02:59.6878401Z [ RUN ] ProfilerTest.Basic 2022-11-23T01:02:59.7803599Z [ OK ] ProfilerTest.Basic (92 ms) 2022-11-23T01:02:59.7804188Z [ RUN ] ProfilerTest.OptionalProfiling 2022-11-23T01:02:59.7823795Z [ OK ] ProfilerTest.OptionalProfiling (2 ms) 2022-11-23T01:02:59.7824509Z [----------] 2 tests from ProfilerTest (94 ms total) 2022-11-23T01:02:59.7824815Z 2022-11-23T01:02:59.7825130Z [----------] 2 tests from CallStackTest 2022-11-23T01:02:59.7825678Z [ RUN ] CallStackTest.Basic 2022-11-23T01:02:59.7901086Z [ OK ] CallStackTest.Basic (7 ms) 2022-11-23T01:02:59.7959050Z [ RUN ] CallStackTest.Caching 2022-11-23T01:02:59.7959618Z [ OK ] CallStackTest.Caching (5 ms) 2022-11-23T01:02:59.7959972Z [----------] 2 tests from CallStackTest (13 ms total) 2022-11-23T01:02:59.7960141Z 2022-11-23T01:02:59.7960314Z [----------] 2 tests from InlinedCallStackTest 2022-11-23T01:02:59.7960639Z [ RUN ] InlinedCallStackTest.BlockAnnotation 2022-11-23T01:02:59.8055808Z [ OK ] InlinedCallStackTest.BlockAnnotation (9 ms) 2022-11-23T01:02:59.8056208Z [ RUN ] InlinedCallStackTest.SelfCallMethods 2022-11-23T01:02:59.8205676Z [ OK ] InlinedCallStackTest.SelfCallMethods (14 ms) 2022-11-23T01:02:59.8206484Z [----------] 2 tests from InlinedCallStackTest (24 ms total) 2022-11-23T01:02:59.8206760Z 2022-11-23T01:02:59.8207037Z [----------] 1 test from AutogradSymbolsTest 2022-11-23T01:02:59.8207568Z [ RUN ] AutogradSymbolsTest.Basic 2022-11-23T01:02:59.8208060Z [ OK ] AutogradSymbolsTest.Basic (0 ms) 2022-11-23T01:02:59.8208413Z [----------] 1 test from AutogradSymbolsTest (0 ms total) 2022-11-23T01:02:59.8208580Z 2022-11-23T01:02:59.8208770Z [----------] 1 test from DefaultArgTypeHintingTest 2022-11-23T01:02:59.8209088Z [ RUN ] DefaultArgTypeHintingTest.Basic 2022-11-23T01:02:59.8236299Z [ OK ] DefaultArgTypeHintingTest.Basic (2 ms) 2022-11-23T01:02:59.8237019Z [----------] 1 test from DefaultArgTypeHintingTest (2 ms total) 2022-11-23T01:02:59.8237348Z 2022-11-23T01:02:59.8237626Z [----------] 5 tests from FuturesTest 2022-11-23T01:02:59.8237984Z [ RUN ] FuturesTest.Basic 2022-11-23T01:02:59.8238254Z [ OK ] FuturesTest.Basic (0 ms) 2022-11-23T01:02:59.8238512Z [ RUN ] FuturesTest.Error 2022-11-23T01:02:59.8249553Z [ OK ] FuturesTest.Error (1 ms) 2022-11-23T01:02:59.8250035Z [ RUN ] FuturesTest.Then 2022-11-23T01:02:59.8250514Z [ OK ] FuturesTest.Then (0 ms) 2022-11-23T01:02:59.8250801Z [ RUN ] FuturesTest.CollectAll 2022-11-23T01:02:59.8253307Z [ OK ] FuturesTest.CollectAll (0 ms) 2022-11-23T01:02:59.8253767Z [ RUN ] FuturesTest.CollectAny 2022-11-23T01:02:59.8254435Z [ OK ] FuturesTest.CollectAny (0 ms) 2022-11-23T01:02:59.8255063Z [----------] 5 tests from FuturesTest (1 ms total) 2022-11-23T01:02:59.8255356Z 2022-11-23T01:02:59.8255583Z [----------] 1 test from TLSFutureCallbacksTest 2022-11-23T01:02:59.8255923Z [ RUN ] TLSFutureCallbacksTest.Basic 2022-11-23T01:02:59.8276152Z [ OK ] TLSFutureCallbacksTest.Basic (2 ms) 2022-11-23T01:02:59.8276522Z [----------] 1 test from TLSFutureCallbacksTest (2 ms total) 2022-11-23T01:02:59.8276700Z 2022-11-23T01:02:59.8276903Z [----------] 1 test from ProfilerDisableInCallbackTest 2022-11-23T01:02:59.8277345Z [ RUN ] ProfilerDisableInCallbackTest.Basic 2022-11-23T01:02:59.8296304Z [ OK ] ProfilerDisableInCallbackTest.Basic (1 ms) 2022-11-23T01:02:59.8296741Z [----------] 1 test from ProfilerDisableInCallbackTest (2 ms total) 2022-11-23T01:02:59.8296932Z 2022-11-23T01:02:59.8297094Z [----------] 2 tests from RecordDebugHandles 2022-11-23T01:02:59.8297388Z [ RUN ] RecordDebugHandles.Basic 2022-11-23T01:02:59.8306673Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2022-11-23T01:02:59.8312317Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:306] Completed Stage: Collection 2022-11-23T01:02:59.8314526Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2022-11-23T01:02:59.8317936Z [ OK ] RecordDebugHandles.Basic (2 ms) 2022-11-23T01:02:59.8318253Z [ RUN ] RecordDebugHandles.ScopedCallbacks 2022-11-23T01:02:59.8320749Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2022-11-23T01:02:59.8352361Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:306] Completed Stage: Collection 2022-11-23T01:02:59.8353957Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2022-11-23T01:02:59.8358222Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2022-11-23T01:02:59.8386386Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:306] Completed Stage: Collection 2022-11-23T01:02:59.8387873Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2022-11-23T01:02:59.8393027Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2022-11-23T01:02:59.8445836Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:306] Completed Stage: Collection 2022-11-23T01:02:59.8447515Z STAGE:2022-11-23 01:02:59 40:40 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2022-11-23T01:02:59.8452688Z [ OK ] RecordDebugHandles.ScopedCallbacks (13 ms) 2022-11-23T01:02:59.8453150Z [----------] 2 tests from RecordDebugHandles (15 ms total) 2022-11-23T01:02:59.8453320Z 2022-11-23T01:02:59.8453464Z [----------] 1 test from IValueKWargsTest 2022-11-23T01:02:59.8453757Z [ RUN ] IValueKWargsTest.Basic 2022-11-23T01:02:59.8510748Z [ OK ] IValueKWargsTest.Basic (5 ms) 2022-11-23T01:02:59.8511156Z [----------] 1 test from IValueKWargsTest (5 ms total) 2022-11-23T01:02:59.8511316Z 2022-11-23T01:02:59.8511496Z [----------] 1 test from ComputeFlopsTest 2022-11-23T01:02:59.8511951Z [ RUN ] ComputeFlopsTest.Basic 2022-11-23T01:02:59.8527078Z [W util.cpp:501] Warning: Failed to compute flops for op aten::conv2d because both input and weight must be size 4. (function computeFlops) 2022-11-23T01:02:59.8527594Z [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) 2022-11-23T01:02:59.8528262Z [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) 2022-11-23T01:02:59.8528777Z [W util.cpp:545] Warning: Calculating flops for aten::mm requires mat1_size and mat2_size in saved arguments. (function computeFlops) 2022-11-23T01:02:59.8529323Z [ OK ] ComputeFlopsTest.Basic (0 ms) 2022-11-23T01:02:59.8529659Z [----------] 1 test from ComputeFlopsTest (0 ms total) 2022-11-23T01:02:59.8529829Z 2022-11-23T01:02:59.8530009Z [----------] 1 test from TestConstant 2022-11-23T01:02:59.8530291Z [ RUN ] TestConstant.TensorGrad 2022-11-23T01:02:59.8530601Z [ OK ] TestConstant.TensorGrad (0 ms) 2022-11-23T01:02:59.8530954Z [----------] 1 test from TestConstant (0 ms total) 2022-11-23T01:02:59.8531091Z 2022-11-23T01:02:59.8531234Z [----------] 1 test from TestMutation 2022-11-23T01:02:59.8531552Z [ RUN ] TestMutation.Basic 2022-11-23T01:02:59.8538154Z [ OK ] TestMutation.Basic (2 ms) 2022-11-23T01:02:59.8538773Z [----------] 1 test from TestMutation (2 ms total) 2022-11-23T01:02:59.8538930Z 2022-11-23T01:02:59.8539150Z [----------] 1 test from TestInplaceToFunctionalActivation 2022-11-23T01:02:59.8539591Z [ RUN ] TestInplaceToFunctionalActivation.Basic 2022-11-23T01:02:59.8548087Z [ OK ] TestInplaceToFunctionalActivation.Basic (0 ms) 2022-11-23T01:02:59.8548523Z [----------] 1 test from TestInplaceToFunctionalActivation (0 ms total) 2022-11-23T01:02:59.8548726Z 2022-11-23T01:02:59.8548892Z [----------] 1 test from TestRegisterShapeOp 2022-11-23T01:02:59.8549193Z [ RUN ] TestRegisterShapeOp.Basic 2022-11-23T01:03:02.1329666Z [ OK ] TestRegisterShapeOp.Basic (2277 ms) 2022-11-23T01:03:02.1330063Z [----------] 1 test from TestRegisterShapeOp (2278 ms total) 2022-11-23T01:03:02.1330258Z 2022-11-23T01:03:02.1330467Z [----------] 1 test from TestFunctionalToInplaceActivation 2022-11-23T01:03:02.1330846Z [ RUN ] TestFunctionalToInplaceActivation.Basic 2022-11-23T01:03:02.1339197Z [ OK ] TestFunctionalToInplaceActivation.Basic (0 ms) 2022-11-23T01:03:02.1339654Z [----------] 1 test from TestFunctionalToInplaceActivation (0 ms total) 2022-11-23T01:03:02.1339856Z 2022-11-23T01:03:02.1340014Z [----------] 2 tests from TestFunctionExecutor 2022-11-23T01:03:02.1340359Z [ RUN ] TestFunctionExecutor.SimpleExecutorTest 2022-11-23T01:03:02.1397580Z [ OK ] TestFunctionExecutor.SimpleExecutorTest (5 ms) 2022-11-23T01:03:02.1397968Z [ RUN ] TestFunctionExecutor.RunDecompositionTest 2022-11-23T01:03:02.1628373Z [ OK ] TestFunctionExecutor.RunDecompositionTest (22 ms) 2022-11-23T01:03:02.1628838Z [----------] 2 tests from TestFunctionExecutor (28 ms total) 2022-11-23T01:03:02.1629016Z 2022-11-23T01:03:02.1629189Z [----------] 1 test from TestShapeGraphLinting 2022-11-23T01:03:02.1641547Z [ RUN ] TestShapeGraphLinting.Basic 2022-11-23T01:03:02.1675683Z [ OK ] TestShapeGraphLinting.Basic (4 ms) 2022-11-23T01:03:02.1676328Z [----------] 1 test from TestShapeGraphLinting (4 ms total) 2022-11-23T01:03:02.1676667Z 2022-11-23T01:03:02.1676924Z [----------] 1 test from Composed 2022-11-23T01:03:02.1677416Z [ RUN ] Composed.ComposedOp 2022-11-23T01:03:02.1677920Z [ OK ] Composed.ComposedOp (0 ms) 2022-11-23T01:03:02.1678277Z [----------] 1 test from Composed (0 ms total) 2022-11-23T01:03:02.1678422Z 2022-11-23T01:03:02.1678589Z [----------] 1 test from ConstantPropagation 2022-11-23T01:03:02.1678962Z [ RUN ] ConstantPropagation.CustomClassesCanBePropagated 2022-11-23T01:03:02.1703132Z [ OK ] ConstantPropagation.CustomClassesCanBePropagated (2 ms) 2022-11-23T01:03:02.1703915Z [----------] 1 test from ConstantPropagation (2 ms total) 2022-11-23T01:03:02.1704156Z 2022-11-23T01:03:02.1704335Z [----------] 19 tests from MobileTypeParserTest 2022-11-23T01:03:02.1704779Z [ RUN ] MobileTypeParserTest.Int 2022-11-23T01:03:02.1705178Z [ OK ] MobileTypeParserTest.Int (0 ms) 2022-11-23T01:03:02.1705765Z [ RUN ] MobileTypeParserTest.NestedContainersAnnotationStr 2022-11-23T01:03:02.1706431Z [ OK ] MobileTypeParserTest.NestedContainersAnnotationStr (0 ms) 2022-11-23T01:03:02.1706983Z [ RUN ] MobileTypeParserTest.TorchBindClass 2022-11-23T01:03:02.1707517Z [ OK ] MobileTypeParserTest.TorchBindClass (0 ms) 2022-11-23T01:03:02.1708066Z [ RUN ] MobileTypeParserTest.ListOfTorchBindClass 2022-11-23T01:03:02.1708613Z [ OK ] MobileTypeParserTest.ListOfTorchBindClass (0 ms) 2022-11-23T01:03:02.1709152Z [ RUN ] MobileTypeParserTest.NestedContainersAnnotationStrWithSpaces 2022-11-23T01:03:02.1709805Z [ OK ] MobileTypeParserTest.NestedContainersAnnotationStrWithSpaces (0 ms) 2022-11-23T01:03:02.1710440Z [ RUN ] MobileTypeParserTest.NamedTuple 2022-11-23T01:03:02.1710972Z [ OK ] MobileTypeParserTest.NamedTuple (0 ms) 2022-11-23T01:03:02.1711357Z [ RUN ] MobileTypeParserTest.DictNestedNamedTupleTypeList 2022-11-23T01:03:02.1713640Z [ OK ] MobileTypeParserTest.DictNestedNamedTupleTypeList (0 ms) 2022-11-23T01:03:02.1714114Z [ RUN ] MobileTypeParserTest.NamedTupleNestedNamedTupleTypeList 2022-11-23T01:03:02.1715829Z [ OK ] MobileTypeParserTest.NamedTupleNestedNamedTupleTypeList (0 ms) 2022-11-23T01:03:02.1716410Z [ RUN ] MobileTypeParserTest.NamedTupleNestedNamedTuple 2022-11-23T01:03:02.1717320Z [ OK ] MobileTypeParserTest.NamedTupleNestedNamedTuple (0 ms) 2022-11-23T01:03:02.1717695Z [ RUN ] MobileTypeParserTest.Empty 2022-11-23T01:03:02.1744016Z [ OK ] MobileTypeParserTest.Empty (2 ms) 2022-11-23T01:03:02.1744381Z [ RUN ] MobileTypeParserTest.TypoRaises 2022-11-23T01:03:02.1779771Z [ OK ] MobileTypeParserTest.TypoRaises (3 ms) 2022-11-23T01:03:02.1780140Z [ RUN ] MobileTypeParserTest.MismatchBracketRaises 2022-11-23T01:03:02.1815654Z [ OK ] MobileTypeParserTest.MismatchBracketRaises (3 ms) 2022-11-23T01:03:02.1816090Z [ RUN ] MobileTypeParserTest.MismatchBracketRaises2 2022-11-23T01:03:02.1851654Z [ OK ] MobileTypeParserTest.MismatchBracketRaises2 (3 ms) 2022-11-23T01:03:02.1852055Z [ RUN ] MobileTypeParserTest.DictWithoutValueRaises 2022-11-23T01:03:02.1882533Z [ OK ] MobileTypeParserTest.DictWithoutValueRaises (3 ms) 2022-11-23T01:03:02.1883027Z [ RUN ] MobileTypeParserTest.ListArgCountMismatchRaises 2022-11-23T01:03:02.1918368Z [ OK ] MobileTypeParserTest.ListArgCountMismatchRaises (3 ms) 2022-11-23T01:03:02.1918886Z [ RUN ] MobileTypeParserTest.DictArgCountMismatchRaises 2022-11-23T01:03:02.1949449Z [ OK ] MobileTypeParserTest.DictArgCountMismatchRaises (3 ms) 2022-11-23T01:03:02.1950280Z [ RUN ] MobileTypeParserTest.ValidTypeWithExtraStuffRaises 2022-11-23T01:03:02.1970744Z [ OK ] MobileTypeParserTest.ValidTypeWithExtraStuffRaises (2 ms) 2022-11-23T01:03:02.1971360Z [ RUN ] MobileTypeParserTest.NonIdentifierRaises 2022-11-23T01:03:02.1991589Z [ OK ] MobileTypeParserTest.NonIdentifierRaises (2 ms) 2022-11-23T01:03:02.1992067Z [ RUN ] MobileTypeParserTest.DictNestedNamedTupleTypeListRaises 2022-11-23T01:03:02.2034982Z [ OK ] MobileTypeParserTest.DictNestedNamedTupleTypeListRaises (4 ms) 2022-11-23T01:03:02.2035661Z [----------] 19 tests from MobileTypeParserTest (33 ms total) 2022-11-23T01:03:02.2035848Z 2022-11-23T01:03:02.2036007Z [----------] 13 tests from ModuleAPITest 2022-11-23T01:03:02.2036307Z [ RUN ] ModuleAPITest.MethodRunAsync 2022-11-23T01:03:02.2331997Z [ OK ] ModuleAPITest.MethodRunAsync (29 ms) 2022-11-23T01:03:02.2332488Z [ RUN ] ModuleAPITest.Clone 2022-11-23T01:03:02.2335176Z [ OK ] ModuleAPITest.Clone (0 ms) 2022-11-23T01:03:02.2335517Z [ RUN ] ModuleAPITest.CloneWithModuleInterface 2022-11-23T01:03:02.2438519Z [ OK ] ModuleAPITest.CloneWithModuleInterface (10 ms) 2022-11-23T01:03:02.2438843Z [ RUN ] ModuleAPITest.Copy 2022-11-23T01:03:02.2440276Z [ OK ] ModuleAPITest.Copy (0 ms) 2022-11-23T01:03:02.2440584Z [ RUN ] ModuleAPITest.DeepCopy 2022-11-23T01:03:02.2447466Z [ OK ] ModuleAPITest.DeepCopy (0 ms) 2022-11-23T01:03:02.2447794Z [ RUN ] ModuleAPITest.DeepCopyString 2022-11-23T01:03:02.2448864Z [ OK ] ModuleAPITest.DeepCopyString (0 ms) 2022-11-23T01:03:02.2449218Z [ RUN ] ModuleAPITest.DeepCopyEnum 2022-11-23T01:03:02.2450481Z [ OK ] ModuleAPITest.DeepCopyEnum (0 ms) 2022-11-23T01:03:02.2450835Z [ RUN ] ModuleAPITest.DeepCopyPreservesAliasing 2022-11-23T01:03:02.2456900Z [ OK ] ModuleAPITest.DeepCopyPreservesAliasing (0 ms) 2022-11-23T01:03:02.2457246Z [ RUN ] ModuleAPITest.Constants 2022-11-23T01:03:02.2457682Z [ OK ] ModuleAPITest.Constants (0 ms) 2022-11-23T01:03:02.2458063Z [ RUN ] ModuleAPITest.Parameters 2022-11-23T01:03:02.2459773Z [ OK ] ModuleAPITest.Parameters (0 ms) 2022-11-23T01:03:02.2460075Z [ RUN ] ModuleAPITest.Define 2022-11-23T01:03:02.2528903Z [ OK ] ModuleAPITest.Define (6 ms) 2022-11-23T01:03:02.2529184Z [ RUN ] ModuleAPITest.Freezing 2022-11-23T01:03:02.2591107Z [ OK ] ModuleAPITest.Freezing (6 ms) 2022-11-23T01:03:02.2591492Z [ RUN ] ModuleAPITest.OfiFreezesTraining 2022-11-23T01:03:02.2651808Z [ OK ] ModuleAPITest.OfiFreezesTraining (6 ms) 2022-11-23T01:03:02.2652446Z [----------] 13 tests from ModuleAPITest (61 ms total) 2022-11-23T01:03:02.2652721Z 2022-11-23T01:03:02.2652897Z [----------] 6 tests from PeepholeOptimizeTest 2022-11-23T01:03:02.2653219Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot 2022-11-23T01:03:02.2661783Z [ OK ] PeepholeOptimizeTest.IsAndIsNot (0 ms) 2022-11-23T01:03:02.2662326Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot2 2022-11-23T01:03:02.2670216Z [ OK ] PeepholeOptimizeTest.IsAndIsNot2 (0 ms) 2022-11-23T01:03:02.2670775Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot3 2022-11-23T01:03:02.2681024Z [ OK ] PeepholeOptimizeTest.IsAndIsNot3 (1 ms) 2022-11-23T01:03:02.2681616Z [ RUN ] PeepholeOptimizeTest.UnwrapOptional 2022-11-23T01:03:02.2691030Z [ OK ] PeepholeOptimizeTest.UnwrapOptional (0 ms) 2022-11-23T01:03:02.2691622Z [ RUN ] PeepholeOptimizeTest.UnwrapOptional2 2022-11-23T01:03:02.2701445Z [ OK ] PeepholeOptimizeTest.UnwrapOptional2 (1 ms) 2022-11-23T01:03:02.2702022Z [ RUN ] PeepholeOptimizeTest.AddMMFusion 2022-11-23T01:03:02.2712893Z [ OK ] PeepholeOptimizeTest.AddMMFusion (1 ms) 2022-11-23T01:03:02.2713503Z [----------] 6 tests from PeepholeOptimizeTest (6 ms total) 2022-11-23T01:03:02.2713829Z 2022-11-23T01:03:02.2714113Z [----------] 5 tests from QualifiedNameTest 2022-11-23T01:03:02.2714721Z [ RUN ] QualifiedNameTest.PrefixConstruction 2022-11-23T01:03:02.2715389Z [ OK ] QualifiedNameTest.PrefixConstruction (0 ms) 2022-11-23T01:03:02.2715809Z [ RUN ] QualifiedNameTest.DottedConstruction 2022-11-23T01:03:02.2716352Z [ OK ] QualifiedNameTest.DottedConstruction (0 ms) 2022-11-23T01:03:02.2716704Z [ RUN ] QualifiedNameTest.BadInputRaises 2022-11-23T01:03:02.2761836Z [ OK ] QualifiedNameTest.BadInputRaises (4 ms) 2022-11-23T01:03:02.2762375Z [ RUN ] QualifiedNameTest.Equality 2022-11-23T01:03:02.2763112Z [ OK ] QualifiedNameTest.Equality (0 ms) 2022-11-23T01:03:02.2763501Z [ RUN ] QualifiedNameTest.IsPrefixOf 2022-11-23T01:03:02.2763812Z [ OK ] QualifiedNameTest.IsPrefixOf (0 ms) 2022-11-23T01:03:02.2764147Z [----------] 5 tests from QualifiedNameTest (4 ms total) 2022-11-23T01:03:02.2764307Z 2022-11-23T01:03:02.2764468Z [----------] 6 tests from SerializationTest 2022-11-23T01:03:02.2764799Z [ RUN ] SerializationTest.ExtraFilesHookPreference 2022-11-23T01:03:02.2782817Z [W export_module.cpp:586] 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()) 2022-11-23T01:03:02.2859218Z [ OK ] SerializationTest.ExtraFilesHookPreference (9 ms) 2022-11-23T01:03:02.2859622Z [ RUN ] SerializationTest.ExtraFileHooksNoSecret 2022-11-23T01:03:02.2871605Z [ OK ] SerializationTest.ExtraFileHooksNoSecret (1 ms) 2022-11-23T01:03:02.2872012Z [ RUN ] SerializationTest.ExtraFileHooksWithSecret 2022-11-23T01:03:02.2884367Z [ OK ] SerializationTest.ExtraFileHooksWithSecret (1 ms) 2022-11-23T01:03:02.2884736Z [ RUN ] SerializationTest.TypeTags 2022-11-23T01:03:02.2916101Z [ OK ] SerializationTest.TypeTags (3 ms) 2022-11-23T01:03:02.2916501Z [ RUN ] SerializationTest.ParentDirNotExist 2022-11-23T01:03:02.2951477Z [ OK ] SerializationTest.ParentDirNotExist (3 ms) 2022-11-23T01:03:02.2951862Z [ RUN ] SerializationTest.CalculateNecessaryArgsTest 2022-11-23T01:03:02.2953970Z [ OK ] SerializationTest.CalculateNecessaryArgsTest (0 ms) 2022-11-23T01:03:02.2954402Z [----------] 6 tests from SerializationTest (19 ms total) 2022-11-23T01:03:02.2954567Z 2022-11-23T01:03:02.2954744Z [----------] 3 tests from TestSourceRoundTrip 2022-11-23T01:03:02.2955069Z [ RUN ] TestSourceRoundTrip.UpsampleNearest2d 2022-11-23T01:03:02.3178967Z [ OK ] TestSourceRoundTrip.UpsampleNearest2d (22 ms) 2022-11-23T01:03:02.3179524Z [ RUN ] TestSourceRoundTrip.CheckAttrAccess 2022-11-23T01:03:02.3186878Z [ OK ] TestSourceRoundTrip.CheckAttrAccess (0 ms) 2022-11-23T01:03:02.3187477Z [ RUN ] TestSourceRoundTrip.MethodInvocation 2022-11-23T01:03:02.3963053Z [ OK ] TestSourceRoundTrip.MethodInvocation (77 ms) 2022-11-23T01:03:02.3963789Z [----------] 3 tests from TestSourceRoundTrip (100 ms total) 2022-11-23T01:03:02.3964102Z 2022-11-23T01:03:02.3964483Z [----------] 2 tests from FunctionSchemaIsAliasingTest 2022-11-23T01:03:02.3965122Z [ RUN ] FunctionSchemaIsAliasingTest.Basic 2022-11-23T01:03:02.3967769Z [ OK ] FunctionSchemaIsAliasingTest.Basic (0 ms) 2022-11-23T01:03:02.3968505Z [ RUN ] FunctionSchemaIsAliasingTest.InvalidArgument 2022-11-23T01:03:02.3993207Z [ OK ] FunctionSchemaIsAliasingTest.InvalidArgument (2 ms) 2022-11-23T01:03:02.3994013Z [----------] 2 tests from FunctionSchemaIsAliasingTest (3 ms total) 2022-11-23T01:03:02.3994338Z 2022-11-23T01:03:02.3994694Z [----------] 2 tests from FunctionSchemaIsMutableTest 2022-11-23T01:03:02.3995309Z [ RUN ] FunctionSchemaIsMutableTest.Basic 2022-11-23T01:03:02.3997451Z [ OK ] FunctionSchemaIsMutableTest.Basic (0 ms) 2022-11-23T01:03:02.3998143Z [ RUN ] FunctionSchemaIsMutableTest.InvalidArgument 2022-11-23T01:03:02.4033477Z [ OK ] FunctionSchemaIsMutableTest.InvalidArgument (3 ms) 2022-11-23T01:03:02.4034281Z [----------] 2 tests from FunctionSchemaIsMutableTest (3 ms total) 2022-11-23T01:03:02.4034618Z 2022-11-23T01:03:02.4034953Z [----------] 5 tests from SchemaInfoIsMutableTest 2022-11-23T01:03:02.4035595Z [ RUN ] SchemaInfoIsMutableTest.Basic 2022-11-23T01:03:02.4072744Z [ OK ] SchemaInfoIsMutableTest.Basic (3 ms) 2022-11-23T01:03:02.4073420Z [ RUN ] SchemaInfoIsMutableTest.InvalidArgument 2022-11-23T01:03:02.4108927Z [ OK ] SchemaInfoIsMutableTest.InvalidArgument (3 ms) 2022-11-23T01:03:02.4109642Z [ RUN ] SchemaInfoIsMutableTest.AliasingInputs 2022-11-23T01:03:02.4116490Z [ OK ] SchemaInfoIsMutableTest.AliasingInputs (0 ms) 2022-11-23T01:03:02.4117204Z [ RUN ] SchemaInfoIsMutableTest.InstanceNorm 2022-11-23T01:03:02.4123710Z [ OK ] SchemaInfoIsMutableTest.InstanceNorm (0 ms) 2022-11-23T01:03:02.4124378Z [ RUN ] SchemaInfoIsMutableTest.BatchNorm 2022-11-23T01:03:02.4130850Z [ OK ] SchemaInfoIsMutableTest.BatchNorm (0 ms) 2022-11-23T01:03:02.4131552Z [----------] 5 tests from SchemaInfoIsMutableTest (9 ms total) 2022-11-23T01:03:02.4131893Z 2022-11-23T01:03:02.4132255Z [----------] 2 tests from SchemaInfoIsNonDeterministicTest 2022-11-23T01:03:02.4132940Z [ RUN ] SchemaInfoIsNonDeterministicTest.Basic 2022-11-23T01:03:02.4137454Z [ OK ] SchemaInfoIsNonDeterministicTest.Basic (0 ms) 2022-11-23T01:03:02.4138028Z [ RUN ] SchemaInfoIsNonDeterministicTest.Dropout 2022-11-23T01:03:02.4139816Z [ OK ] SchemaInfoIsNonDeterministicTest.Dropout (0 ms) 2022-11-23T01:03:02.4140525Z [----------] 2 tests from SchemaInfoIsNonDeterministicTest (0 ms total) 2022-11-23T01:03:02.4140730Z 2022-11-23T01:03:02.4140921Z [----------] 3 tests from FunctionSchemaMayAliasTest 2022-11-23T01:03:02.4141259Z [ RUN ] FunctionSchemaMayAliasTest.Basic 2022-11-23T01:03:02.4143362Z [ OK ] FunctionSchemaMayAliasTest.Basic (0 ms) 2022-11-23T01:03:02.4143749Z [ RUN ] FunctionSchemaMayAliasTest.InvalidArgument 2022-11-23T01:03:02.4173313Z [ OK ] FunctionSchemaMayAliasTest.InvalidArgument (2 ms) 2022-11-23T01:03:02.4173702Z [ RUN ] FunctionSchemaMayAliasTest.Wildcard 2022-11-23T01:03:02.4176118Z [ OK ] FunctionSchemaMayAliasTest.Wildcard (0 ms) 2022-11-23T01:03:02.4176554Z [----------] 3 tests from FunctionSchemaMayAliasTest (3 ms total) 2022-11-23T01:03:02.4176742Z 2022-11-23T01:03:02.4176920Z [----------] 7 tests from SchemaInfoMayAliasTest 2022-11-23T01:03:02.4177249Z [ RUN ] SchemaInfoMayAliasTest.AliasingInputs 2022-11-23T01:03:02.4180825Z [ OK ] SchemaInfoMayAliasTest.AliasingInputs (0 ms) 2022-11-23T01:03:02.4181210Z [ RUN ] SchemaInfoMayAliasTest.AliasingOutputs 2022-11-23T01:03:02.4188831Z [ OK ] SchemaInfoMayAliasTest.AliasingOutputs (0 ms) 2022-11-23T01:03:02.4189208Z [ RUN ] SchemaInfoMayAliasTest.AliasingInputOutput 2022-11-23T01:03:02.4194604Z [ OK ] SchemaInfoMayAliasTest.AliasingInputOutput (0 ms) 2022-11-23T01:03:02.4195023Z [ RUN ] SchemaInfoMayAliasTest.MultipleWildcardInputs 2022-11-23T01:03:02.4203287Z [ OK ] SchemaInfoMayAliasTest.MultipleWildcardInputs (0 ms) 2022-11-23T01:03:02.4203726Z [ RUN ] SchemaInfoMayAliasTest.MultipleNonWildcardInputs 2022-11-23T01:03:02.4207997Z [W schema_info.cpp:333] Warning: alias::a appears twice in same argument list which will make aliasing checks more conservative. (function operator()) 2022-11-23T01:03:02.4210455Z [ OK ] SchemaInfoMayAliasTest.MultipleNonWildcardInputs (0 ms) 2022-11-23T01:03:02.4210924Z [ RUN ] SchemaInfoMayAliasTest.MultipleNonWildcardOutputs 2022-11-23T01:03:02.4214105Z [W schema_info.cpp:333] Warning: alias::a appears twice in same argument list which will make aliasing checks more conservative. (function operator()) 2022-11-23T01:03:02.4215298Z [ OK ] SchemaInfoMayAliasTest.MultipleNonWildcardOutputs (0 ms) 2022-11-23T01:03:02.4215849Z [ RUN ] SchemaInfoMayAliasTest.MismatchingTypes 2022-11-23T01:03:02.4217948Z [ OK ] SchemaInfoMayAliasTest.MismatchingTypes (0 ms) 2022-11-23T01:03:02.4218346Z [----------] 7 tests from SchemaInfoMayAliasTest (4 ms total) 2022-11-23T01:03:02.4218645Z 2022-11-23T01:03:02.4218856Z [----------] 3 tests from FunctionSchemaMayContainAliasTest 2022-11-23T01:03:02.4219227Z [ RUN ] FunctionSchemaMayContainAliasTest.Basic 2022-11-23T01:03:02.4222249Z [ OK ] FunctionSchemaMayContainAliasTest.Basic (0 ms) 2022-11-23T01:03:02.4222703Z [ RUN ] FunctionSchemaMayContainAliasTest.Wildcard 2022-11-23T01:03:02.4226266Z [ OK ] FunctionSchemaMayContainAliasTest.Wildcard (0 ms) 2022-11-23T01:03:02.4226728Z [ RUN ] FunctionSchemaMayContainAliasTest.InputAndOutputContainers 2022-11-23T01:03:02.4229899Z [ OK ] FunctionSchemaMayContainAliasTest.InputAndOutputContainers (0 ms) 2022-11-23T01:03:02.4230643Z [----------] 3 tests from FunctionSchemaMayContainAliasTest (1 ms total) 2022-11-23T01:03:02.4230846Z 2022-11-23T01:03:02.4231052Z [----------] 6 tests from SchemaInfoMayContainAliasTest 2022-11-23T01:03:02.4231469Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputsEqual 2022-11-23T01:03:02.4235472Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputsEqual (0 ms) 2022-11-23T01:03:02.4235963Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputsContained 2022-11-23T01:03:02.4242582Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputsContained (0 ms) 2022-11-23T01:03:02.4243089Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasOutputs 2022-11-23T01:03:02.4251415Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasOutputs (0 ms) 2022-11-23T01:03:02.4251903Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputOutput 2022-11-23T01:03:02.4259395Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputOutput (0 ms) 2022-11-23T01:03:02.4259894Z [ RUN ] SchemaInfoMayContainAliasTest.InputAndOutputContainers 2022-11-23T01:03:02.4266667Z [ OK ] SchemaInfoMayContainAliasTest.InputAndOutputContainers (0 ms) 2022-11-23T01:03:02.4267350Z [ RUN ] SchemaInfoMayContainAliasTest.Wildcard 2022-11-23T01:03:02.4274813Z [ OK ] SchemaInfoMayContainAliasTest.Wildcard (0 ms) 2022-11-23T01:03:02.4275389Z [----------] 6 tests from SchemaInfoMayContainAliasTest (4 ms total) 2022-11-23T01:03:02.4275579Z 2022-11-23T01:03:02.4275742Z [----------] 2 tests from SchemaMatchingTest 2022-11-23T01:03:02.4276051Z [ RUN ] SchemaMatchingTest.VarType 2022-11-23T01:03:02.4329615Z [ OK ] SchemaMatchingTest.VarType (5 ms) 2022-11-23T01:03:02.4329931Z [ RUN ] SchemaMatchingTest.VarType2 2022-11-23T01:03:02.4383827Z [ OK ] SchemaMatchingTest.VarType2 (5 ms) 2022-11-23T01:03:02.4384448Z [----------] 2 tests from SchemaMatchingTest (10 ms total) 2022-11-23T01:03:02.4384621Z 2022-11-23T01:03:02.4384762Z [----------] 6 tests from StackOptTest 2022-11-23T01:03:02.4385061Z [ RUN ] StackOptTest.UseVariadicStack 2022-11-23T01:03:02.5226133Z [ OK ] StackOptTest.UseVariadicStack (83 ms) 2022-11-23T01:03:02.5226572Z [ RUN ] StackOptTest.UseVariadicStackReplaceMultiple 2022-11-23T01:03:02.5791979Z [ OK ] StackOptTest.UseVariadicStackReplaceMultiple (56 ms) 2022-11-23T01:03:02.5792537Z [ RUN ] StackOptTest.UseVariadicStackWithMultipleListUses 2022-11-23T01:03:02.6088560Z [ OK ] StackOptTest.UseVariadicStackWithMultipleListUses (29 ms) 2022-11-23T01:03:02.6089077Z [ RUN ] StackOptTest.UseVariadicStackWithListMutationAfterCat 2022-11-23T01:03:02.6512784Z [ OK ] StackOptTest.UseVariadicStackWithListMutationAfterCat (42 ms) 2022-11-23T01:03:02.6513949Z [ RUN ] StackOptTest.UseVariadicStackWithListMutationBeforeCat 2022-11-23T01:03:02.6990407Z [ OK ] StackOptTest.UseVariadicStackWithListMutationBeforeCat (47 ms) 2022-11-23T01:03:02.6991359Z [ RUN ] StackOptTest.UseVariadicStackWithMultipleListMutations 2022-11-23T01:03:02.7791274Z [ OK ] StackOptTest.UseVariadicStackWithMultipleListMutations (80 ms) 2022-11-23T01:03:02.7792040Z [----------] 6 tests from StackOptTest (340 ms total) 2022-11-23T01:03:02.7792304Z 2022-11-23T01:03:02.7792629Z [----------] 16 tests from SubgraphMatcherTest 2022-11-23T01:03:02.7793177Z [ RUN ] SubgraphMatcherTest.Trivial1 2022-11-23T01:03:02.7797097Z [ OK ] SubgraphMatcherTest.Trivial1 (0 ms) 2022-11-23T01:03:02.7797661Z [ RUN ] SubgraphMatcherTest.Trivial2 2022-11-23T01:03:02.7798543Z [ OK ] SubgraphMatcherTest.Trivial2 (0 ms) 2022-11-23T01:03:02.7799100Z [ RUN ] SubgraphMatcherTest.Trivial3 2022-11-23T01:03:02.7806631Z [ OK ] SubgraphMatcherTest.Trivial3 (0 ms) 2022-11-23T01:03:02.7806989Z [ RUN ] SubgraphMatcherTest.Trivial4 2022-11-23T01:03:02.7808180Z [ OK ] SubgraphMatcherTest.Trivial4 (0 ms) 2022-11-23T01:03:02.7808517Z [ RUN ] SubgraphMatcherTest.Linear1 2022-11-23T01:03:02.7816784Z [ OK ] SubgraphMatcherTest.Linear1 (0 ms) 2022-11-23T01:03:02.7817105Z [ RUN ] SubgraphMatcherTest.Linear2 2022-11-23T01:03:02.7819068Z [ OK ] SubgraphMatcherTest.Linear2 (0 ms) 2022-11-23T01:03:02.7819660Z [ RUN ] SubgraphMatcherTest.Diamond1 2022-11-23T01:03:02.7836064Z [ OK ] SubgraphMatcherTest.Diamond1 (1 ms) 2022-11-23T01:03:02.7836419Z [ RUN ] SubgraphMatcherTest.Diamond2 2022-11-23T01:03:02.7838378Z [ OK ] SubgraphMatcherTest.Diamond2 (0 ms) 2022-11-23T01:03:02.7838888Z [ RUN ] SubgraphMatcherTest.XPattern 2022-11-23T01:03:02.7850931Z [ OK ] SubgraphMatcherTest.XPattern (1 ms) 2022-11-23T01:03:02.7851553Z [ RUN ] SubgraphMatcherTest.MultipleMatches 2022-11-23T01:03:02.7858419Z [ OK ] SubgraphMatcherTest.MultipleMatches (0 ms) 2022-11-23T01:03:02.7859235Z [ RUN ] SubgraphMatcherTest.OverlappingMatches 2022-11-23T01:03:02.7866747Z [ OK ] SubgraphMatcherTest.OverlappingMatches (0 ms) 2022-11-23T01:03:02.7867357Z [ RUN ] SubgraphMatcherTest.MatchInBasicBlocks1 2022-11-23T01:03:02.7880996Z [ OK ] SubgraphMatcherTest.MatchInBasicBlocks1 (1 ms) 2022-11-23T01:03:02.7881617Z [ RUN ] SubgraphMatcherTest.MatchInBasicBlocks2 2022-11-23T01:03:02.7892752Z [ OK ] SubgraphMatcherTest.MatchInBasicBlocks2 (1 ms) 2022-11-23T01:03:02.7893400Z [ RUN ] SubgraphMatcherTest.MatchesAttributes 2022-11-23T01:03:02.7922063Z [ OK ] SubgraphMatcherTest.MatchesAttributes (2 ms) 2022-11-23T01:03:02.7922669Z [ RUN ] SubgraphMatcherTest.BadPattern 2022-11-23T01:03:02.7965539Z [ OK ] SubgraphMatcherTest.BadPattern (4 ms) 2022-11-23T01:03:02.7966114Z [ RUN ] SubgraphMatcherTest.MultiOutput 2022-11-23T01:03:02.7984904Z [ OK ] SubgraphMatcherTest.MultiOutput (1 ms) 2022-11-23T01:03:02.7985567Z [----------] 16 tests from SubgraphMatcherTest (19 ms total) 2022-11-23T01:03:02.7985748Z 2022-11-23T01:03:02.7985920Z [----------] 4 tests from SubgraphRewriterTest 2022-11-23T01:03:02.7986243Z [ RUN ] SubgraphRewriterTest.FilterMatch 2022-11-23T01:03:02.8014182Z [ OK ] SubgraphRewriterTest.FilterMatch (2 ms) 2022-11-23T01:03:02.8014591Z [ RUN ] SubgraphRewriterTest.FilterNoMatch 2022-11-23T01:03:02.8026582Z [ OK ] SubgraphRewriterTest.FilterNoMatch (1 ms) 2022-11-23T01:03:02.8027270Z [ RUN ] SubgraphRewriterTest.MultiOutput 2022-11-23T01:03:02.8092696Z [ OK ] SubgraphRewriterTest.MultiOutput (6 ms) 2022-11-23T01:03:02.8093258Z [ RUN ] SubgraphRewriterTest.OutputType 2022-11-23T01:03:02.8117384Z [ OK ] SubgraphRewriterTest.OutputType (2 ms) 2022-11-23T01:03:02.8118050Z [----------] 4 tests from SubgraphRewriterTest (13 ms total) 2022-11-23T01:03:02.8118251Z 2022-11-23T01:03:02.8118414Z [----------] 3 tests from SubgraphUtilsTest 2022-11-23T01:03:02.8118691Z [ RUN ] SubgraphUtilsTest.Basic 2022-11-23T01:03:02.8164121Z [ OK ] SubgraphUtilsTest.Basic (4 ms) 2022-11-23T01:03:02.8164713Z [ RUN ] SubgraphUtilsTest.MergeSubgraphs 2022-11-23T01:03:02.8200262Z [ OK ] SubgraphUtilsTest.MergeSubgraphs (3 ms) 2022-11-23T01:03:02.8200832Z [ RUN ] SubgraphUtilsTest.GraphName 2022-11-23T01:03:02.8210167Z [ OK ] SubgraphUtilsTest.GraphName (0 ms) 2022-11-23T01:03:02.8210827Z [----------] 3 tests from SubgraphUtilsTest (9 ms total) 2022-11-23T01:03:02.8211026Z 2022-11-23T01:03:02.8211178Z [----------] 8 tests from UnionTypeTest 2022-11-23T01:03:02.8211486Z [ RUN ] UnionTypeTest.UnionOperatorEquals 2022-11-23T01:03:02.8212356Z [ OK ] UnionTypeTest.UnionOperatorEquals (0 ms) 2022-11-23T01:03:02.8212878Z [ RUN ] UnionTypeTest.UnionCreate_OptionalT1AndOptionalT2 2022-11-23T01:03:02.8213624Z [ OK ] UnionTypeTest.UnionCreate_OptionalT1AndOptionalT2 (0 ms) 2022-11-23T01:03:02.8214047Z [ RUN ] UnionTypeTest.UnionCreate_OptionalTAndT 2022-11-23T01:03:02.8215536Z [ OK ] UnionTypeTest.UnionCreate_OptionalTAndT (0 ms) 2022-11-23T01:03:02.8216042Z [ RUN ] UnionTypeTest.UnionCreate_TupleWithSubtypingRelationship 2022-11-23T01:03:02.8216551Z [ OK ] UnionTypeTest.UnionCreate_TupleWithSubtypingRelationship (0 ms) 2022-11-23T01:03:02.8217015Z [ RUN ] UnionTypeTest.UnionCreate_ContainerTAndT 2022-11-23T01:03:02.8217476Z [ OK ] UnionTypeTest.UnionCreate_ContainerTAndT (0 ms) 2022-11-23T01:03:02.8217867Z [ RUN ] UnionTypeTest.UnionCreate_OptionalContainerTAndContainerTAndT 2022-11-23T01:03:02.8218324Z [ OK ] UnionTypeTest.UnionCreate_OptionalContainerTAndContainerTAndT (0 ms) 2022-11-23T01:03:02.8218877Z [ RUN ] UnionTypeTest.Subtyping_NumberType 2022-11-23T01:03:02.8219880Z [ OK ] UnionTypeTest.Subtyping_NumberType (0 ms) 2022-11-23T01:03:02.8220221Z [ RUN ] UnionTypeTest.Subtyping_OptionalType 2022-11-23T01:03:02.8221584Z [ OK ] UnionTypeTest.Subtyping_OptionalType (0 ms) 2022-11-23T01:03:02.8222211Z [----------] 8 tests from UnionTypeTest (1 ms total) 2022-11-23T01:03:02.8222449Z 2022-11-23T01:03:02.8222601Z [----------] 2 tests from ScriptProfileTest 2022-11-23T01:03:02.8222897Z [ RUN ] ScriptProfileTest.Basic 2022-11-23T01:03:02.8228111Z [ OK ] ScriptProfileTest.Basic (0 ms) 2022-11-23T01:03:02.8228425Z [ RUN ] ScriptProfileTest.CallingOrder 2022-11-23T01:03:02.8260313Z [ OK ] ScriptProfileTest.CallingOrder (3 ms) 2022-11-23T01:03:02.8260668Z [----------] 2 tests from ScriptProfileTest (3 ms total) 2022-11-23T01:03:02.8260834Z 2022-11-23T01:03:02.8261084Z [----------] 7 tests from ShapeAnalysisTest 2022-11-23T01:03:02.8261400Z [ RUN ] ShapeAnalysisTest.DynamicShapesFusion 2022-11-23T01:03:02.9169162Z [ OK ] ShapeAnalysisTest.DynamicShapesFusion (90 ms) 2022-11-23T01:03:02.9169803Z [ RUN ] ShapeAnalysisTest.MovingConstantOutOfFusionGroups 2022-11-23T01:03:02.9390656Z [ OK ] ShapeAnalysisTest.MovingConstantOutOfFusionGroups (22 ms) 2022-11-23T01:03:02.9391064Z [ RUN ] ShapeAnalysisTest.SymbolicShapeAPI 2022-11-23T01:03:03.0319976Z [ OK ] ShapeAnalysisTest.SymbolicShapeAPI (92 ms) 2022-11-23T01:03:03.0320359Z [ RUN ] ShapeAnalysisTest.BoundedSymbolicShapes 2022-11-23T01:03:03.0424984Z [ OK ] ShapeAnalysisTest.BoundedSymbolicShapes (10 ms) 2022-11-23T01:03:03.0425354Z [ RUN ] ShapeAnalysisTest.SymbolicShapeCaching 2022-11-23T01:03:03.0539931Z [ OK ] ShapeAnalysisTest.SymbolicShapeCaching (11 ms) 2022-11-23T01:03:03.0540319Z [ RUN ] ShapeAnalysisTest.ShapeCacheMultipleFns 2022-11-23T01:03:03.0948212Z [ OK ] ShapeAnalysisTest.ShapeCacheMultipleFns (40 ms) 2022-11-23T01:03:03.0948613Z [ RUN ] ShapeAnalysisTest.TestShapeMultipleReturns 2022-11-23T01:03:03.1101651Z [ OK ] ShapeAnalysisTest.TestShapeMultipleReturns (15 ms) 2022-11-23T01:03:03.1102168Z [----------] 7 tests from ShapeAnalysisTest (284 ms total) 2022-11-23T01:03:03.1102435Z 2022-11-23T01:03:03.1102650Z [----------] 5 tests from JitLoggingTest 2022-11-23T01:03:03.1102979Z [ RUN ] JitLoggingTest.CheckSetLoggingLevel 2022-11-23T01:03:03.1103434Z [ OK ] JitLoggingTest.CheckSetLoggingLevel (0 ms) 2022-11-23T01:03:03.1103852Z [ RUN ] JitLoggingTest.CheckSetMultipleLogLevels 2022-11-23T01:03:03.1104386Z [ OK ] JitLoggingTest.CheckSetMultipleLogLevels (0 ms) 2022-11-23T01:03:03.1104925Z [ RUN ] JitLoggingTest.CheckLoggingLevelAfterUnset 2022-11-23T01:03:03.1105569Z [ OK ] JitLoggingTest.CheckLoggingLevelAfterUnset (0 ms) 2022-11-23T01:03:03.1106202Z [ RUN ] JitLoggingTest.CheckAfterChangingLevel 2022-11-23T01:03:03.1106776Z [ OK ] JitLoggingTest.CheckAfterChangingLevel (0 ms) 2022-11-23T01:03:03.1107391Z [ RUN ] JitLoggingTest.CheckOutputStreamSetting 2022-11-23T01:03:03.1107908Z [ OK ] JitLoggingTest.CheckOutputStreamSetting (0 ms) 2022-11-23T01:03:03.1108367Z [----------] 5 tests from JitLoggingTest (0 ms total) 2022-11-23T01:03:03.1108526Z 2022-11-23T01:03:03.1108680Z [----------] 9 tests from FileFormatTest 2022-11-23T01:03:03.1109284Z [ RUN ] FileFormatTest.IdentifiesFlatbufferStream 2022-11-23T01:03:03.1110020Z [ OK ] FileFormatTest.IdentifiesFlatbufferStream (0 ms) 2022-11-23T01:03:03.1110606Z [ RUN ] FileFormatTest.IdentifiesZipStream 2022-11-23T01:03:03.1111213Z [ OK ] FileFormatTest.IdentifiesZipStream (0 ms) 2022-11-23T01:03:03.1111886Z [ RUN ] FileFormatTest.FlatbufferTakesPrecedence 2022-11-23T01:03:03.1112393Z [ OK ] FileFormatTest.FlatbufferTakesPrecedence (0 ms) 2022-11-23T01:03:03.1112768Z [ RUN ] FileFormatTest.HandlesUnknownStream 2022-11-23T01:03:03.1113274Z [ OK ] FileFormatTest.HandlesUnknownStream (0 ms) 2022-11-23T01:03:03.1113931Z [ RUN ] FileFormatTest.ShortStreamIsUnknown 2022-11-23T01:03:03.1114328Z [ OK ] FileFormatTest.ShortStreamIsUnknown (0 ms) 2022-11-23T01:03:03.1114678Z [ RUN ] FileFormatTest.EmptyStreamIsUnknown 2022-11-23T01:03:03.1115028Z [ OK ] FileFormatTest.EmptyStreamIsUnknown (0 ms) 2022-11-23T01:03:03.1115359Z [ RUN ] FileFormatTest.BadStreamIsUnknown 2022-11-23T01:03:03.1115703Z [ OK ] FileFormatTest.BadStreamIsUnknown (0 ms) 2022-11-23T01:03:03.1116091Z [ RUN ] FileFormatTest.StreamOffsetIsObservedAndRestored 2022-11-23T01:03:03.1116533Z [ OK ] FileFormatTest.StreamOffsetIsObservedAndRestored (0 ms) 2022-11-23T01:03:03.1116900Z [ RUN ] FileFormatTest.HandlesMissingFile 2022-11-23T01:03:03.1117430Z [ OK ] FileFormatTest.HandlesMissingFile (0 ms) 2022-11-23T01:03:03.1117784Z [----------] 9 tests from FileFormatTest (0 ms total) 2022-11-23T01:03:03.1117939Z 2022-11-23T01:03:03.1118079Z [----------] 35 tests from FlatbufferTest 2022-11-23T01:03:03.1118452Z [ RUN ] FlatbufferTest.UpsampleNearest2d 2022-11-23T01:03:03.1266756Z [ OK ] FlatbufferTest.UpsampleNearest2d (15 ms) 2022-11-23T01:03:03.1267358Z [ RUN ] FlatbufferTest.UpsampleNearest2dWithCopyTensorMemory 2022-11-23T01:03:03.1415380Z [ OK ] FlatbufferTest.UpsampleNearest2dWithCopyTensorMemory (14 ms) 2022-11-23T01:03:03.1415953Z [ RUN ] FlatbufferTest.CheckAttrAccess 2022-11-23T01:03:03.1418821Z [ OK ] FlatbufferTest.CheckAttrAccess (0 ms) 2022-11-23T01:03:03.1419152Z [ RUN ] FlatbufferTest.MethodInvocation 2022-11-23T01:03:03.1691898Z [ OK ] FlatbufferTest.MethodInvocation (27 ms) 2022-11-23T01:03:03.1692273Z [ RUN ] FlatbufferTest.FlatbufferBackPortTest 2022-11-23T01:03:03.2154176Z [ OK ] FlatbufferTest.FlatbufferBackPortTest (46 ms) 2022-11-23T01:03:03.2154500Z [ RUN ] FlatbufferTest.ExtraFiles 2022-11-23T01:03:03.2189583Z [ OK ] FlatbufferTest.ExtraFiles (3 ms) 2022-11-23T01:03:03.2190030Z [ RUN ] FlatbufferTest.Conv 2022-11-23T01:03:03.2190395Z [ OK ] FlatbufferTest.Conv (0 ms) 2022-11-23T01:03:03.2190775Z [ RUN ] FlatbufferTest.ConvWithCopyTensorMemory 2022-11-23T01:03:03.2191154Z [ OK ] FlatbufferTest.ConvWithCopyTensorMemory (0 ms) 2022-11-23T01:03:03.2191541Z [ RUN ] FlatbufferTest.Inline 2022-11-23T01:03:03.2273117Z [ OK ] FlatbufferTest.Inline (8 ms) 2022-11-23T01:03:03.2273466Z [ RUN ] FlatbufferTest.InlineWithCopyTensorMemory 2022-11-23T01:03:03.2355072Z [ OK ] FlatbufferTest.InlineWithCopyTensorMemory (8 ms) 2022-11-23T01:03:03.2355396Z [ RUN ] FlatbufferTest.Tuple 2022-11-23T01:03:03.2413018Z [ OK ] FlatbufferTest.Tuple (5 ms) 2022-11-23T01:03:03.2413300Z [ RUN ] FlatbufferTest.Dict 2022-11-23T01:03:03.2470032Z [ OK ] FlatbufferTest.Dict (5 ms) 2022-11-23T01:03:03.2470350Z [ RUN ] FlatbufferTest.Prim 2022-11-23T01:03:03.2513797Z [ OK ] FlatbufferTest.Prim (4 ms) 2022-11-23T01:03:03.2514090Z [ RUN ] FlatbufferTest.PrimScalar 2022-11-23T01:03:03.2563733Z [ OK ] FlatbufferTest.PrimScalar (4 ms) 2022-11-23T01:03:03.2564127Z [ RUN ] FlatbufferTest.WrongMethodName 2022-11-23T01:03:03.2628674Z [ OK ] FlatbufferTest.WrongMethodName (6 ms) 2022-11-23T01:03:03.2629043Z [ RUN ] FlatbufferTest.SetState 2022-11-23T01:03:03.2967415Z [ OK ] FlatbufferTest.SetState (33 ms) 2022-11-23T01:03:03.2967748Z [ RUN ] FlatbufferTest.BuiltinClass 2022-11-23T01:03:03.3041552Z [ OK ] FlatbufferTest.BuiltinClass (7 ms) 2022-11-23T01:03:03.3041943Z [ RUN ] FlatbufferTest.BuiltinFunction 2022-11-23T01:03:03.3067276Z [ OK ] FlatbufferTest.BuiltinFunction (2 ms) 2022-11-23T01:03:03.3067632Z [ RUN ] FlatbufferTest.Eval 2022-11-23T01:03:03.3142734Z [ OK ] FlatbufferTest.Eval (7 ms) 2022-11-23T01:03:03.3143096Z [ RUN ] FlatbufferTest.FindWrongMethodName 2022-11-23T01:03:03.3172255Z [ OK ] FlatbufferTest.FindWrongMethodName (2 ms) 2022-11-23T01:03:03.3172653Z [ RUN ] FlatbufferTest.FindAndRunMethod 2022-11-23T01:03:03.3254792Z [ OK ] FlatbufferTest.FindAndRunMethod (8 ms) 2022-11-23T01:03:03.3255179Z [ RUN ] FlatbufferTest.RunMethodVariadic 2022-11-23T01:03:03.3328711Z [ OK ] FlatbufferTest.RunMethodVariadic (7 ms) 2022-11-23T01:03:03.3329334Z [ RUN ] FlatbufferTest.DuplicateSetState 2022-11-23T01:03:03.3439850Z [ OK ] FlatbufferTest.DuplicateSetState (11 ms) 2022-11-23T01:03:03.3440273Z [ RUN ] FlatbufferTest.OpNameExportFetchRootOperators 2022-11-23T01:03:03.3505486Z [ OK ] FlatbufferTest.OpNameExportFetchRootOperators (6 ms) 2022-11-23T01:03:03.3506066Z [ RUN ] FlatbufferTest.DefaultArgsConv 2022-11-23T01:03:03.3506387Z [ OK ] FlatbufferTest.DefaultArgsConv (0 ms) 2022-11-23T01:03:03.3506710Z [ RUN ] FlatbufferTest.DefaultArgsPinv 2022-11-23T01:03:03.3867345Z [ OK ] FlatbufferTest.DefaultArgsPinv (36 ms) 2022-11-23T01:03:03.3867732Z [ RUN ] FlatbufferTest.DefaultArgsTensorinvSpecifyDefault 2022-11-23T01:03:03.3971726Z [ OK ] FlatbufferTest.DefaultArgsTensorinvSpecifyDefault (10 ms) 2022-11-23T01:03:03.3972149Z [ RUN ] FlatbufferTest.DefaultArgsPinvWithOutArg 2022-11-23T01:03:03.4155743Z [ OK ] FlatbufferTest.DefaultArgsPinvWithOutArg (18 ms) 2022-11-23T01:03:03.4156111Z [ RUN ] FlatbufferTest.DefaultArgsWithOutArg 2022-11-23T01:03:03.4271825Z [ OK ] FlatbufferTest.DefaultArgsWithOutArg (11 ms) 2022-11-23T01:03:03.4272266Z [ RUN ] FlatbufferTest.OperatorCacheDifferentiatesDefaultArgs 2022-11-23T01:03:03.4607259Z [ OK ] FlatbufferTest.OperatorCacheDifferentiatesDefaultArgs (33 ms) 2022-11-23T01:03:03.4607679Z [ RUN ] FlatbufferTest.OperatorSize1 2022-11-23T01:03:03.4634736Z [ OK ] FlatbufferTest.OperatorSize1 (2 ms) 2022-11-23T01:03:03.4635072Z [ RUN ] FlatbufferTest.BoolAndDoubleList 2022-11-23T01:03:03.4639650Z [ OK ] FlatbufferTest.BoolAndDoubleList (0 ms) 2022-11-23T01:03:03.4639998Z [ RUN ] FlatbufferTest.OperatorTest2 2022-11-23T01:03:03.4766384Z [ OK ] FlatbufferTest.OperatorTest2 (12 ms) 2022-11-23T01:03:03.4767108Z [ RUN ] FlatbufferTest.DetachedBufferSmoke 2022-11-23T01:03:03.4767479Z [ OK ] FlatbufferTest.DetachedBufferSmoke (0 ms) 2022-11-23T01:03:03.4767844Z [ RUN ] FlatbufferTest.DetachedBufferNullOwner 2022-11-23T01:03:03.4768221Z [ OK ] FlatbufferTest.DetachedBufferNullOwner (0 ms) 2022-11-23T01:03:03.4768589Z [----------] 35 tests from FlatbufferTest (365 ms total) 2022-11-23T01:03:03.4768758Z 2022-11-23T01:03:03.4768930Z [----------] 3 tests from TestSourceFlatbuffer 2022-11-23T01:03:03.4769272Z [ RUN ] TestSourceFlatbuffer.UpsampleNearest2d 2022-11-23T01:03:03.5016106Z [ OK ] TestSourceFlatbuffer.UpsampleNearest2d (24 ms) 2022-11-23T01:03:03.5016492Z [ RUN ] TestSourceFlatbuffer.CheckAttrAccess 2022-11-23T01:03:03.5027766Z [ OK ] TestSourceFlatbuffer.CheckAttrAccess (1 ms) 2022-11-23T01:03:03.5028138Z [ RUN ] TestSourceFlatbuffer.MethodInvocation 2022-11-23T01:03:03.5850483Z [ OK ] TestSourceFlatbuffer.MethodInvocation (82 ms) 2022-11-23T01:03:03.5851080Z [----------] 3 tests from TestSourceFlatbuffer (108 ms total) 2022-11-23T01:03:03.5851261Z 2022-11-23T01:03:03.5851450Z [----------] 10 tests from FlatbufferUpgraderTest 2022-11-23T01:03:03.5851803Z [ RUN ] FlatbufferUpgraderTest.DivTensorV2 2022-11-23T01:03:03.5858291Z [ OK ] FlatbufferUpgraderTest.DivTensorV2 (0 ms) 2022-11-23T01:03:03.5858866Z [ RUN ] FlatbufferUpgraderTest.DivTensorOutV2 2022-11-23T01:03:03.5865478Z [ OK ] FlatbufferUpgraderTest.DivTensorOutV2 (0 ms) 2022-11-23T01:03:03.5865871Z [ RUN ] FlatbufferUpgraderTest.DivTensorInplaceV2 2022-11-23T01:03:03.5871977Z [ OK ] FlatbufferUpgraderTest.DivTensorInplaceV2 (0 ms) 2022-11-23T01:03:03.5872375Z [ RUN ] FlatbufferUpgraderTest.DivScalarFloatV2 2022-11-23T01:03:03.5878300Z [ OK ] FlatbufferUpgraderTest.DivScalarFloatV2 (0 ms) 2022-11-23T01:03:03.5878781Z [ RUN ] FlatbufferUpgraderTest.DivScalarReciprocalFloatV2 2022-11-23T01:03:03.5884758Z [ OK ] FlatbufferUpgraderTest.DivScalarReciprocalFloatV2 (0 ms) 2022-11-23T01:03:03.5885291Z [ RUN ] FlatbufferUpgraderTest.DivScalarReciprocalIntV2 2022-11-23T01:03:03.5891130Z [ OK ] FlatbufferUpgraderTest.DivScalarReciprocalIntV2 (0 ms) 2022-11-23T01:03:03.5891531Z [ RUN ] FlatbufferUpgraderTest.DivScalarScalarV2 2022-11-23T01:03:03.5894478Z [ OK ] FlatbufferUpgraderTest.DivScalarScalarV2 (0 ms) 2022-11-23T01:03:03.5894864Z [ RUN ] FlatbufferUpgraderTest.DivScalarIntV2 2022-11-23T01:03:03.5900823Z [ OK ] FlatbufferUpgraderTest.DivScalarIntV2 (0 ms) 2022-11-23T01:03:03.5901214Z [ RUN ] FlatbufferUpgraderTest.DivScalarInplaceFloatV2 2022-11-23T01:03:03.5906976Z [ OK ] FlatbufferUpgraderTest.DivScalarInplaceFloatV2 (0 ms) 2022-11-23T01:03:03.5907405Z [ RUN ] FlatbufferUpgraderTest.DivScalarInplaceIntV2 2022-11-23T01:03:03.5913734Z [ OK ] FlatbufferUpgraderTest.DivScalarInplaceIntV2 (0 ms) 2022-11-23T01:03:03.5914177Z [----------] 10 tests from FlatbufferUpgraderTest (6 ms total) 2022-11-23T01:03:03.5914370Z 2022-11-23T01:03:03.5914609Z [----------] 12 tests from AliasAnalysisTest/BatchAndInstanceNormFixture 2022-11-23T01:03:03.5915073Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/0 2022-11-23T01:03:03.5925799Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/0 (1 ms) 2022-11-23T01:03:03.5926299Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/1 2022-11-23T01:03:03.5936763Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/1 (1 ms) 2022-11-23T01:03:03.5937273Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/2 2022-11-23T01:03:03.5947980Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/2 (1 ms) 2022-11-23T01:03:03.5948506Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/3 2022-11-23T01:03:03.5959096Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/3 (1 ms) 2022-11-23T01:03:03.5959666Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/0 2022-11-23T01:03:03.5970292Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/0 (1 ms) 2022-11-23T01:03:03.5970888Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/1 2022-11-23T01:03:03.5981487Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/1 (1 ms) 2022-11-23T01:03:03.5982130Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/2 2022-11-23T01:03:03.5991524Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/2 (1 ms) 2022-11-23T01:03:03.5992248Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/3 2022-11-23T01:03:03.6001831Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/3 (1 ms) 2022-11-23T01:03:03.6002545Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/0 2022-11-23T01:03:03.6012327Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/0 (1 ms) 2022-11-23T01:03:03.6013035Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/1 2022-11-23T01:03:03.6022640Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/1 (0 ms) 2022-11-23T01:03:03.6023269Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/2 2022-11-23T01:03:03.6032480Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/2 (0 ms) 2022-11-23T01:03:03.6033248Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/3 2022-11-23T01:03:03.6042669Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/3 (0 ms) 2022-11-23T01:03:03.6043432Z [----------] 12 tests from AliasAnalysisTest/BatchAndInstanceNormFixture (12 ms total) 2022-11-23T01:03:03.6043641Z 2022-11-23T01:03:03.6043888Z [----------] 10 tests from PyTorch/LiteInterpreterDynamicTypeTestFixture 2022-11-23T01:03:03.6044327Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/0 2022-11-23T01:03:23.0540567Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/0 (19449 ms) 2022-11-23T01:03:23.0541105Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/1 2022-11-23T01:03:49.6012356Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/1 (26547 ms) 2022-11-23T01:03:49.6012914Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/2 2022-11-23T01:04:22.7051065Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/2 (33103 ms) 2022-11-23T01:04:22.7051589Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/3 2022-11-23T01:04:55.4253653Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/3 (32720 ms) 2022-11-23T01:04:55.4254449Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/4 2022-11-23T01:05:26.9410429Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/4 (31515 ms) 2022-11-23T01:05:26.9411068Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/5 2022-11-23T01:06:00.3350178Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/5 (33393 ms) 2022-11-23T01:06:00.3350705Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/6 2022-11-23T01:06:31.5783173Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/6 (31243 ms) 2022-11-23T01:06:31.5783707Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/7 2022-11-23T01:07:03.1225133Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/7 (31544 ms) 2022-11-23T01:07:03.1226013Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/8 2022-11-23T01:07:31.5186446Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/8 (28396 ms) 2022-11-23T01:07:31.5186972Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/9 2022-11-23T01:07:59.4250867Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/9 (27906 ms) 2022-11-23T01:07:59.4251431Z [----------] 10 tests from PyTorch/LiteInterpreterDynamicTypeTestFixture (295820 ms total) 2022-11-23T01:07:59.4251667Z 2022-11-23T01:07:59.4251925Z [----------] Global test environment tear-down 2022-11-23T01:07:59.4782578Z [==========] 568 tests from 118 test suites ran. (305218 ms total) 2022-11-23T01:07:59.4782908Z [ PASSED ] 568 tests. 2022-11-23T01:08:00.0000457Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2022-11-23T01:08:00.0001000Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_lazy --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_lazy.xml 2022-11-23T01:08:03.6982393Z CUDA not available. Disabling CUDA and MultiCUDA tests 2022-11-23T01:08:03.7017037Z Note: Google Test filter = *-*_CUDA:*_MultiCUDA 2022-11-23T01:08:03.7018025Z [==========] Running 612 tests from 10 test suites. 2022-11-23T01:08:03.7018827Z [----------] Global test environment set-up. 2022-11-23T01:08:03.7019246Z [----------] 11 tests from BackendDeviceTest 2022-11-23T01:08:03.7019711Z [ RUN ] BackendDeviceTest.BackendDeviceType 2022-11-23T01:08:03.7020518Z [ OK ] BackendDeviceTest.BackendDeviceType (0 ms) 2022-11-23T01:08:03.7021090Z [ RUN ] BackendDeviceTest.Basic1 2022-11-23T01:08:03.7021382Z [ OK ] BackendDeviceTest.Basic1 (0 ms) 2022-11-23T01:08:03.7021774Z [ RUN ] BackendDeviceTest.Basic2 2022-11-23T01:08:03.7022081Z [ OK ] BackendDeviceTest.Basic2 (0 ms) 2022-11-23T01:08:03.7022362Z [ RUN ] BackendDeviceTest.Basic3 2022-11-23T01:08:03.7025000Z [ OK ] BackendDeviceTest.Basic3 (0 ms) 2022-11-23T01:08:03.7025571Z [ RUN ] BackendDeviceTest.Basic4 2022-11-23T01:08:03.7026015Z [ OK ] BackendDeviceTest.Basic4 (0 ms) 2022-11-23T01:08:03.7026571Z [ RUN ] BackendDeviceTest.Compare 2022-11-23T01:08:03.7027098Z [ OK ] BackendDeviceTest.Compare (0 ms) 2022-11-23T01:08:03.7027399Z [ RUN ] BackendDeviceTest.Ostream 2022-11-23T01:08:03.7027712Z [ OK ] BackendDeviceTest.Ostream (0 ms) 2022-11-23T01:08:03.7028002Z [ RUN ] BackendDeviceTest.FromAten 2022-11-23T01:08:03.7039619Z [ OK ] BackendDeviceTest.FromAten (1 ms) 2022-11-23T01:08:03.7040187Z [ RUN ] BackendDeviceTest.ToAten 2022-11-23T01:08:03.7040746Z [ OK ] BackendDeviceTest.ToAten (0 ms) 2022-11-23T01:08:03.7041334Z [ RUN ] BackendDeviceTest.GetBackendDevice1 2022-11-23T01:08:03.7226534Z [ OK ] BackendDeviceTest.GetBackendDevice1 (18 ms) 2022-11-23T01:08:03.7227174Z [ RUN ] BackendDeviceTest.GetBackendDevice2 2022-11-23T01:08:03.7228098Z [ OK ] BackendDeviceTest.GetBackendDevice2 (0 ms) 2022-11-23T01:08:03.7228725Z [----------] 11 tests from BackendDeviceTest (21 ms total) 2022-11-23T01:08:03.7229026Z 2022-11-23T01:08:03.7229269Z [----------] 2 tests from CacheTest 2022-11-23T01:08:03.7229812Z [ RUN ] CacheTest.BasicTest 2022-11-23T01:08:03.7230263Z [ OK ] CacheTest.BasicTest (0 ms) 2022-11-23T01:08:03.7230842Z [ RUN ] CacheTest.ShapeCacheTestForDynamicShape 2022-11-23T01:08:03.7231516Z [ OK ] CacheTest.ShapeCacheTestForDynamicShape (0 ms) 2022-11-23T01:08:03.7232095Z [----------] 2 tests from CacheTest (0 ms total) 2022-11-23T01:08:03.7232354Z 2022-11-23T01:08:03.7232585Z [----------] 5 tests from IrTest 2022-11-23T01:08:03.7233006Z [ RUN ] IrTest.BasicTest 2022-11-23T01:08:03.7233466Z [ OK ] IrTest.BasicTest (0 ms) 2022-11-23T01:08:03.7233915Z [ RUN ] IrTest.MetaDataTest 2022-11-23T01:08:03.7234408Z [ OK ] IrTest.MetaDataTest (0 ms) 2022-11-23T01:08:03.7234878Z [ RUN ] IrTest.TsNodeTest 2022-11-23T01:08:03.7235340Z [ OK ] IrTest.TsNodeTest (0 ms) 2022-11-23T01:08:03.7235821Z [ RUN ] IrTest.DimensionNodeTest 2022-11-23T01:08:03.7236328Z [ OK ] IrTest.DimensionNodeTest (0 ms) 2022-11-23T01:08:03.7236853Z [ RUN ] IrTest.DimensionIsDynamicTest 2022-11-23T01:08:03.7237413Z [ OK ] IrTest.DimensionIsDynamicTest (0 ms) 2022-11-23T01:08:03.7237938Z [----------] 5 tests from IrTest (0 ms total) 2022-11-23T01:08:03.7238192Z 2022-11-23T01:08:03.7238439Z [----------] 2 tests from IrUtilTest 2022-11-23T01:08:03.7238890Z [ RUN ] IrUtilTest.BasicTest 2022-11-23T01:08:03.7239392Z [ OK ] IrUtilTest.BasicTest (0 ms) 2022-11-23T01:08:03.7239879Z [ RUN ] IrUtilTest.TestCircle 2022-11-23T01:08:03.7267208Z [ OK ] IrUtilTest.TestCircle (2 ms) 2022-11-23T01:08:03.7268083Z [----------] 2 tests from IrUtilTest (2 ms total) 2022-11-23T01:08:03.7268261Z 2022-11-23T01:08:03.7268411Z [----------] 2 tests from HashTest 2022-11-23T01:08:03.7268675Z [ RUN ] HashTest.Scalar 2022-11-23T01:08:03.7268928Z [ OK ] HashTest.Scalar (0 ms) 2022-11-23T01:08:03.7269246Z [ RUN ] HashTest.Sanity 2022-11-23T01:08:03.7270786Z [ OK ] HashTest.Sanity (0 ms) 2022-11-23T01:08:03.7271314Z [----------] 2 tests from HashTest (0 ms total) 2022-11-23T01:08:03.7271574Z 2022-11-23T01:08:03.7271750Z [----------] 3 tests from PermutationUtilTest 2022-11-23T01:08:03.7272104Z [ RUN ] PermutationUtilTest.TestInversePermutation 2022-11-23T01:08:03.7301814Z [ OK ] PermutationUtilTest.TestInversePermutation (3 ms) 2022-11-23T01:08:03.7302197Z [ RUN ] PermutationUtilTest.TestIsPermutation 2022-11-23T01:08:03.7302575Z [ OK ] PermutationUtilTest.TestIsPermutation (0 ms) 2022-11-23T01:08:03.7302931Z [ RUN ] PermutationUtilTest.TestPermute 2022-11-23T01:08:03.7343783Z [ OK ] PermutationUtilTest.TestPermute (4 ms) 2022-11-23T01:08:03.7344432Z [----------] 3 tests from PermutationUtilTest (7 ms total) 2022-11-23T01:08:03.7344754Z 2022-11-23T01:08:03.7345024Z [----------] 7 tests from ShapeTest 2022-11-23T01:08:03.7345458Z [ RUN ] ShapeTest.Basic1 2022-11-23T01:08:03.7345816Z [ OK ] ShapeTest.Basic1 (0 ms) 2022-11-23T01:08:03.7346189Z [ RUN ] ShapeTest.Basic2 2022-11-23T01:08:03.7346626Z [ OK ] ShapeTest.Basic2 (0 ms) 2022-11-23T01:08:03.7347045Z [ RUN ] ShapeTest.Basic3 2022-11-23T01:08:03.7347484Z [ OK ] ShapeTest.Basic3 (0 ms) 2022-11-23T01:08:03.7347973Z [ RUN ] ShapeTest.SetScalarType 2022-11-23T01:08:03.7348412Z [ OK ] ShapeTest.SetScalarType (0 ms) 2022-11-23T01:08:03.7348820Z [ RUN ] ShapeTest.SetSize 2022-11-23T01:08:03.7349247Z [ OK ] ShapeTest.SetSize (0 ms) 2022-11-23T01:08:03.7349740Z [ RUN ] ShapeTest.Equal 2022-11-23T01:08:03.7350102Z [ OK ] ShapeTest.Equal (0 ms) 2022-11-23T01:08:03.7350512Z [ RUN ] ShapeTest.Ostream 2022-11-23T01:08:03.7350994Z [ OK ] ShapeTest.Ostream (0 ms) 2022-11-23T01:08:03.7351529Z [----------] 7 tests from ShapeTest (0 ms total) 2022-11-23T01:08:03.7351786Z 2022-11-23T01:08:03.7351945Z [----------] 2 tests from TrieCacheTest 2022-11-23T01:08:03.7352236Z [ RUN ] TrieCacheTest.TestSinglePath 2022-11-23T01:08:03.7352694Z [ OK ] TrieCacheTest.TestSinglePath (0 ms) 2022-11-23T01:08:03.7353249Z [ RUN ] TrieCacheTest.TestTwoPaths 2022-11-23T01:08:03.7353615Z [ OK ] TrieCacheTest.TestTwoPaths (0 ms) 2022-11-23T01:08:03.7353942Z [----------] 2 tests from TrieCacheTest (0 ms total) 2022-11-23T01:08:03.7354097Z 2022-11-23T01:08:03.7354223Z [----------] 3 tests from UtilTest 2022-11-23T01:08:03.7354504Z [ RUN ] UtilTest.ExceptionCleanup 2022-11-23T01:08:03.7354812Z [ OK ] UtilTest.ExceptionCleanup (0 ms) 2022-11-23T01:08:03.7355077Z [ RUN ] UtilTest.MaybeRef 2022-11-23T01:08:03.7355346Z [ OK ] UtilTest.MaybeRef (0 ms) 2022-11-23T01:08:03.7355602Z [ RUN ] UtilTest.Iota 2022-11-23T01:08:03.7355857Z [ OK ] UtilTest.Iota (0 ms) 2022-11-23T01:08:03.7356130Z [----------] 3 tests from UtilTest (0 ms total) 2022-11-23T01:08:03.7356275Z 2022-11-23T01:08:03.7356425Z [----------] 575 tests from LazyOpsTest 2022-11-23T01:08:03.7356721Z [ RUN ] LazyOpsTest.TestScalarTensor 2022-11-23T01:08:03.8545004Z [ OK ] LazyOpsTest.TestScalarTensor (119 ms) 2022-11-23T01:08:03.8545480Z [ RUN ] LazyOpsTest.TestClone 2022-11-23T01:08:03.8579173Z [ OK ] LazyOpsTest.TestClone (3 ms) 2022-11-23T01:08:03.8579607Z [ RUN ] LazyOpsTest.TestTo 2022-11-23T01:08:03.8588490Z [ OK ] LazyOpsTest.TestTo (0 ms) 2022-11-23T01:08:03.8589071Z [ RUN ] LazyOpsTest.TestIsFloatingPoint 2022-11-23T01:08:03.8590948Z [ OK ] LazyOpsTest.TestIsFloatingPoint (0 ms) 2022-11-23T01:08:03.8591500Z [ RUN ] LazyOpsTest.TestIsSigned 2022-11-23T01:08:03.8593589Z [ OK ] LazyOpsTest.TestIsSigned (0 ms) 2022-11-23T01:08:03.8594138Z [ RUN ] LazyOpsTest.TestCastByte 2022-11-23T01:08:04.4460443Z [ OK ] LazyOpsTest.TestCastByte (586 ms) 2022-11-23T01:08:04.4460779Z [ RUN ] LazyOpsTest.TestCastChar 2022-11-23T01:08:04.4497900Z [ OK ] LazyOpsTest.TestCastChar (3 ms) 2022-11-23T01:08:04.4498217Z [ RUN ] LazyOpsTest.TestCastShort 2022-11-23T01:08:04.4533370Z [ OK ] LazyOpsTest.TestCastShort (3 ms) 2022-11-23T01:08:04.4533691Z [ RUN ] LazyOpsTest.TestCastInt 2022-11-23T01:08:04.4568971Z [ OK ] LazyOpsTest.TestCastInt (3 ms) 2022-11-23T01:08:04.4569276Z [ RUN ] LazyOpsTest.TestCastLong 2022-11-23T01:08:04.4604173Z [ OK ] LazyOpsTest.TestCastLong (3 ms) 2022-11-23T01:08:04.4604489Z [ RUN ] LazyOpsTest.TestCastFloat 2022-11-23T01:08:04.4609628Z [ OK ] LazyOpsTest.TestCastFloat (0 ms) 2022-11-23T01:08:04.4609924Z [ RUN ] LazyOpsTest.TestRetainType 2022-11-23T01:08:04.4618135Z [ OK ] LazyOpsTest.TestRetainType (0 ms) 2022-11-23T01:08:04.4618645Z [ RUN ] LazyOpsTest.TestLogicalTypeWithInterop 2022-11-23T01:08:04.4722325Z [ OK ] LazyOpsTest.TestLogicalTypeWithInterop (10 ms) 2022-11-23T01:08:04.4722678Z [ RUN ] LazyOpsTest.TestAdd 2022-11-23T01:08:04.4760002Z [ OK ] LazyOpsTest.TestAdd (3 ms) 2022-11-23T01:08:04.4760309Z [ RUN ] LazyOpsTest.TestAddHalf 2022-11-23T01:08:04.4797292Z [ OK ] LazyOpsTest.TestAddHalf (3 ms) 2022-11-23T01:08:04.4797633Z [ RUN ] LazyOpsTest.TestAddMixedPrecision 2022-11-23T01:08:04.4834972Z [ OK ] LazyOpsTest.TestAddMixedPrecision (3 ms) 2022-11-23T01:08:04.4835317Z [ RUN ] LazyOpsTest.TestAddInPlace 2022-11-23T01:08:04.4899588Z [ OK ] LazyOpsTest.TestAddInPlace (6 ms) 2022-11-23T01:08:04.4899914Z [ RUN ] LazyOpsTest.TestAddScalar 2022-11-23T01:08:04.4936702Z [ OK ] LazyOpsTest.TestAddScalar (3 ms) 2022-11-23T01:08:04.4937018Z [ RUN ] LazyOpsTest.TestAddScalarInPlace 2022-11-23T01:08:04.4999347Z [ OK ] LazyOpsTest.TestAddScalarInPlace (6 ms) 2022-11-23T01:08:04.4999748Z [ RUN ] LazyOpsTest.TestAddZeroSizeDim 2022-11-23T01:08:04.5034508Z [ OK ] LazyOpsTest.TestAddZeroSizeDim (3 ms) 2022-11-23T01:08:04.5034867Z [ RUN ] LazyOpsTest.TestSub 2022-11-23T01:08:04.5072199Z [ OK ] LazyOpsTest.TestSub (3 ms) 2022-11-23T01:08:04.5072571Z [ RUN ] LazyOpsTest.TestSubInPlace 2022-11-23T01:08:04.5134760Z [ OK ] LazyOpsTest.TestSubInPlace (6 ms) 2022-11-23T01:08:04.5135347Z [ RUN ] LazyOpsTest.TestSubScalar 2022-11-23T01:08:04.5171534Z [ OK ] LazyOpsTest.TestSubScalar (3 ms) 2022-11-23T01:08:04.5172111Z [ RUN ] LazyOpsTest.TestSubScalarInPlace 2022-11-23T01:08:04.5233596Z [ OK ] LazyOpsTest.TestSubScalarInPlace (6 ms) 2022-11-23T01:08:04.5234150Z [ RUN ] LazyOpsTest.TestMul 2022-11-23T01:08:04.5270778Z [ OK ] LazyOpsTest.TestMul (3 ms) 2022-11-23T01:08:04.5271062Z [ RUN ] LazyOpsTest.TestMulInPlace 2022-11-23T01:08:04.5335117Z [ OK ] LazyOpsTest.TestMulInPlace (6 ms) 2022-11-23T01:08:04.5335427Z [ RUN ] LazyOpsTest.TestMulScalar 2022-11-23T01:08:04.5371335Z [ OK ] LazyOpsTest.TestMulScalar (3 ms) 2022-11-23T01:08:04.5371721Z [ RUN ] LazyOpsTest.TestMulScalarInPlace 2022-11-23T01:08:04.5432237Z [ OK ] LazyOpsTest.TestMulScalarInPlace (6 ms) 2022-11-23T01:08:04.5432568Z [ RUN ] LazyOpsTest.TestDiv 2022-11-23T01:08:04.6542030Z [ OK ] LazyOpsTest.TestDiv (110 ms) 2022-11-23T01:08:04.6542396Z [ RUN ] LazyOpsTest.TestDivWithRoundingMode 2022-11-23T01:08:05.0215735Z [ OK ] LazyOpsTest.TestDivWithRoundingMode (367 ms) 2022-11-23T01:08:05.0216113Z [ RUN ] LazyOpsTest.TestDivInPlace 2022-11-23T01:08:05.0270851Z [ OK ] LazyOpsTest.TestDivInPlace (5 ms) 2022-11-23T01:08:05.0271230Z [ RUN ] LazyOpsTest.TestDivInPlaceWithRoundingMode 2022-11-23T01:08:05.0452756Z [ OK ] LazyOpsTest.TestDivInPlaceWithRoundingMode (18 ms) 2022-11-23T01:08:05.0453119Z [ RUN ] LazyOpsTest.TestDivScalar 2022-11-23T01:08:05.0822030Z [ OK ] LazyOpsTest.TestDivScalar (36 ms) 2022-11-23T01:08:05.0822666Z [ RUN ] LazyOpsTest.TestDivScalarInPlace 2022-11-23T01:08:05.0929615Z [ OK ] LazyOpsTest.TestDivScalarInPlace (10 ms) 2022-11-23T01:08:05.0930178Z [ RUN ] LazyOpsTest.TestDivOut 2022-11-23T01:08:05.0980224Z [ OK ] LazyOpsTest.TestDivOut (4 ms) 2022-11-23T01:08:05.0980753Z [ RUN ] LazyOpsTest.TestRsubScalar 2022-11-23T01:08:05.1017073Z [ OK ] LazyOpsTest.TestRsubScalar (3 ms) 2022-11-23T01:08:05.1017350Z [ RUN ] LazyOpsTest.TestNe 2022-11-23T01:08:05.1049025Z [ OK ] LazyOpsTest.TestNe (3 ms) 2022-11-23T01:08:05.1049323Z [ RUN ] LazyOpsTest.TestNeInplace 2022-11-23T01:08:05.1102496Z [ OK ] LazyOpsTest.TestNeInplace (5 ms) 2022-11-23T01:08:05.1102818Z [ RUN ] LazyOpsTest.TestEq 2022-11-23T01:08:05.1133515Z [ OK ] LazyOpsTest.TestEq (3 ms) 2022-11-23T01:08:05.1133816Z [ RUN ] LazyOpsTest.TestEqInplace 2022-11-23T01:08:05.1187444Z [ OK ] LazyOpsTest.TestEqInplace (5 ms) 2022-11-23T01:08:05.1187737Z [ RUN ] LazyOpsTest.TestGe 2022-11-23T01:08:05.1218424Z [ OK ] LazyOpsTest.TestGe (3 ms) 2022-11-23T01:08:05.1218904Z [ RUN ] LazyOpsTest.TestGeInplace 2022-11-23T01:08:05.1274464Z [ OK ] LazyOpsTest.TestGeInplace (5 ms) 2022-11-23T01:08:05.1274988Z [ RUN ] LazyOpsTest.TestLe 2022-11-23T01:08:05.1305630Z [ OK ] LazyOpsTest.TestLe (3 ms) 2022-11-23T01:08:05.1306184Z [ RUN ] LazyOpsTest.TestLeInplace 2022-11-23T01:08:05.1360032Z [ OK ] LazyOpsTest.TestLeInplace (5 ms) 2022-11-23T01:08:05.1360535Z [ RUN ] LazyOpsTest.TestGt 2022-11-23T01:08:05.1392357Z [ OK ] LazyOpsTest.TestGt (3 ms) 2022-11-23T01:08:05.1392908Z [ RUN ] LazyOpsTest.TestGtInplace 2022-11-23T01:08:05.1446514Z [ OK ] LazyOpsTest.TestGtInplace (5 ms) 2022-11-23T01:08:05.1447052Z [ RUN ] LazyOpsTest.TestLt 2022-11-23T01:08:05.1478686Z [ OK ] LazyOpsTest.TestLt (3 ms) 2022-11-23T01:08:05.1479220Z [ RUN ] LazyOpsTest.TestLtInplace 2022-11-23T01:08:05.1533060Z [ OK ] LazyOpsTest.TestLtInplace (5 ms) 2022-11-23T01:08:05.1533627Z [ RUN ] LazyOpsTest.TestNeScalar 2022-11-23T01:08:05.1562043Z [ OK ] LazyOpsTest.TestNeScalar (2 ms) 2022-11-23T01:08:05.1562606Z [ RUN ] LazyOpsTest.TestEqScalar 2022-11-23T01:08:05.1590250Z [ OK ] LazyOpsTest.TestEqScalar (2 ms) 2022-11-23T01:08:05.1590620Z [ RUN ] LazyOpsTest.TestGeScalar 2022-11-23T01:08:05.1618277Z [ OK ] LazyOpsTest.TestGeScalar (2 ms) 2022-11-23T01:08:05.1618801Z [ RUN ] LazyOpsTest.TestGeScalarInplace 2022-11-23T01:08:05.1668319Z [ OK ] LazyOpsTest.TestGeScalarInplace (4 ms) 2022-11-23T01:08:05.1668681Z [ RUN ] LazyOpsTest.TestLeScalar 2022-11-23T01:08:05.1695958Z [ OK ] LazyOpsTest.TestLeScalar (2 ms) 2022-11-23T01:08:05.1696305Z [ RUN ] LazyOpsTest.TestLeScalarInplace 2022-11-23T01:08:05.1745251Z [ OK ] LazyOpsTest.TestLeScalarInplace (4 ms) 2022-11-23T01:08:05.1745582Z [ RUN ] LazyOpsTest.TestGtScalar 2022-11-23T01:08:05.1773127Z [ OK ] LazyOpsTest.TestGtScalar (2 ms) 2022-11-23T01:08:05.1773459Z [ RUN ] LazyOpsTest.TestGtScalarInplace 2022-11-23T01:08:05.1821870Z [ OK ] LazyOpsTest.TestGtScalarInplace (4 ms) 2022-11-23T01:08:05.1822185Z [ RUN ] LazyOpsTest.TestLtScalar 2022-11-23T01:08:05.1849708Z [ OK ] LazyOpsTest.TestLtScalar (2 ms) 2022-11-23T01:08:05.1850045Z [ RUN ] LazyOpsTest.TestLtScalarInplace 2022-11-23T01:08:05.1898374Z [ OK ] LazyOpsTest.TestLtScalarInplace (4 ms) 2022-11-23T01:08:05.1898988Z [ RUN ] LazyOpsTest.TestIntegerAdd 2022-11-23T01:08:05.2036722Z [ OK ] LazyOpsTest.TestIntegerAdd (13 ms) 2022-11-23T01:08:05.2037040Z [ RUN ] LazyOpsTest.TestSVD 2022-11-23T01:08:05.2668590Z [ OK ] LazyOpsTest.TestSVD (63 ms) 2022-11-23T01:08:05.2668943Z [ RUN ] LazyOpsTest.TestQR 2022-11-23T01:08:05.2669367Z [W BatchLinearAlgebra.cpp:2458] Warning: torch.qr is deprecated in favor of torch.linalg.qr and will be removed in a future PyTorch release. 2022-11-23T01:08:05.2669871Z The boolean parameter 'some' has been replaced with a string parameter 'mode'. 2022-11-23T01:08:05.2670127Z Q, R = torch.qr(A, some) 2022-11-23T01:08:05.2670308Z should be replaced with 2022-11-23T01:08:05.2670636Z Q, R = torch.linalg.qr(A, 'reduced' if some else 'complete') (function operator()) 2022-11-23T01:08:05.2908765Z [ OK ] LazyOpsTest.TestQR (24 ms) 2022-11-23T01:08:05.2909110Z [ RUN ] LazyOpsTest.TestSymEig 2022-11-23T01:08:05.2911393Z [W BatchLinearAlgebra.cpp:2909] Warning: torch.symeig is deprecated in favor of torch.linalg.eigh and will be removed in a future PyTorch release. 2022-11-23T01:08:05.2911969Z The default behavior has changed from using the upper triangular portion of the matrix by default to using the lower triangular portion. 2022-11-23T01:08:05.2912310Z L, _ = torch.symeig(A, upper=upper) 2022-11-23T01:08:05.2912528Z should be replaced with 2022-11-23T01:08:05.2912855Z L = torch.linalg.eigvalsh(A, UPLO='U' if upper else 'L') 2022-11-23T01:08:05.2913069Z and 2022-11-23T01:08:05.2913258Z L, V = torch.symeig(A, eigenvectors=True) 2022-11-23T01:08:05.2913510Z should be replaced with 2022-11-23T01:08:05.2913829Z L, V = torch.linalg.eigh(A, UPLO='U' if upper else 'L') (function operator()) 2022-11-23T01:08:05.3084136Z [ OK ] LazyOpsTest.TestSymEig (17 ms) 2022-11-23T01:08:05.3084615Z [ RUN ] LazyOpsTest.TestCholesky 2022-11-23T01:08:05.3090023Z [W BatchLinearAlgebra.cpp:1729] Warning: torch.cholesky is deprecated in favor of torch.linalg.cholesky and will be removed in a future PyTorch release. 2022-11-23T01:08:05.3090672Z L = torch.cholesky(A) 2022-11-23T01:08:05.3090902Z should be replaced with 2022-11-23T01:08:05.3091101Z L = torch.linalg.cholesky(A) 2022-11-23T01:08:05.3091288Z and 2022-11-23T01:08:05.3091561Z U = torch.cholesky(A, upper=True) 2022-11-23T01:08:05.3091756Z should be replaced with 2022-11-23T01:08:05.3091964Z U = torch.linalg.cholesky(A).mH(). 2022-11-23T01:08:05.3092293Z This transform will produce equivalent results for all valid (symmetric positive definite) inputs. (function operator()) 2022-11-23T01:08:05.3169605Z [ OK ] LazyOpsTest.TestCholesky (8 ms) 2022-11-23T01:08:05.3170137Z [ RUN ] LazyOpsTest.TestLogDet 2022-11-23T01:08:05.3329093Z [ OK ] LazyOpsTest.TestLogDet (15 ms) 2022-11-23T01:08:05.3329592Z [ RUN ] LazyOpsTest.TestTriangularSolve 2022-11-23T01:08:05.3333447Z [W BatchLinearAlgebra.cpp:2224] Warning: torch.triangular_solve is deprecated in favor of torch.linalg.solve_triangularand will be removed in a future PyTorch release. 2022-11-23T01:08:05.3334134Z torch.linalg.solve_triangular has its arguments reversed and does not return a copy of one of the inputs. 2022-11-23T01:08:05.3334520Z X = torch.triangular_solve(B, A).solution 2022-11-23T01:08:05.3334724Z should be replaced with 2022-11-23T01:08:05.3334971Z X = torch.linalg.solve_triangular(A, B). (function operator()) 2022-11-23T01:08:05.6440774Z [ OK ] LazyOpsTest.TestTriangularSolve (311 ms) 2022-11-23T01:08:05.6441125Z [ RUN ] LazyOpsTest.TestKthValue 2022-11-23T01:08:05.6947824Z [ OK ] LazyOpsTest.TestKthValue (50 ms) 2022-11-23T01:08:05.6948139Z [ RUN ] LazyOpsTest.TestTopK 2022-11-23T01:08:05.9150051Z [ OK ] LazyOpsTest.TestTopK (220 ms) 2022-11-23T01:08:05.9150609Z [ RUN ] LazyOpsTest.TestSort 2022-11-23T01:08:06.0134562Z [ OK ] LazyOpsTest.TestSort (98 ms) 2022-11-23T01:08:06.0134903Z [ RUN ] LazyOpsTest.TestSortDescWithMinValue 2022-11-23T01:08:06.0200178Z [ OK ] LazyOpsTest.TestSortDescWithMinValue (6 ms) 2022-11-23T01:08:06.0200521Z [ RUN ] LazyOpsTest.TestArgSort 2022-11-23T01:08:06.0352583Z [ OK ] LazyOpsTest.TestArgSort (15 ms) 2022-11-23T01:08:06.0352863Z [ RUN ] LazyOpsTest.TestMin 2022-11-23T01:08:06.0388945Z [ OK ] LazyOpsTest.TestMin (3 ms) 2022-11-23T01:08:06.0389234Z [ RUN ] LazyOpsTest.TestMax 2022-11-23T01:08:06.0424828Z [ OK ] LazyOpsTest.TestMax (3 ms) 2022-11-23T01:08:06.0425118Z [ RUN ] LazyOpsTest.TestUnaryMin 2022-11-23T01:08:06.0454447Z [ OK ] LazyOpsTest.TestUnaryMin (2 ms) 2022-11-23T01:08:06.0454792Z [ RUN ] LazyOpsTest.TestUnaryMax 2022-11-23T01:08:06.0484227Z [ OK ] LazyOpsTest.TestUnaryMax (2 ms) 2022-11-23T01:08:06.0484522Z [ RUN ] LazyOpsTest.TestAll 2022-11-23T01:08:06.0610945Z [ OK ] LazyOpsTest.TestAll (12 ms) 2022-11-23T01:08:06.0611250Z [ RUN ] LazyOpsTest.TestAllDim 2022-11-23T01:08:06.0644464Z [ OK ] LazyOpsTest.TestAllDim (3 ms) 2022-11-23T01:08:06.0644767Z [ RUN ] LazyOpsTest.TestAllDimKeep 2022-11-23T01:08:06.0676694Z [ OK ] LazyOpsTest.TestAllDimKeep (3 ms) 2022-11-23T01:08:06.0677046Z [ RUN ] LazyOpsTest.TestAmax 2022-11-23T01:08:06.1277101Z [ OK ] LazyOpsTest.TestAmax (59 ms) 2022-11-23T01:08:06.1277404Z [ RUN ] LazyOpsTest.TestAmin 2022-11-23T01:08:06.1874939Z [ OK ] LazyOpsTest.TestAmin (59 ms) 2022-11-23T01:08:06.1875302Z [ RUN ] LazyOpsTest.TestAny 2022-11-23T01:08:06.2004770Z [ OK ] LazyOpsTest.TestAny (12 ms) 2022-11-23T01:08:06.2005151Z [ RUN ] LazyOpsTest.TestAnyDim 2022-11-23T01:08:06.2039245Z [ OK ] LazyOpsTest.TestAnyDim (3 ms) 2022-11-23T01:08:06.2039553Z [ RUN ] LazyOpsTest.TestAnyDimKeep 2022-11-23T01:08:06.2073822Z [ OK ] LazyOpsTest.TestAnyDimKeep (3 ms) 2022-11-23T01:08:06.2074187Z [ RUN ] LazyOpsTest.TestMean 2022-11-23T01:08:06.2110050Z [ OK ] LazyOpsTest.TestMean (3 ms) 2022-11-23T01:08:06.2110422Z [ RUN ] LazyOpsTest.TestMeanCast 2022-11-23T01:08:06.2144842Z [ OK ] LazyOpsTest.TestMeanCast (3 ms) 2022-11-23T01:08:06.2145211Z [ RUN ] LazyOpsTest.TestMeanInDim 2022-11-23T01:08:06.2361662Z [ OK ] LazyOpsTest.TestMeanInDim (21 ms) 2022-11-23T01:08:06.2361992Z [ RUN ] LazyOpsTest.TestMeanInDims 2022-11-23T01:08:06.2437677Z [ OK ] LazyOpsTest.TestMeanInDims (7 ms) 2022-11-23T01:08:06.2438090Z [ RUN ] LazyOpsTest.TestMeanInDimsKeepCast 2022-11-23T01:08:06.2513847Z [ OK ] LazyOpsTest.TestMeanInDimsKeepCast (7 ms) 2022-11-23T01:08:06.2514199Z [ RUN ] LazyOpsTest.TestMeanInDimOut 2022-11-23T01:08:06.2730719Z [ OK ] LazyOpsTest.TestMeanInDimOut (21 ms) 2022-11-23T01:08:06.2731042Z [ RUN ] LazyOpsTest.TestStd 2022-11-23T01:08:06.2812897Z [ OK ] LazyOpsTest.TestStd (8 ms) 2022-11-23T01:08:06.2813183Z [ RUN ] LazyOpsTest.TestStdInDim 2022-11-23T01:08:06.3690285Z [ OK ] LazyOpsTest.TestStdInDim (87 ms) 2022-11-23T01:08:06.3690636Z [ RUN ] LazyOpsTest.TestStdWithCorrection 2022-11-23T01:08:06.4126204Z [ OK ] LazyOpsTest.TestStdWithCorrection (43 ms) 2022-11-23T01:08:06.4126561Z [ RUN ] LazyOpsTest.TestStdMeanWithCorrection 2022-11-23T01:08:06.4346793Z [ OK ] LazyOpsTest.TestStdMeanWithCorrection (22 ms) 2022-11-23T01:08:06.4347114Z [ RUN ] LazyOpsTest.TestSum 2022-11-23T01:08:06.4380681Z [ OK ] LazyOpsTest.TestSum (3 ms) 2022-11-23T01:08:06.4380967Z [ RUN ] LazyOpsTest.TestSumCast 2022-11-23T01:08:06.4413462Z [ OK ] LazyOpsTest.TestSumCast (3 ms) 2022-11-23T01:08:06.4413813Z [ RUN ] LazyOpsTest.TestSumU8 2022-11-23T01:08:06.4442158Z [ OK ] LazyOpsTest.TestSumU8 (2 ms) 2022-11-23T01:08:06.4442590Z [ RUN ] LazyOpsTest.TestSumInDim 2022-11-23T01:08:06.4646494Z [ OK ] LazyOpsTest.TestSumInDim (20 ms) 2022-11-23T01:08:06.4646835Z [ RUN ] LazyOpsTest.TestSumInDims 2022-11-23T01:08:06.4737430Z [ OK ] LazyOpsTest.TestSumInDims (7 ms) 2022-11-23T01:08:06.4737911Z [ RUN ] LazyOpsTest.TestSumInDimsKeep 2022-11-23T01:08:06.4791511Z [ OK ] LazyOpsTest.TestSumInDimsKeep (7 ms) 2022-11-23T01:08:06.4792092Z [ RUN ] LazyOpsTest.TestSumInDimsKeepCast 2022-11-23T01:08:06.4863716Z [ OK ] LazyOpsTest.TestSumInDimsKeepCast (7 ms) 2022-11-23T01:08:06.4864238Z [ RUN ] LazyOpsTest.TestVar 2022-11-23T01:08:06.4891980Z [ OK ] LazyOpsTest.TestVar (2 ms) 2022-11-23T01:08:06.4892288Z [ RUN ] LazyOpsTest.TestVarWithDim 2022-11-23T01:08:06.4984061Z [ OK ] LazyOpsTest.TestVarWithDim (9 ms) 2022-11-23T01:08:06.4984396Z [ RUN ] LazyOpsTest.TestVarWithCorrection 2022-11-23T01:08:06.5116226Z [ OK ] LazyOpsTest.TestVarWithCorrection (13 ms) 2022-11-23T01:08:06.5116600Z [ RUN ] LazyOpsTest.TestVarMeanWithCorrection 2022-11-23T01:08:06.5335735Z [ OK ] LazyOpsTest.TestVarMeanWithCorrection (21 ms) 2022-11-23T01:08:06.5336090Z [ RUN ] LazyOpsTest.TestMaxInDim 2022-11-23T01:08:06.6087897Z [ OK ] LazyOpsTest.TestMaxInDim (75 ms) 2022-11-23T01:08:06.6088320Z [ RUN ] LazyOpsTest.TestMinInDim 2022-11-23T01:08:06.6266831Z [ OK ] LazyOpsTest.TestMinInDim (17 ms) 2022-11-23T01:08:06.6267154Z [ RUN ] LazyOpsTest.TestNorm 2022-11-23T01:08:06.6306693Z [ OK ] LazyOpsTest.TestNorm (4 ms) 2022-11-23T01:08:06.6306989Z [ RUN ] LazyOpsTest.TestNormInDim 2022-11-23T01:08:06.6388719Z [ OK ] LazyOpsTest.TestNormInDim (8 ms) 2022-11-23T01:08:06.6389061Z [ RUN ] LazyOpsTest.TestNormInDims 2022-11-23T01:08:06.6460931Z [ OK ] LazyOpsTest.TestNormInDims (7 ms) 2022-11-23T01:08:06.6461506Z [ RUN ] LazyOpsTest.TestNormInDimsKeep 2022-11-23T01:08:06.6536128Z [ OK ] LazyOpsTest.TestNormInDimsKeep (7 ms) 2022-11-23T01:08:06.6536507Z [ RUN ] LazyOpsTest.TestNormalTwoTensor 2022-11-23T01:08:06.6608088Z [ OK ] LazyOpsTest.TestNormalTwoTensor (7 ms) 2022-11-23T01:08:06.6608473Z [ RUN ] LazyOpsTest.TestNormalDoubleMean 2022-11-23T01:08:06.6710978Z [ OK ] LazyOpsTest.TestNormalDoubleMean (10 ms) 2022-11-23T01:08:06.6711572Z [ RUN ] LazyOpsTest.TestNormalDoubleStd 2022-11-23T01:08:06.6730835Z [ OK ] LazyOpsTest.TestNormalDoubleStd (1 ms) 2022-11-23T01:08:06.6731208Z [ RUN ] LazyOpsTest.TestNormalInPlace 2022-11-23T01:08:06.6762164Z [ OK ] LazyOpsTest.TestNormalInPlace (3 ms) 2022-11-23T01:08:06.6762701Z [ RUN ] LazyOpsTest.TestUniformInPlace 2022-11-23T01:08:06.6792705Z [ OK ] LazyOpsTest.TestUniformInPlace (3 ms) 2022-11-23T01:08:06.6793048Z [ RUN ] LazyOpsTest.TestRandomInPlace 2022-11-23T01:08:06.7426350Z [ OK ] LazyOpsTest.TestRandomInPlace (63 ms) 2022-11-23T01:08:06.7426726Z [ RUN ] LazyOpsTest.TestRandomInPlaceDefaultFrom 2022-11-23T01:08:06.8040274Z [ OK ] LazyOpsTest.TestRandomInPlaceDefaultFrom (61 ms) 2022-11-23T01:08:06.8040669Z [ RUN ] LazyOpsTest.TestRandomInPlaceDefault 2022-11-23T01:08:06.8199777Z [ OK ] LazyOpsTest.TestRandomInPlaceDefault (15 ms) 2022-11-23T01:08:06.8200167Z [ RUN ] LazyOpsTest.TestNormGeneral 2022-11-23T01:08:06.8239558Z [ OK ] LazyOpsTest.TestNormGeneral (4 ms) 2022-11-23T01:08:06.8239881Z [ RUN ] LazyOpsTest.TestNormNuclear 2022-11-23T01:08:06.8293844Z [ OK ] LazyOpsTest.TestNormNuclear (5 ms) 2022-11-23T01:08:06.8294161Z [ RUN ] LazyOpsTest.TestFrobeniusNorm 2022-11-23T01:08:06.8308368Z [ OK ] LazyOpsTest.TestFrobeniusNorm (1 ms) 2022-11-23T01:08:06.8308712Z [ RUN ] LazyOpsTest.TestFrobeniusNormInDim 2022-11-23T01:08:06.8420887Z [ OK ] LazyOpsTest.TestFrobeniusNormInDim (11 ms) 2022-11-23T01:08:06.8421262Z [ RUN ] LazyOpsTest.TestFrobeniusNormInDims 2022-11-23T01:08:06.8556830Z [ OK ] LazyOpsTest.TestFrobeniusNormInDims (13 ms) 2022-11-23T01:08:06.8557170Z [ RUN ] LazyOpsTest.TestGroupNorm 2022-11-23T01:08:06.9000397Z [ OK ] LazyOpsTest.TestGroupNorm (44 ms) 2022-11-23T01:08:06.9000827Z [ RUN ] LazyOpsTest.TestGroupNormBackward 2022-11-23T01:08:07.4555121Z [ OK ] LazyOpsTest.TestGroupNormBackward (555 ms) 2022-11-23T01:08:07.4555497Z [ RUN ] LazyOpsTest.TestInstanceNorm 2022-11-23T01:08:07.4900398Z [ OK ] LazyOpsTest.TestInstanceNorm (34 ms) 2022-11-23T01:08:07.4900743Z [ RUN ] LazyOpsTest.TestLayerNorm 2022-11-23T01:08:07.5444175Z [ OK ] LazyOpsTest.TestLayerNorm (54 ms) 2022-11-23T01:08:07.5444609Z [ RUN ] LazyOpsTest.TestLayerNormBackward 2022-11-23T01:08:07.8491820Z [ OK ] LazyOpsTest.TestLayerNormBackward (304 ms) 2022-11-23T01:08:07.8492291Z [ RUN ] LazyOpsTest.TestNuclearNorm 2022-11-23T01:08:07.8572434Z [ OK ] LazyOpsTest.TestNuclearNorm (8 ms) 2022-11-23T01:08:07.8572811Z [ RUN ] LazyOpsTest.TestPairwiseDistance 2022-11-23T01:08:07.8968481Z [ OK ] LazyOpsTest.TestPairwiseDistance (39 ms) 2022-11-23T01:08:07.8968878Z [ RUN ] LazyOpsTest.TestCosineSimilarity 2022-11-23T01:08:07.9469906Z [ OK ] LazyOpsTest.TestCosineSimilarity (50 ms) 2022-11-23T01:08:07.9470323Z [ RUN ] LazyOpsTest.TestCosineEmbeddingLoss 2022-11-23T01:08:08.0600995Z [ OK ] LazyOpsTest.TestCosineEmbeddingLoss (113 ms) 2022-11-23T01:08:08.0601420Z [ RUN ] LazyOpsTest.TestHingeEmbeddingLoss 2022-11-23T01:08:08.1169366Z [ OK ] LazyOpsTest.TestHingeEmbeddingLoss (56 ms) 2022-11-23T01:08:08.1169741Z [ RUN ] LazyOpsTest.TestTripletMarginLoss 2022-11-23T01:08:08.3451647Z [ OK ] LazyOpsTest.TestTripletMarginLoss (228 ms) 2022-11-23T01:08:08.3452051Z [ RUN ] LazyOpsTest.TestBinaryCrossEntropy 2022-11-23T01:08:08.3701659Z [ OK ] LazyOpsTest.TestBinaryCrossEntropy (25 ms) 2022-11-23T01:08:08.3702061Z [ RUN ] LazyOpsTest.TestMarginRankingLoss 2022-11-23T01:08:08.4091803Z [ OK ] LazyOpsTest.TestMarginRankingLoss (38 ms) 2022-11-23T01:08:08.4092167Z [ RUN ] LazyOpsTest.TestBCEWithLogits 2022-11-23T01:08:08.4323507Z [ OK ] LazyOpsTest.TestBCEWithLogits (23 ms) 2022-11-23T01:08:08.4323965Z [ RUN ] LazyOpsTest.TestKlDiv 2022-11-23T01:08:08.4556692Z [ OK ] LazyOpsTest.TestKlDiv (23 ms) 2022-11-23T01:08:08.4557003Z [ RUN ] LazyOpsTest.TestProd 2022-11-23T01:08:08.4568618Z [ OK ] LazyOpsTest.TestProd (1 ms) 2022-11-23T01:08:08.4568983Z [ RUN ] LazyOpsTest.TestProdCast 2022-11-23T01:08:08.4580672Z [ OK ] LazyOpsTest.TestProdCast (1 ms) 2022-11-23T01:08:08.4580983Z [ RUN ] LazyOpsTest.TestProdInDim 2022-11-23T01:08:08.4645216Z [ OK ] LazyOpsTest.TestProdInDim (6 ms) 2022-11-23T01:08:08.4645571Z [ RUN ] LazyOpsTest.TestProdInDimKeepCast 2022-11-23T01:08:08.4705350Z [ OK ] LazyOpsTest.TestProdInDimKeepCast (5 ms) 2022-11-23T01:08:08.4705697Z [ RUN ] LazyOpsTest.TestProdInDimKeep 2022-11-23T01:08:08.4768294Z [ OK ] LazyOpsTest.TestProdInDimKeep (6 ms) 2022-11-23T01:08:08.4768603Z [ RUN ] LazyOpsTest.TestCumSum 2022-11-23T01:08:08.4949455Z [ OK ] LazyOpsTest.TestCumSum (18 ms) 2022-11-23T01:08:08.4949837Z [ RUN ] LazyOpsTest.TestCumSumCast 2022-11-23T01:08:08.5130252Z [ OK ] LazyOpsTest.TestCumSumCast (18 ms) 2022-11-23T01:08:08.5130567Z [ RUN ] LazyOpsTest.TestCumSumLong 2022-11-23T01:08:08.5278753Z [ OK ] LazyOpsTest.TestCumSumLong (14 ms) 2022-11-23T01:08:08.5279332Z [ RUN ] LazyOpsTest.TestCumSumCastLong 2022-11-23T01:08:08.5434416Z [ OK ] LazyOpsTest.TestCumSumCastLong (15 ms) 2022-11-23T01:08:08.5435002Z [ RUN ] LazyOpsTest.TestCumProd 2022-11-23T01:08:08.5497330Z [ OK ] LazyOpsTest.TestCumProd (6 ms) 2022-11-23T01:08:08.5497913Z [ RUN ] LazyOpsTest.TestCumProdCast 2022-11-23T01:08:08.5561201Z [ OK ] LazyOpsTest.TestCumProdCast (6 ms) 2022-11-23T01:08:08.5561790Z [ RUN ] LazyOpsTest.TestCumProdLong 2022-11-23T01:08:08.5662934Z [ OK ] LazyOpsTest.TestCumProdLong (10 ms) 2022-11-23T01:08:08.5663516Z [ RUN ] LazyOpsTest.TestCumProdCastLong 2022-11-23T01:08:08.5766497Z [ OK ] LazyOpsTest.TestCumProdCastLong (10 ms) 2022-11-23T01:08:08.5767048Z [ RUN ] LazyOpsTest.TestArgMin 2022-11-23T01:08:08.5774296Z [ OK ] LazyOpsTest.TestArgMin (0 ms) 2022-11-23T01:08:08.5774603Z [ RUN ] LazyOpsTest.TestArgMinDim 2022-11-23T01:08:08.5792124Z [ OK ] LazyOpsTest.TestArgMinDim (1 ms) 2022-11-23T01:08:08.5792433Z [ RUN ] LazyOpsTest.TestArgMinDimKeep 2022-11-23T01:08:08.5809310Z [ OK ] LazyOpsTest.TestArgMinDimKeep (1 ms) 2022-11-23T01:08:08.5809656Z [ RUN ] LazyOpsTest.TestArgMinSameValue 2022-11-23T01:08:08.5816746Z [ OK ] LazyOpsTest.TestArgMinSameValue (0 ms) 2022-11-23T01:08:08.5817102Z [ RUN ] LazyOpsTest.TestArgMinWrapper 2022-11-23T01:08:08.5833550Z [ OK ] LazyOpsTest.TestArgMinWrapper (1 ms) 2022-11-23T01:08:08.5833859Z [ RUN ] LazyOpsTest.TestArgMax 2022-11-23T01:08:08.5841010Z [ OK ] LazyOpsTest.TestArgMax (0 ms) 2022-11-23T01:08:08.5841313Z [ RUN ] LazyOpsTest.TestArgMaxDim 2022-11-23T01:08:08.5857467Z [ OK ] LazyOpsTest.TestArgMaxDim (1 ms) 2022-11-23T01:08:08.5857873Z [ RUN ] LazyOpsTest.TestArgMaxDimKeep 2022-11-23T01:08:08.5873448Z [ OK ] LazyOpsTest.TestArgMaxDimKeep (1 ms) 2022-11-23T01:08:08.5873852Z [ RUN ] LazyOpsTest.TestArgMaxSameValue 2022-11-23T01:08:08.5880384Z [ OK ] LazyOpsTest.TestArgMaxSameValue (0 ms) 2022-11-23T01:08:08.5880965Z [ RUN ] LazyOpsTest.TestArgMaxWrapper 2022-11-23T01:08:08.5896532Z [ OK ] LazyOpsTest.TestArgMaxWrapper (1 ms) 2022-11-23T01:08:08.5896902Z [ RUN ] LazyOpsTest.TestAsin 2022-11-23T01:08:08.5910976Z [ OK ] LazyOpsTest.TestAsin (1 ms) 2022-11-23T01:08:08.5911456Z [ RUN ] LazyOpsTest.TestAsinh 2022-11-23T01:08:08.5923820Z [ OK ] LazyOpsTest.TestAsinh (1 ms) 2022-11-23T01:08:08.5924197Z [ RUN ] LazyOpsTest.TestAsinhInPlace 2022-11-23T01:08:08.5943597Z [ OK ] LazyOpsTest.TestAsinhInPlace (1 ms) 2022-11-23T01:08:08.5943943Z [ RUN ] LazyOpsTest.TestSin 2022-11-23T01:08:08.5957778Z [ OK ] LazyOpsTest.TestSin (1 ms) 2022-11-23T01:08:08.5958106Z [ RUN ] LazyOpsTest.TestSinh 2022-11-23T01:08:08.5970276Z [ OK ] LazyOpsTest.TestSinh (1 ms) 2022-11-23T01:08:08.5970613Z [ RUN ] LazyOpsTest.TestAcos 2022-11-23T01:08:08.5984517Z [ OK ] LazyOpsTest.TestAcos (1 ms) 2022-11-23T01:08:08.5984848Z [ RUN ] LazyOpsTest.TestAcosh 2022-11-23T01:08:08.5997854Z [ OK ] LazyOpsTest.TestAcosh (1 ms) 2022-11-23T01:08:08.5998228Z [ RUN ] LazyOpsTest.TestAcoshInPlace 2022-11-23T01:08:08.6018206Z [ OK ] LazyOpsTest.TestAcoshInPlace (2 ms) 2022-11-23T01:08:08.6018829Z [ RUN ] LazyOpsTest.TestCos 2022-11-23T01:08:08.6053511Z [ OK ] LazyOpsTest.TestCos (3 ms) 2022-11-23T01:08:08.6053872Z [ RUN ] LazyOpsTest.TestCosh 2022-11-23T01:08:08.6066188Z [ OK ] LazyOpsTest.TestCosh (1 ms) 2022-11-23T01:08:08.6066550Z [ RUN ] LazyOpsTest.TestAtan 2022-11-23T01:08:08.6081034Z [ OK ] LazyOpsTest.TestAtan (1 ms) 2022-11-23T01:08:08.6081348Z [ RUN ] LazyOpsTest.TestAtanh 2022-11-23T01:08:08.6094438Z [ OK ] LazyOpsTest.TestAtanh (1 ms) 2022-11-23T01:08:08.6094756Z [ RUN ] LazyOpsTest.TestAtanhInPlace 2022-11-23T01:08:08.6114917Z [ OK ] LazyOpsTest.TestAtanhInPlace (2 ms) 2022-11-23T01:08:08.6115223Z [ RUN ] LazyOpsTest.TestAtan2 2022-11-23T01:08:08.6129597Z [ OK ] LazyOpsTest.TestAtan2 (1 ms) 2022-11-23T01:08:08.6129886Z [ RUN ] LazyOpsTest.TestTan 2022-11-23T01:08:08.6143623Z [ OK ] LazyOpsTest.TestTan (1 ms) 2022-11-23T01:08:08.6143906Z [ RUN ] LazyOpsTest.TestTanh 2022-11-23T01:08:08.6177814Z [ OK ] LazyOpsTest.TestTanh (3 ms) 2022-11-23T01:08:08.6178106Z [ RUN ] LazyOpsTest.TestClampMinMax 2022-11-23T01:08:08.6213078Z [ OK ] LazyOpsTest.TestClampMinMax (3 ms) 2022-11-23T01:08:08.6213445Z [ RUN ] LazyOpsTest.TestClampMin 2022-11-23T01:08:08.6248008Z [ OK ] LazyOpsTest.TestClampMin (3 ms) 2022-11-23T01:08:08.6248369Z [ RUN ] LazyOpsTest.TestClampMax 2022-11-23T01:08:08.6283336Z [ OK ] LazyOpsTest.TestClampMax (3 ms) 2022-11-23T01:08:08.6283730Z [ RUN ] LazyOpsTest.TestClampMinExplicit 2022-11-23T01:08:08.6315947Z [ OK ] LazyOpsTest.TestClampMinExplicit (3 ms) 2022-11-23T01:08:08.6316307Z [ RUN ] LazyOpsTest.TestClampMaxExplicit 2022-11-23T01:08:08.6328350Z [ OK ] LazyOpsTest.TestClampMaxExplicit (1 ms) 2022-11-23T01:08:08.6328719Z [ RUN ] LazyOpsTest.TestClampMinExplicitInPlace 2022-11-23T01:08:08.6381820Z [ OK ] LazyOpsTest.TestClampMinExplicitInPlace (5 ms) 2022-11-23T01:08:08.6382207Z [ RUN ] LazyOpsTest.TestClampMaxExplicitInPlace 2022-11-23T01:08:08.6401149Z [ OK ] LazyOpsTest.TestClampMaxExplicitInPlace (1 ms) 2022-11-23T01:08:08.6401468Z [ RUN ] LazyOpsTest.TestCeil 2022-11-23T01:08:08.6414240Z [ OK ] LazyOpsTest.TestCeil (1 ms) 2022-11-23T01:08:08.6414720Z [ RUN ] LazyOpsTest.TestFloor 2022-11-23T01:08:08.6446670Z [ OK ] LazyOpsTest.TestFloor (3 ms) 2022-11-23T01:08:08.6446966Z [ RUN ] LazyOpsTest.TestRound 2022-11-23T01:08:08.6461147Z [ OK ] LazyOpsTest.TestRound (1 ms) 2022-11-23T01:08:08.6461539Z [ RUN ] LazyOpsTest.TestTrunc 2022-11-23T01:08:08.6495283Z [ OK ] LazyOpsTest.TestTrunc (3 ms) 2022-11-23T01:08:08.6495582Z [ RUN ] LazyOpsTest.TestFrac 2022-11-23T01:08:08.6527470Z [ OK ] LazyOpsTest.TestFrac (3 ms) 2022-11-23T01:08:08.6527770Z [ RUN ] LazyOpsTest.TestNeg 2022-11-23T01:08:08.6558304Z [ OK ] LazyOpsTest.TestNeg (3 ms) 2022-11-23T01:08:08.6558608Z [ RUN ] LazyOpsTest.TestBitwiseNot 2022-11-23T01:08:08.6584954Z [ OK ] LazyOpsTest.TestBitwiseNot (2 ms) 2022-11-23T01:08:08.6585293Z [ RUN ] LazyOpsTest.TestBitwiseNotInPlace 2022-11-23T01:08:08.6611752Z [ OK ] LazyOpsTest.TestBitwiseNotInPlace (2 ms) 2022-11-23T01:08:08.6612070Z [ RUN ] LazyOpsTest.TestSign 2022-11-23T01:08:08.6625983Z [ OK ] LazyOpsTest.TestSign (1 ms) 2022-11-23T01:08:08.6626269Z [ RUN ] LazyOpsTest.TestSignByte 2022-11-23T01:08:08.6632902Z [ OK ] LazyOpsTest.TestSignByte (0 ms) 2022-11-23T01:08:08.6633205Z [ RUN ] LazyOpsTest.TestAbs 2022-11-23T01:08:08.6665244Z [ OK ] LazyOpsTest.TestAbs (3 ms) 2022-11-23T01:08:08.6665542Z [ RUN ] LazyOpsTest.TestAbsByte 2022-11-23T01:08:08.6690422Z [ OK ] LazyOpsTest.TestAbsByte (2 ms) 2022-11-23T01:08:08.6690731Z [ RUN ] LazyOpsTest.TestEmptyLike 2022-11-23T01:08:08.6693546Z [ OK ] LazyOpsTest.TestEmptyLike (0 ms) 2022-11-23T01:08:08.6693880Z [ RUN ] LazyOpsTest.TestEmptyLikeOptions 2022-11-23T01:08:08.6696152Z [ OK ] LazyOpsTest.TestEmptyLikeOptions (0 ms) 2022-11-23T01:08:08.6696563Z [ RUN ] LazyOpsTest.TestEmpty 2022-11-23T01:08:08.6697596Z [ OK ] LazyOpsTest.TestEmpty (0 ms) 2022-11-23T01:08:08.6697914Z [ RUN ] LazyOpsTest.TestZeroInPlace 2022-11-23T01:08:08.6728220Z [ OK ] LazyOpsTest.TestZeroInPlace (3 ms) 2022-11-23T01:08:08.6728530Z [ RUN ] LazyOpsTest.TestZerosLike 2022-11-23T01:08:08.6740118Z [ OK ] LazyOpsTest.TestZerosLike (1 ms) 2022-11-23T01:08:08.6740468Z [ RUN ] LazyOpsTest.TestZerosLikeOptions 2022-11-23T01:08:08.6750369Z [ OK ] LazyOpsTest.TestZerosLikeOptions (0 ms) 2022-11-23T01:08:08.6750725Z [ RUN ] LazyOpsTest.TestZeros 2022-11-23T01:08:08.6791724Z [ OK ] LazyOpsTest.TestZeros (4 ms) 2022-11-23T01:08:08.6792001Z [ RUN ] LazyOpsTest.TestOnes 2022-11-23T01:08:08.6836678Z [ OK ] LazyOpsTest.TestOnes (4 ms) 2022-11-23T01:08:08.6836975Z [ RUN ] LazyOpsTest.TestOnesLike 2022-11-23T01:08:08.6847944Z [ OK ] LazyOpsTest.TestOnesLike (1 ms) 2022-11-23T01:08:08.6848310Z [ RUN ] LazyOpsTest.TestOnesLikeOptions 2022-11-23T01:08:08.6858449Z [ OK ] LazyOpsTest.TestOnesLikeOptions (1 ms) 2022-11-23T01:08:08.6858955Z [ RUN ] LazyOpsTest.TestFull 2022-11-23T01:08:08.6930162Z [ OK ] LazyOpsTest.TestFull (7 ms) 2022-11-23T01:08:08.6930472Z [ RUN ] LazyOpsTest.TestFullLike 2022-11-23T01:08:08.6942165Z [ OK ] LazyOpsTest.TestFullLike (1 ms) 2022-11-23T01:08:08.6942490Z [ RUN ] LazyOpsTest.TestFullLikeOptions 2022-11-23T01:08:08.6953393Z [ OK ] LazyOpsTest.TestFullLikeOptions (1 ms) 2022-11-23T01:08:08.6953710Z [ RUN ] LazyOpsTest.TestARange 2022-11-23T01:08:08.7045566Z [ OK ] LazyOpsTest.TestARange (9 ms) 2022-11-23T01:08:08.7045856Z [ RUN ] LazyOpsTest.TestARangeOut 2022-11-23T01:08:08.7047712Z [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()) 2022-11-23T01:08:08.7075589Z [ OK ] LazyOpsTest.TestARangeOut (2 ms) 2022-11-23T01:08:08.7075960Z [ RUN ] LazyOpsTest.TestDimARange 2022-11-23T01:08:08.7119573Z [ OK ] LazyOpsTest.TestDimARange (4 ms) 2022-11-23T01:08:08.7119881Z [ RUN ] LazyOpsTest.TestBartlettWindow 2022-11-23T01:08:08.7411090Z [ OK ] LazyOpsTest.TestBartlettWindow (29 ms) 2022-11-23T01:08:08.7411502Z [ RUN ] LazyOpsTest.TestBlackmanWindow 2022-11-23T01:08:08.7666601Z [ OK ] LazyOpsTest.TestBlackmanWindow (25 ms) 2022-11-23T01:08:08.7667021Z [ RUN ] LazyOpsTest.TestHammingWindow 2022-11-23T01:08:08.7851183Z [ OK ] LazyOpsTest.TestHammingWindow (18 ms) 2022-11-23T01:08:08.7851507Z [ RUN ] LazyOpsTest.TestHannWindow 2022-11-23T01:08:08.8096940Z [ OK ] LazyOpsTest.TestHannWindow (24 ms) 2022-11-23T01:08:08.8097483Z [ RUN ] LazyOpsTest.TestLogSigmoid 2022-11-23T01:08:09.0093441Z error: decoding address ranges: invalid range list offset 0x1490 2022-11-23T01:08:09.0093945Z error: decoding address ranges: invalid range list offset 0x15bc 2022-11-23T01:08:09.0094565Z error: decoding address ranges: invalid range list offset 0x15f4 2022-11-23T01:08:09.0095856Z error: decoding address ranges: invalid range list offset 0x1629 2022-11-23T01:08:09.0097047Z error: decoding address ranges: invalid range list offset 0x1640 2022-11-23T01:08:09.0098245Z error: decoding address ranges: invalid range list offset 0x1661 2022-11-23T01:08:09.0099510Z error: decoding address ranges: invalid range list offset 0x168c 2022-11-23T01:08:09.0100921Z error: decoding address ranges: invalid range list offset 0x1760 2022-11-23T01:08:09.0102354Z error: decoding address ranges: invalid range list offset 0x1796 2022-11-23T01:08:09.0103072Z error: decoding address ranges: invalid range list offset 0x1801 2022-11-23T01:08:09.0104191Z error: decoding address ranges: invalid range list offset 0x1836 2022-11-23T01:08:09.0105043Z error: decoding address ranges: invalid range list offset 0x1857 2022-11-23T01:08:09.0106015Z error: decoding address ranges: invalid range list offset 0x18a2 2022-11-23T01:08:09.0107251Z error: decoding address ranges: invalid range list offset 0x18d8 2022-11-23T01:08:09.0108242Z error: decoding address ranges: invalid range list offset 0x18f9 2022-11-23T01:08:09.0109030Z error: decoding address ranges: invalid range list offset 0x1925 2022-11-23T01:08:09.0110127Z error: decoding address ranges: invalid range list offset 0x198f 2022-11-23T01:08:09.0111093Z error: decoding address ranges: invalid range list offset 0x19c5 2022-11-23T01:08:09.0112113Z error: decoding address ranges: invalid range list offset 0x19e6 2022-11-23T01:08:09.0112689Z error: decoding address ranges: invalid range list offset 0x1a12 2022-11-23T01:08:09.0113670Z error: decoding address ranges: invalid range list offset 0x1a33 2022-11-23T01:08:09.0114882Z error: decoding address ranges: invalid range list offset 0x1a4a 2022-11-23T01:08:09.0115546Z error: decoding address ranges: invalid range list offset 0x1a61 2022-11-23T01:08:09.0116585Z error: decoding address ranges: invalid range list offset 0x1a78 2022-11-23T01:08:09.0117541Z error: decoding address ranges: invalid range list offset 0x1a8f 2022-11-23T01:08:09.0118413Z error: decoding address ranges: invalid range list offset 0x1aa6 2022-11-23T01:08:09.0119133Z error: decoding address ranges: invalid range list offset 0x1b25 2022-11-23T01:08:09.0120178Z error: decoding address ranges: invalid range list offset 0x1b7b 2022-11-23T01:08:09.0121283Z error: decoding address ranges: invalid range list offset 0x1bb6 2022-11-23T01:08:09.0122202Z error: decoding address ranges: invalid range list offset 0x1bec 2022-11-23T01:08:09.0123878Z error: decoding address ranges: invalid range list offset 0x1c26 2022-11-23T01:08:09.0125041Z error: decoding address ranges: invalid range list offset 0x1c76 2022-11-23T01:08:09.0126600Z error: decoding address ranges: invalid range list offset 0x1e7d 2022-11-23T01:08:09.0129360Z error: decoding address ranges: invalid range list offset 0x21b3 2022-11-23T01:08:09.0130567Z error: decoding address ranges: invalid range list offset 0x226e 2022-11-23T01:08:09.0132681Z error: decoding address ranges: invalid range list offset 0x3e69 2022-11-23T01:08:09.0137837Z error: decoding address ranges: invalid range list offset 0x4c18 2022-11-23T01:08:09.0141753Z error: decoding address ranges: invalid range list offset 0x527f 2022-11-23T01:08:09.0144456Z error: decoding address ranges: invalid range list offset 0x5f80 2022-11-23T01:08:09.0147499Z error: decoding address ranges: invalid range list offset 0x6288 2022-11-23T01:08:09.0150790Z error: decoding address ranges: invalid range list offset 0x7ee1 2022-11-23T01:08:09.0157409Z error: decoding address ranges: invalid range list offset 0x8084 2022-11-23T01:08:09.0160396Z error: decoding address ranges: invalid range list offset 0x82d4 2022-11-23T01:08:09.0163589Z error: decoding address ranges: invalid range list offset 0x87df 2022-11-23T01:08:09.0166973Z error: decoding address ranges: invalid range list offset 0x882c 2022-11-23T01:08:09.0169266Z error: decoding address ranges: invalid range list offset 0x88a1 2022-11-23T01:08:09.0169985Z error: decoding address ranges: invalid range list offset 0x8921 2022-11-23T01:08:09.0171058Z error: decoding address ranges: invalid range list offset 0x8981 2022-11-23T01:08:09.0172118Z error: decoding address ranges: invalid range list offset 0x89f6 2022-11-23T01:08:09.0173117Z error: decoding address ranges: invalid range list offset 0x8a56 2022-11-23T01:08:09.0175563Z error: decoding address ranges: invalid range list offset 0x9643 2022-11-23T01:08:09.0180320Z error: decoding address ranges: invalid range list offset 0xa031 2022-11-23T01:08:09.0185805Z error: decoding address ranges: invalid range list offset 0xa140 2022-11-23T01:08:09.0188510Z error: decoding address ranges: invalid range list offset 0xaf07 2022-11-23T01:08:09.0194686Z error: decoding address ranges: invalid range list offset 0xb159 2022-11-23T01:08:09.0197650Z error: decoding address ranges: invalid range list offset 0xbbdd 2022-11-23T01:08:09.0201362Z error: decoding address ranges: invalid range list offset 0xc162 2022-11-23T01:08:09.0203437Z error: decoding address ranges: invalid range list offset 0xca72 2022-11-23T01:08:09.0207004Z error: decoding address ranges: invalid range list offset 0xd23f 2022-11-23T01:08:09.0210545Z error: decoding address ranges: invalid range list offset 0xd496 2022-11-23T01:08:09.0212012Z error: decoding address ranges: invalid range list offset 0xd669 2022-11-23T01:08:09.0215302Z error: decoding address ranges: invalid range list offset 0xdc22 2022-11-23T01:08:09.0218835Z error: decoding address ranges: invalid range list offset 0xdc71 2022-11-23T01:08:09.0220526Z error: decoding address ranges: invalid range list offset 0xe056 2022-11-23T01:08:09.0224528Z error: decoding address ranges: invalid range list offset 0xe429 2022-11-23T01:08:09.0227923Z error: decoding address ranges: invalid range list offset 0xe709 2022-11-23T01:08:09.0230984Z error: decoding address ranges: invalid range list offset 0xe840 2022-11-23T01:08:09.0232126Z error: decoding address ranges: invalid range list offset 0xe882 2022-11-23T01:08:09.0233978Z error: decoding address ranges: invalid range list offset 0xebba 2022-11-23T01:08:09.0237692Z error: decoding address ranges: invalid range list offset 0xef24 2022-11-23T01:08:09.0241116Z error: decoding address ranges: invalid range list offset 0xf15c 2022-11-23T01:08:09.0243681Z error: decoding address ranges: invalid range list offset 0xf203 2022-11-23T01:08:09.0245778Z error: decoding address ranges: invalid range list offset 0xf2bb 2022-11-23T01:08:09.0248138Z error: decoding address ranges: invalid range list offset 0xf76b 2022-11-23T01:08:09.0251783Z error: decoding address ranges: invalid range list offset 0xf872 2022-11-23T01:08:09.0252630Z error: decoding address ranges: invalid range list offset 0xf8bb 2022-11-23T01:08:09.0256424Z error: decoding address ranges: invalid range list offset 0xf9e4 2022-11-23T01:08:09.0259083Z error: decoding address ranges: invalid range list offset 0x10301 2022-11-23T01:08:09.0262024Z error: decoding address ranges: invalid range list offset 0x10426 2022-11-23T01:08:09.0263460Z error: decoding address ranges: invalid range list offset 0x104b2 2022-11-23T01:08:09.0265265Z error: decoding address ranges: invalid range list offset 0x11586 2022-11-23T01:08:09.0270729Z error: decoding address ranges: invalid range list offset 0x11a21 2022-11-23T01:08:09.0273193Z error: decoding address ranges: invalid range list offset 0x121ff 2022-11-23T01:08:09.0277430Z error: decoding address ranges: invalid range list offset 0x12607 2022-11-23T01:08:09.0280570Z error: decoding address ranges: invalid range list offset 0x1302f 2022-11-23T01:08:09.0283978Z error: decoding address ranges: invalid range list offset 0x13301 2022-11-23T01:08:09.0285654Z error: decoding address ranges: invalid range list offset 0x133af 2022-11-23T01:08:09.0287030Z error: decoding address ranges: invalid range list offset 0x13488 2022-11-23T01:08:09.0289240Z error: decoding address ranges: invalid range list offset 0x13974 2022-11-23T01:08:09.0293779Z error: decoding address ranges: invalid range list offset 0x13a57 2022-11-23T01:08:09.0294401Z error: decoding address ranges: invalid range list offset 0x13ab9 2022-11-23T01:08:09.0296250Z error: decoding address ranges: invalid range list offset 0x13c1a 2022-11-23T01:08:09.0299566Z error: decoding address ranges: invalid range list offset 0x13c99 2022-11-23T01:08:09.0301513Z error: decoding address ranges: invalid range list offset 0x13ef0 2022-11-23T01:08:09.0304247Z error: decoding address ranges: invalid range list offset 0x13f83 2022-11-23T01:08:09.0305967Z error: decoding address ranges: invalid range list offset 0x140f3 2022-11-23T01:08:09.0307663Z error: decoding address ranges: invalid range list offset 0x141e1 2022-11-23T01:08:09.0309715Z error: decoding address ranges: invalid range list offset 0x1442e 2022-11-23T01:08:09.0313209Z error: decoding address ranges: invalid range list offset 0x14aa8 2022-11-23T01:08:09.0317248Z error: decoding address ranges: invalid range list offset 0x15673 2022-11-23T01:08:09.0321889Z error: decoding address ranges: invalid range list offset 0x18bf6 2022-11-23T01:08:09.0331400Z error: decoding address ranges: invalid range list offset 0x19009 2022-11-23T01:08:09.0334048Z error: decoding address ranges: invalid range list offset 0x194ee 2022-11-23T01:08:09.0337539Z error: decoding address ranges: invalid range list offset 0x1c9ef 2022-11-23T01:08:09.0347521Z error: decoding address ranges: invalid range list offset 0x1ce3f 2022-11-23T01:08:09.0349862Z error: decoding address ranges: invalid range list offset 0x1cf18 2022-11-23T01:08:09.0352603Z error: decoding address ranges: invalid range list offset 0x1d103 2022-11-23T01:08:09.0355518Z error: decoding address ranges: invalid range list offset 0x1da2f 2022-11-23T01:08:09.0359379Z error: decoding address ranges: invalid range list offset 0x2312d 2022-11-23T01:08:09.0371213Z error: decoding address ranges: invalid range list offset 0x2508a 2022-11-23T01:08:09.0377260Z error: decoding address ranges: invalid range list offset 0x257f6 2022-11-23T01:08:09.0379449Z error: decoding address ranges: invalid range list offset 0x272cb 2022-11-23T01:08:09.0386036Z error: decoding address ranges: invalid range list offset 0x27ae8 2022-11-23T01:08:09.0389013Z error: decoding address ranges: invalid range list offset 0x30283 2022-11-23T01:08:09.0403028Z error: decoding address ranges: invalid range list offset 0x389b2 2022-11-23T01:08:09.0417397Z error: decoding address ranges: invalid range list offset 0x394a0 2022-11-23T01:08:09.0420266Z error: decoding address ranges: invalid range list offset 0x39903 2022-11-23T01:08:09.0423479Z error: decoding address ranges: invalid range list offset 0x3d5d9 2022-11-23T01:08:09.0432664Z error: decoding address ranges: invalid range list offset 0x3e1c7 2022-11-23T01:08:09.0435724Z error: decoding address ranges: invalid range list offset 0x3e9d0 2022-11-23T01:08:09.0438974Z error: decoding address ranges: invalid range list offset 0x40b5a 2022-11-23T01:08:09.0448111Z error: decoding address ranges: invalid range list offset 0x47c6b 2022-11-23T01:08:09.0463186Z error: decoding address ranges: invalid range list offset 0x4a364 2022-11-23T01:08:09.0470467Z error: decoding address ranges: invalid range list offset 0x50490 2022-11-23T01:08:09.0481460Z error: decoding address ranges: invalid range list offset 0x50fe7 2022-11-23T01:08:09.0484535Z error: decoding address ranges: invalid range list offset 0x5362f 2022-11-23T01:08:09.0490834Z error: decoding address ranges: invalid range list offset 0x53d79 2022-11-23T01:08:09.0493356Z error: decoding address ranges: invalid range list offset 0x5b070 2022-11-23T01:08:09.0509637Z error: decoding address ranges: invalid range list offset 0x5dd4d 2022-11-23T01:08:09.0515900Z error: decoding address ranges: invalid range list offset 0x5e5ad 2022-11-23T01:08:09.0518750Z error: decoding address ranges: invalid range list offset 0x5f058 2022-11-23T01:08:09.0522378Z error: decoding address ranges: invalid range list offset 0x61d90 2022-11-23T01:08:09.0529291Z error: decoding address ranges: invalid range list offset 0x64b74 2022-11-23T01:08:09.0543409Z error: decoding address ranges: invalid range list offset 0x6d03f 2022-11-23T01:08:09.0566045Z error: decoding address ranges: invalid range list offset 0x7466e 2022-11-23T01:08:09.0584204Z error: decoding address ranges: invalid range list offset 0x76491 2022-11-23T01:08:09.0591003Z error: decoding address ranges: invalid range list offset 0x79c86 2022-11-23T01:08:09.0605017Z error: decoding address ranges: invalid range list offset 0x81ad6 2022-11-23T01:08:09.0626205Z error: decoding address ranges: invalid range list offset 0x89601 2022-11-23T01:08:09.0643265Z error: decoding address ranges: invalid range list offset 0x89a15 2022-11-23T01:08:09.0644981Z error: decoding address ranges: invalid range list offset 0x89bba 2022-11-23T01:08:09.0647486Z error: decoding address ranges: invalid range list offset 0x89d86 2022-11-23T01:08:09.0650584Z error: decoding address ranges: invalid range list offset 0x8e6cd 2022-11-23T01:08:09.0658877Z error: decoding address ranges: invalid range list offset 0x8ea4c 2022-11-23T01:08:09.0677880Z ================== 2022-11-23T01:08:09.0678348Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0678806Z  Write of size 4 at 0x7f06954ae878 by main thread: 2022-11-23T01:08:09.0679403Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559c3) 2022-11-23T01:08:09.0679704Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0680359Z #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+0x8cada77) 2022-11-23T01:08:09.0681108Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0681590Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0682016Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0682409Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0689022Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0690440Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0691997Z #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+0x511a718) 2022-11-23T01:08:09.0693364Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0694072Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0695326Z #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+0x3198f8e) 2022-11-23T01:08:09.0696045Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0696527Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0696972Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0697403Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0697656Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0697900Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0698188Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0698844Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0699285Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0699510Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0699638Z 2022-11-23T01:08:09.0699868Z  Previous read of size 4 at 0x7f06954ae878 by thread T2: 2022-11-23T01:08:09.0700196Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55984) 2022-11-23T01:08:09.0700514Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0701306Z #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+0x8cada77) 2022-11-23T01:08:09.0702335Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0703125Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0703539Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0703930Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0704284Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0704448Z 2022-11-23T01:08:09.0704723Z  Location is global 'cpuSupportsFMA4.ret' of size 4 at 0x7f06954ae878 (libtorch_cpu.so+0x00000d6b5878) 2022-11-23T01:08:09.0704925Z 2022-11-23T01:08:09.0705142Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:09.0705479Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0705826Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0706373Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0706867Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0707351Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0707803Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0708245Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0708846Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0709676Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0710268Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0710897Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0712064Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0712779Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0713183Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0714083Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0714931Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0715921Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0716826Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0717160Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0717938Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0718635Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0718939Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0719399Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0719778Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0720032Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0720278Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0720567Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0721098Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0721535Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0721754Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0721884Z 2022-11-23T01:08:09.0722224Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf559c3) in disp_expf8_u10 2022-11-23T01:08:09.0722523Z ================== 2022-11-23T01:08:09.0722729Z ================== 2022-11-23T01:08:09.0723051Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0723366Z  Read of size 4 at 0x7f06954ae878 by thread T3: 2022-11-23T01:08:09.0723682Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55984) 2022-11-23T01:08:09.0723944Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0724591Z #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+0x8cada77) 2022-11-23T01:08:09.0725195Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0725756Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0726166Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0726551Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0726919Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0727082Z 2022-11-23T01:08:09.0727256Z  Previous write of size 4 at 0x7f06954ae878 by main thread: 2022-11-23T01:08:09.0727581Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559c3) 2022-11-23T01:08:09.0727846Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0728486Z #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+0x8cada77) 2022-11-23T01:08:09.0729104Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0729611Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0730040Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0730496Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0731249Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0732410Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0733586Z #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+0x511a718) 2022-11-23T01:08:09.0734370Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0734723Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0735397Z #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+0x3198f8e) 2022-11-23T01:08:09.0736047Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0736370Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0736804Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0737183Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0737441Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0737688Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0737982Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0738569Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0739011Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0739230Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0739359Z 2022-11-23T01:08:09.0739642Z  Location is global 'cpuSupportsFMA4.ret' of size 4 at 0x7f06954ae878 (libtorch_cpu.so+0x00000d6b5878) 2022-11-23T01:08:09.0739843Z 2022-11-23T01:08:09.0740061Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:09.0740465Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0740814Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0741360Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0741891Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0742366Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0742823Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0743227Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0744188Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0744932Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0745692Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0746100Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0746862Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0747570Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0747963Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0749177Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0750300Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0751642Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0752805Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0753126Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0753900Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0754624Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0754941Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0755538Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0756175Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0756621Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0756940Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0757231Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0757713Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0758141Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0758376Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0758505Z 2022-11-23T01:08:09.0758836Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf55984) in disp_expf8_u10 2022-11-23T01:08:09.0759131Z ================== 2022-11-23T01:08:09.0759283Z ================== 2022-11-23T01:08:09.0759624Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0759941Z  Write of size 4 at 0x7f06954ae878 by thread T2: 2022-11-23T01:08:09.0760258Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559c3) 2022-11-23T01:08:09.0760519Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0761150Z #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+0x8cada77) 2022-11-23T01:08:09.0761767Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0762333Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0762748Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0763176Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0763528Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0763694Z 2022-11-23T01:08:09.0763882Z  Previous write of size 4 at 0x7f06954ae878 by main thread: 2022-11-23T01:08:09.0764243Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559c3) 2022-11-23T01:08:09.0764505Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0765137Z #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+0x8cada77) 2022-11-23T01:08:09.0765805Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0766295Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0766901Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0767612Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0768994Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0770367Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0771894Z #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+0x511a718) 2022-11-23T01:08:09.0773168Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0773486Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0774157Z #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+0x3198f8e) 2022-11-23T01:08:09.0774804Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0775138Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0775573Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0775999Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0776241Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0776502Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0776820Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0777298Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0777748Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0778100Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0778284Z 2022-11-23T01:08:09.0778817Z  Location is global 'cpuSupportsFMA4.ret' of size 4 at 0x7f06954ae878 (libtorch_cpu.so+0x00000d6b5878) 2022-11-23T01:08:09.0779120Z 2022-11-23T01:08:09.0779485Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:09.0779988Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0780541Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0781374Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0782116Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0782854Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0783528Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0784028Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0784846Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0785588Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0786228Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0786811Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0787978Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0789052Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0789729Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0791076Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0792283Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0794013Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0795641Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0796251Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0797485Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0798682Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0799172Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0799842Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0800421Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0800818Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0801232Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0801679Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0802331Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0802872Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0803157Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0803312Z 2022-11-23T01:08:09.0803781Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf559c3) in disp_expf8_u10 2022-11-23T01:08:09.0804096Z ================== 2022-11-23T01:08:09.0804319Z ================== 2022-11-23T01:08:09.0804791Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0805327Z  Read of size 4 at 0x7f06954ae878 by thread T1: 2022-11-23T01:08:09.0805976Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55984) 2022-11-23T01:08:09.0806365Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0807388Z #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+0x8cada77) 2022-11-23T01:08:09.0808390Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0809244Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0809876Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0810467Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0811024Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0811282Z 2022-11-23T01:08:09.0811576Z  Previous write of size 4 at 0x7f06954ae878 by main thread: 2022-11-23T01:08:09.0812093Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559c3) 2022-11-23T01:08:09.0812493Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0813289Z #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+0x8cada77) 2022-11-23T01:08:09.0814233Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0814954Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0815611Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0816218Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0817354Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0818658Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0819841Z #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+0x511a718) 2022-11-23T01:08:09.0820890Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0821406Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0822461Z #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+0x3198f8e) 2022-11-23T01:08:09.0823454Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0823924Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0824631Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0825217Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0825550Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0825803Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0826091Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0826575Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0827069Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0827299Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0827427Z 2022-11-23T01:08:09.0827728Z  Location is global 'cpuSupportsFMA4.ret' of size 4 at 0x7f06954ae878 (libtorch_cpu.so+0x00000d6b5878) 2022-11-23T01:08:09.0827931Z 2022-11-23T01:08:09.0828152Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:09.0828488Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0828839Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0829388Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0829958Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0830441Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0830894Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0831246Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0832119Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0832871Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0833484Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0834012Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0835266Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0836036Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0836427Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0837326Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0838179Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0839187Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0840098Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0840423Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0841167Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0841876Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0842192Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0842618Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0842994Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0843238Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0843533Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0843824Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0844300Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0844753Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0845009Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0845205Z 2022-11-23T01:08:09.0845729Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf55984) in disp_expf8_u10 2022-11-23T01:08:09.0846202Z ================== 2022-11-23T01:08:09.0846570Z ================== 2022-11-23T01:08:09.0846984Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0847539Z  Write of size 8 at 0x7f06954ae520 by main thread: 2022-11-23T01:08:09.0848075Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a50) 2022-11-23T01:08:09.0848485Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0849631Z #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+0x8cada77) 2022-11-23T01:08:09.0850740Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0851575Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0852195Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0852919Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0853713Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0854465Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0855327Z #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+0x511a718) 2022-11-23T01:08:09.0856117Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0856427Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0857165Z #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+0x3198f8e) 2022-11-23T01:08:09.0857849Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0858181Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0858819Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0859209Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0859515Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0859775Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0860194Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0860885Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0861552Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0861925Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0862116Z 2022-11-23T01:08:09.0862412Z  Previous read of size 8 at 0x7f06954ae520 by thread T2: 2022-11-23T01:08:09.0862926Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xaf50261) 2022-11-23T01:08:09.0863736Z #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+0x8cada77) 2022-11-23T01:08:09.0864682Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0865548Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0866158Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0866754Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0867276Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0867525Z 2022-11-23T01:08:09.0867890Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7f06954ae520 (libtorch_cpu.so+0x00000d6b5520) 2022-11-23T01:08:09.0868186Z 2022-11-23T01:08:09.0868519Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:09.0869025Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0869636Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0870413Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0870906Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0871717Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0872411Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0872993Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0873903Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0874537Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0874951Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0875348Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0876551Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0877262Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0877663Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0878560Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0879393Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0880387Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0881412Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0881907Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0883103Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0884204Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0884639Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0885265Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0885811Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0886203Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0886609Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0887076Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0887830Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0888307Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0888640Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0888846Z 2022-11-23T01:08:09.0889353Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf55a50) in disp_expf8_u10 2022-11-23T01:08:09.0889805Z ================== 2022-11-23T01:08:09.0890040Z ================== 2022-11-23T01:08:09.0890459Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0890952Z  Read of size 4 at 0x7f06954ae87c by thread T3: 2022-11-23T01:08:09.0891431Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559e0) 2022-11-23T01:08:09.0891846Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0892847Z #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+0x8cada77) 2022-11-23T01:08:09.0893786Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0894637Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0895085Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0895457Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0895834Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0896076Z 2022-11-23T01:08:09.0896340Z  Previous write of size 4 at 0x7f06954ae87c by main thread: 2022-11-23T01:08:09.0896847Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a18) 2022-11-23T01:08:09.0897098Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0898199Z #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+0x8cada77) 2022-11-23T01:08:09.0899238Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0900063Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0900710Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0901283Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0902592Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0903879Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0905396Z #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+0x511a718) 2022-11-23T01:08:09.0906821Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0907333Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0908502Z #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+0x3198f8e) 2022-11-23T01:08:09.0909745Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0910357Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0910841Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0911209Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0911467Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0911728Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0912006Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0912490Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0912932Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0913164Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0913374Z 2022-11-23T01:08:09.0913665Z  Location is global 'cpuSupportsAVX2.ret' of size 4 at 0x7f06954ae87c (libtorch_cpu.so+0x00000d6b587c) 2022-11-23T01:08:09.0913871Z 2022-11-23T01:08:09.0914091Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:09.0914475Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0914837Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0915382Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0915862Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0916345Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0916797Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0917158Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0917768Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0918247Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0918666Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0919063Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0920252Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0921378Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0922022Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0923441Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0924740Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0926420Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0927865Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0928286Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0929439Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0930444Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0930922Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0931554Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0932118Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0932518Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0932897Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0933347Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0934085Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0934737Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0935110Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0935281Z 2022-11-23T01:08:09.0935795Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf559e0) in disp_expf8_u10 2022-11-23T01:08:09.0936251Z ================== 2022-11-23T01:08:09.0936500Z ================== 2022-11-23T01:08:09.0936767Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0937167Z  Read of size 4 at 0x7f06954ae880 by thread T3: 2022-11-23T01:08:09.0937662Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a2e) 2022-11-23T01:08:09.0938050Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0939269Z #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+0x8cada77) 2022-11-23T01:08:09.0940218Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0941217Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0941849Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0942502Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0943058Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0943300Z 2022-11-23T01:08:09.0943560Z  Previous write of size 4 at 0x7f06954ae880 by main thread: 2022-11-23T01:08:09.0943896Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55aa1) 2022-11-23T01:08:09.0944219Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0945006Z #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+0x8cada77) 2022-11-23T01:08:09.0946042Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0946902Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0947505Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0947902Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0948662Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0949732Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0950871Z #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+0x511a718) 2022-11-23T01:08:09.0951863Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0952290Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0953201Z #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+0x3198f8e) 2022-11-23T01:08:09.0953947Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0954353Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0954790Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0955348Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0955753Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0956229Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0956638Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0957118Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0957561Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0957793Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0957922Z 2022-11-23T01:08:09.0958203Z  Location is global 'cpuSupportsFMA.ret' of size 4 at 0x7f06954ae880 (libtorch_cpu.so+0x00000d6b5880) 2022-11-23T01:08:09.0958412Z 2022-11-23T01:08:09.0958631Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:09.0958952Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0959311Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0959851Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0960341Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0960810Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0961264Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0961626Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0962235Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0962725Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0963136Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0963510Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0964274Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0965011Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0965421Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0966348Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.0967197Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.0968190Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.0969108Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.0969444Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.0970183Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.0970890Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.0971207Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.0971634Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0971999Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0972250Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0972511Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0972791Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0973268Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0973704Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0973937Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0974064Z 2022-11-23T01:08:09.0974411Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf55a2e) in disp_expf8_u10 2022-11-23T01:08:09.0974698Z ================== 2022-11-23T01:08:09.0974862Z ================== 2022-11-23T01:08:09.0975124Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.0975428Z  Read of size 4 at 0x7f06954ae87c by thread T1: 2022-11-23T01:08:09.0975778Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559e0) 2022-11-23T01:08:09.0976038Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0976843Z #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+0x8cada77) 2022-11-23T01:08:09.0977452Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0978015Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.0978430Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.0978965Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.0979331Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.0979495Z 2022-11-23T01:08:09.0979675Z  Previous write of size 4 at 0x7f06954ae87c by main thread: 2022-11-23T01:08:09.0980003Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a18) 2022-11-23T01:08:09.0980265Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.0980909Z #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+0x8cada77) 2022-11-23T01:08:09.0981523Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.0981994Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.0982419Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.0982812Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.0983567Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.0984315Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.0985242Z #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+0x511a718) 2022-11-23T01:08:09.0986072Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.0986395Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.0987070Z #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+0x3198f8e) 2022-11-23T01:08:09.0987714Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.0988034Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.0988470Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.0988846Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.0989105Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.0989352Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.0989736Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.0990228Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.0990671Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.0990893Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.0991022Z 2022-11-23T01:08:09.0991301Z  Location is global 'cpuSupportsAVX2.ret' of size 4 at 0x7f06954ae87c (libtorch_cpu.so+0x00000d6b587c) 2022-11-23T01:08:09.0991505Z 2022-11-23T01:08:09.0991721Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:09.0992056Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.0992405Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.0992951Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.0993444Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.0993921Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.0994372Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.0994725Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.0995338Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.0995864Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.0996274Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.0996704Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.0997469Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.0998173Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.0998563Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.0999466Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.1000320Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.1001330Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.1002259Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.1002580Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.1003318Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.1004027Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.1004341Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.1004797Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1005177Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1005450Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1005710Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1006005Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1006484Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1006909Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1007141Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1007269Z 2022-11-23T01:08:09.1007594Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf559e0) in disp_expf8_u10 2022-11-23T01:08:09.1007892Z ================== 2022-11-23T01:08:09.1008042Z ================== 2022-11-23T01:08:09.1008305Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.1008627Z  Read of size 4 at 0x7f06954ae87c by thread T2: 2022-11-23T01:08:09.1008931Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf559e0) 2022-11-23T01:08:09.1009195Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.1009833Z #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+0x8cada77) 2022-11-23T01:08:09.1010452Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1011014Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.1011419Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.1011801Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.1012168Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.1012331Z 2022-11-23T01:08:09.1012518Z  Previous write of size 4 at 0x7f06954ae87c by main thread: 2022-11-23T01:08:09.1012834Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a18) 2022-11-23T01:08:09.1013173Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:08:09.1013833Z #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+0x8cada77) 2022-11-23T01:08:09.1014452Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1014940Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.1015352Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.1015787Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.1016546Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.1017324Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.1018196Z #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+0x511a718) 2022-11-23T01:08:09.1019123Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.1019451Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.1020117Z #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+0x3198f8e) 2022-11-23T01:08:09.1020753Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.1021076Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.1021513Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1021892Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1022148Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1022397Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1022687Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1023170Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1023606Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1023841Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1023958Z 2022-11-23T01:08:09.1024236Z  Location is global 'cpuSupportsAVX2.ret' of size 4 at 0x7f06954ae87c (libtorch_cpu.so+0x00000d6b587c) 2022-11-23T01:08:09.1024443Z 2022-11-23T01:08:09.1024659Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:09.1024993Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.1025338Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.1025937Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.1026433Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.1026948Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.1027398Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.1027764Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.1028364Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.1028854Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.1029269Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.1029715Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.1030474Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.1031177Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.1031583Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.1032478Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.1033312Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.1034403Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.1035310Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.1035644Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.1036420Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.1037117Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.1037423Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.1037848Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1038230Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1038489Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1038736Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1039026Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1039510Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1039953Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1040175Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1040305Z 2022-11-23T01:08:09.1040624Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf559e0) in disp_expf8_u10 2022-11-23T01:08:09.1040924Z ================== 2022-11-23T01:08:09.1041075Z ================== 2022-11-23T01:08:09.1041339Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.1041653Z  Read of size 8 at 0x7f06954ae668 by thread T3: 2022-11-23T01:08:09.1041974Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f31) 2022-11-23T01:08:09.1042612Z #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+0x8cada88) 2022-11-23T01:08:09.1043230Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1043788Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.1044202Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.1044587Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.1044940Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.1045103Z 2022-11-23T01:08:09.1045290Z  Previous write of size 8 at 0x7f06954ae668 by main thread: 2022-11-23T01:08:09.1045649Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xaf59050) 2022-11-23T01:08:09.1045918Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f3c) 2022-11-23T01:08:09.1046550Z #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+0x8cada88) 2022-11-23T01:08:09.1047194Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1047677Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.1048104Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.1048500Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.1049254Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.1050006Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.1050867Z #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+0x511a718) 2022-11-23T01:08:09.1051666Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.1051977Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.1052648Z #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+0x3198f8e) 2022-11-23T01:08:09.1053292Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.1053625Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.1054059Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1054439Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1054684Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1054942Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1055231Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1055742Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1056173Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1056435Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1056564Z 2022-11-23T01:08:09.1056823Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f06954ae668 (libtorch_cpu.so+0x00000d6b5668) 2022-11-23T01:08:09.1057015Z 2022-11-23T01:08:09.1057231Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:09.1057552Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.1057911Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.1058462Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.1059084Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.1059563Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.1060003Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.1060361Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.1060980Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.1061472Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.1061891Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.1062273Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.1063036Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.1063749Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.1064156Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.1065108Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.1065952Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.1066987Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.1067912Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.1068243Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.1068979Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.1069754Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.1070072Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.1070499Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1070870Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1071123Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1071384Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1071674Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1072144Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1072582Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1072816Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1072946Z 2022-11-23T01:08:09.1073277Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf50f31) in Sleef_log1pf8_u10 2022-11-23T01:08:09.1073566Z ================== 2022-11-23T01:08:09.1073729Z ================== 2022-11-23T01:08:09.1073991Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.1074298Z  Read of size 8 at 0x7f06954ae668 by thread T1: 2022-11-23T01:08:09.1074623Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f31) 2022-11-23T01:08:09.1075277Z #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+0x8cada88) 2022-11-23T01:08:09.1075929Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1076488Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.1076918Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.1077302Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.1077664Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.1077827Z 2022-11-23T01:08:09.1078016Z  Previous write of size 8 at 0x7f06954ae668 by main thread: 2022-11-23T01:08:09.1078337Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xaf59050) 2022-11-23T01:08:09.1078608Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f3c) 2022-11-23T01:08:09.1079250Z #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+0x8cada88) 2022-11-23T01:08:09.1079866Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1080347Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.1080774Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.1081155Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.1081911Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.1082668Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.1083534Z #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+0x511a718) 2022-11-23T01:08:09.1084336Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.1084662Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.1085359Z #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+0x3198f8e) 2022-11-23T01:08:09.1086009Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.1086370Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.1086793Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1087173Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1087427Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1087685Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1087963Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1088447Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1088887Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1089121Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1089238Z 2022-11-23T01:08:09.1089496Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f06954ae668 (libtorch_cpu.so+0x00000d6b5668) 2022-11-23T01:08:09.1089682Z 2022-11-23T01:08:09.1089899Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:09.1090234Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.1090589Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.1091128Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.1091626Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.1092109Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.1092557Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.1092921Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.1093539Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.1094017Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.1094430Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.1094821Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.1095617Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.1096318Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.1096761Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.1097660Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.1098608Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.1099608Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.1100525Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.1100864Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.1101611Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.1102319Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.1102623Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.1103052Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1103435Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1103690Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1103937Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1104226Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1104707Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1105194Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1105418Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1105549Z 2022-11-23T01:08:09.1105952Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf50f31) in Sleef_log1pf8_u10 2022-11-23T01:08:09.1106299Z ================== 2022-11-23T01:08:09.1106464Z ================== 2022-11-23T01:08:09.1106717Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:09.1107037Z  Read of size 8 at 0x7f06954ae668 by thread T2: 2022-11-23T01:08:09.1107416Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f31) 2022-11-23T01:08:09.1108058Z #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+0x8cada88) 2022-11-23T01:08:09.1108674Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1109241Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:09.1109717Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:09.1110103Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:09.1110469Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:09.1110620Z 2022-11-23T01:08:09.1110814Z  Previous write of size 8 at 0x7f06954ae668 by main thread: 2022-11-23T01:08:09.1111144Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xaf59050) 2022-11-23T01:08:09.1111420Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f3c) 2022-11-23T01:08:09.1112063Z #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+0x8cada88) 2022-11-23T01:08:09.1112662Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:09.1113146Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:09.1113576Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:08:09.1113969Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:08:09.1114728Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:08:09.1115479Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:08:09.1116383Z #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+0x511a718) 2022-11-23T01:08:09.1117213Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:08:09.1117541Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:08:09.1118199Z #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+0x3198f8e) 2022-11-23T01:08:09.1118842Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:08:09.1119173Z #14 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a14aa) 2022-11-23T01:08:09.1119612Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1119990Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1120231Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1120489Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1120781Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1121264Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1121691Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1121926Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1122056Z 2022-11-23T01:08:09.1122321Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f06954ae668 (libtorch_cpu.so+0x00000d6b5668) 2022-11-23T01:08:09.1122512Z 2022-11-23T01:08:09.1122729Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:09.1123051Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:09.1123409Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:09.1123951Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:09.1124444Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:09.1124922Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:09.1125358Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:09.1125719Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:09.1126368Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:09.1126862Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:09.1127299Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:09.1127676Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:09.1128438Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:09.1129146Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:09.1129553Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:09.1130455Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:09.1131296Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:09.1132290Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:09.1133215Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:09.1133549Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:09.1134292Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:09.1135023Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:09.1135344Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:09.1135769Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:09.1136173Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:09.1136427Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:09.1136688Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:09.1136978Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:09.1137445Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:09.1137887Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:09.1138122Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:09.1138251Z 2022-11-23T01:08:09.1138708Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf50f31) in Sleef_log1pf8_u10 2022-11-23T01:08:09.1138995Z ================== 2022-11-23T01:08:09.1139285Z [ OK ] LazyOpsTest.TestLogSigmoid (291 ms) 2022-11-23T01:08:09.1139613Z [ RUN ] LazyOpsTest.TestLogSigmoidForward 2022-11-23T01:08:09.1139960Z [ OK ] LazyOpsTest.TestLogSigmoidForward (9 ms) 2022-11-23T01:08:09.1140270Z [ RUN ] LazyOpsTest.TestLogsumexp 2022-11-23T01:08:09.1534670Z [ OK ] LazyOpsTest.TestLogsumexp (42 ms) 2022-11-23T01:08:09.1535016Z [ RUN ] LazyOpsTest.TestSiLU 2022-11-23T01:08:09.1566304Z [ OK ] LazyOpsTest.TestSiLU (3 ms) 2022-11-23T01:08:09.1566771Z [ RUN ] LazyOpsTest.TestSigmoid 2022-11-23T01:08:09.1598641Z [ OK ] LazyOpsTest.TestSigmoid (3 ms) 2022-11-23T01:08:09.1598980Z [ RUN ] LazyOpsTest.TestMatmul_1x1 2022-11-23T01:08:09.1614306Z [ OK ] LazyOpsTest.TestMatmul_1x1 (1 ms) 2022-11-23T01:08:09.1614663Z [ RUN ] LazyOpsTest.TestMatmul_2x1 2022-11-23T01:08:09.1653442Z [ OK ] LazyOpsTest.TestMatmul_2x1 (3 ms) 2022-11-23T01:08:09.1653758Z [ RUN ] LazyOpsTest.TestMatmul_1x2 2022-11-23T01:08:09.1709776Z [ OK ] LazyOpsTest.TestMatmul_1x2 (5 ms) 2022-11-23T01:08:09.1710102Z [ RUN ] LazyOpsTest.TestMatmul_2x2 2022-11-23T01:08:09.1762822Z [ OK ] LazyOpsTest.TestMatmul_2x2 (3 ms) 2022-11-23T01:08:09.1763275Z [ RUN ] LazyOpsTest.TestMatmulBcast 2022-11-23T01:08:09.1842197Z [ OK ] LazyOpsTest.TestMatmulBcast (9 ms) 2022-11-23T01:08:09.1842517Z [ RUN ] LazyOpsTest.TestDot 2022-11-23T01:08:09.1856726Z [ OK ] LazyOpsTest.TestDot (1 ms) 2022-11-23T01:08:09.1857028Z [ RUN ] LazyOpsTest.TestTensorDot 2022-11-23T01:08:09.1949708Z [ OK ] LazyOpsTest.TestTensorDot (9 ms) 2022-11-23T01:08:09.1950052Z [ RUN ] LazyOpsTest.TestGer 2022-11-23T01:08:09.1998248Z [ OK ] LazyOpsTest.TestGer (4 ms) 2022-11-23T01:08:09.1998521Z [ RUN ] LazyOpsTest.TestMv 2022-11-23T01:08:09.2035751Z [ OK ] LazyOpsTest.TestMv (3 ms) 2022-11-23T01:08:09.2036087Z [ RUN ] LazyOpsTest.TestMvOut 2022-11-23T01:08:09.2093539Z [ OK ] LazyOpsTest.TestMvOut (5 ms) 2022-11-23T01:08:09.2093892Z [ RUN ] LazyOpsTest.TestBatchAddBatchMatMul 2022-11-23T01:08:09.2140193Z [ OK ] LazyOpsTest.TestBatchAddBatchMatMul (4 ms) 2022-11-23T01:08:09.2140582Z [ RUN ] LazyOpsTest.TestBatchAddBatchMatMulInPlace 2022-11-23T01:08:09.2205963Z [ OK ] LazyOpsTest.TestBatchAddBatchMatMulInPlace (6 ms) 2022-11-23T01:08:09.2206379Z [ RUN ] LazyOpsTest.TestBatchMatMul 2022-11-23T01:08:09.2245048Z [ OK ] LazyOpsTest.TestBatchMatMul (3 ms) 2022-11-23T01:08:09.2245371Z [ RUN ] LazyOpsTest.TestChainMatMul 2022-11-23T01:08:09.2247727Z [W LinearAlgebra.cpp:1076] 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()) 2022-11-23T01:08:09.2315577Z [ OK ] LazyOpsTest.TestChainMatMul (7 ms) 2022-11-23T01:08:09.2315888Z [ RUN ] LazyOpsTest.TestLinear 2022-11-23T01:08:09.2408337Z [ OK ] LazyOpsTest.TestLinear (9 ms) 2022-11-23T01:08:09.2408646Z [ RUN ] LazyOpsTest.TestPinverse 2022-11-23T01:08:09.2624344Z [ OK ] LazyOpsTest.TestPinverse (21 ms) 2022-11-23T01:08:09.2624946Z [ RUN ] LazyOpsTest.TestEinsumOuter 2022-11-23T01:08:09.2697057Z [ OK ] LazyOpsTest.TestEinsumOuter (7 ms) 2022-11-23T01:08:09.2697664Z [ RUN ] LazyOpsTest.TestEinsumOuterBackward 2022-11-23T01:08:09.2979258Z [ OK ] LazyOpsTest.TestEinsumOuterBackward (28 ms) 2022-11-23T01:08:09.2979644Z [ RUN ] LazyOpsTest.TestEinsumBatchMatMul 2022-11-23T01:08:09.3113053Z [ OK ] LazyOpsTest.TestEinsumBatchMatMul (13 ms) 2022-11-23T01:08:09.3113627Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBilinear 2022-11-23T01:08:09.3333898Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBilinear (22 ms) 2022-11-23T01:08:09.3334518Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerDiagonal 2022-11-23T01:08:09.3391076Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerDiagonal (5 ms) 2022-11-23T01:08:09.3391734Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBatchDiagonal 2022-11-23T01:08:09.3449334Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBatchDiagonal (5 ms) 2022-11-23T01:08:09.3450047Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBatchPermute 2022-11-23T01:08:09.3490069Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBatchPermute (4 ms) 2022-11-23T01:08:09.3490791Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerRepeatedAxis 2022-11-23T01:08:09.3609307Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerRepeatedAxis (11 ms) 2022-11-23T01:08:09.3609851Z [ RUN ] LazyOpsTest.TestBilinear 2022-11-23T01:08:09.5211779Z [ OK ] LazyOpsTest.TestBilinear (160 ms) 2022-11-23T01:08:09.5212381Z [ RUN ] LazyOpsTest.TestUpsampleNearest2D 2022-11-23T01:08:09.5260794Z [ OK ] LazyOpsTest.TestUpsampleNearest2D (4 ms) 2022-11-23T01:08:09.5261438Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DBackward 2022-11-23T01:08:09.5387760Z [ OK ] LazyOpsTest.TestUpsampleNearest2DBackward (12 ms) 2022-11-23T01:08:09.5388480Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DWithScale 2022-11-23T01:08:09.5438657Z [ OK ] LazyOpsTest.TestUpsampleNearest2DWithScale (5 ms) 2022-11-23T01:08:09.5439400Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DBackwardWithScale 2022-11-23T01:08:09.5566826Z [ OK ] LazyOpsTest.TestUpsampleNearest2DBackwardWithScale (12 ms) 2022-11-23T01:08:09.5567528Z [ RUN ] LazyOpsTest.TestUpsampleBilinear2D 2022-11-23T01:08:09.5660623Z [ OK ] LazyOpsTest.TestUpsampleBilinear2D (9 ms) 2022-11-23T01:08:09.5661282Z [ RUN ] LazyOpsTest.TestUpsampleBilinear2DBackward 2022-11-23T01:08:09.5911958Z [ OK ] LazyOpsTest.TestUpsampleBilinear2DBackward (25 ms) 2022-11-23T01:08:09.5912598Z [ RUN ] LazyOpsTest.TestAddCMul 2022-11-23T01:08:09.5954154Z [ OK ] LazyOpsTest.TestAddCMul (4 ms) 2022-11-23T01:08:09.5954735Z [ RUN ] LazyOpsTest.TestAddCDiv 2022-11-23T01:08:09.5997713Z [ OK ] LazyOpsTest.TestAddCDiv (4 ms) 2022-11-23T01:08:09.5998340Z [ RUN ] LazyOpsTest.TestAddCDivWithBroadcast 2022-11-23T01:08:09.6040469Z [ OK ] LazyOpsTest.TestAddCDivWithBroadcast (4 ms) 2022-11-23T01:08:09.6041255Z [ RUN ] LazyOpsTest.TestSize 2022-11-23T01:08:09.6043845Z [ OK ] LazyOpsTest.TestSize (0 ms) 2022-11-23T01:08:09.6044382Z [ RUN ] LazyOpsTest.TestSelect 2022-11-23T01:08:09.7085706Z [ OK ] LazyOpsTest.TestSelect (103 ms) 2022-11-23T01:08:09.7086306Z [ RUN ] LazyOpsTest.TestBernoulliScalarProb 2022-11-23T01:08:09.7126933Z [ OK ] LazyOpsTest.TestBernoulliScalarProb (4 ms) 2022-11-23T01:08:09.7127683Z [ RUN ] LazyOpsTest.TestBernoulliTensorProb 2022-11-23T01:08:09.7164093Z [ OK ] LazyOpsTest.TestBernoulliTensorProb (3 ms) 2022-11-23T01:08:09.7164869Z [ RUN ] LazyOpsTest.TestBernoulliScalarProbInPlace 2022-11-23T01:08:09.7219326Z [ OK ] LazyOpsTest.TestBernoulliScalarProbInPlace (5 ms) 2022-11-23T01:08:09.7220231Z [ RUN ] LazyOpsTest.TestBernoulliTensorProbInPlace 2022-11-23T01:08:09.7267983Z [ OK ] LazyOpsTest.TestBernoulliTensorProbInPlace (4 ms) 2022-11-23T01:08:09.7268707Z [ RUN ] LazyOpsTest.TestDropout 2022-11-23T01:08:09.7307647Z [ OK ] LazyOpsTest.TestDropout (3 ms) 2022-11-23T01:08:09.7308228Z [ RUN ] LazyOpsTest.TestDropoutInPlace 2022-11-23T01:08:09.7363634Z [ OK ] LazyOpsTest.TestDropoutInPlace (5 ms) 2022-11-23T01:08:09.7364212Z [ RUN ] LazyOpsTest.TestRandperm 2022-11-23T01:08:09.7382012Z [ OK ] LazyOpsTest.TestRandperm (1 ms) 2022-11-23T01:08:09.7382574Z [ RUN ] LazyOpsTest.TestSlice 2022-11-23T01:08:09.7477631Z [ OK ] LazyOpsTest.TestSlice (9 ms) 2022-11-23T01:08:09.7478177Z [ RUN ] LazyOpsTest.TestTake 2022-11-23T01:08:09.7493139Z [ OK ] LazyOpsTest.TestTake (1 ms) 2022-11-23T01:08:09.7493650Z [ RUN ] LazyOpsTest.TestTakeBackward 2022-11-23T01:08:09.7630702Z [ OK ] LazyOpsTest.TestTakeBackward (13 ms) 2022-11-23T01:08:09.7631241Z [ RUN ] LazyOpsTest.TestStack 2022-11-23T01:08:09.7957673Z [ OK ] LazyOpsTest.TestStack (32 ms) 2022-11-23T01:08:09.7958219Z [ RUN ] LazyOpsTest.TestCat 2022-11-23T01:08:09.8046891Z [ OK ] LazyOpsTest.TestCat (8 ms) 2022-11-23T01:08:09.8047427Z [ RUN ] LazyOpsTest.TestUnbind 2022-11-23T01:08:09.8248751Z [ OK ] LazyOpsTest.TestUnbind (20 ms) 2022-11-23T01:08:09.8249287Z [ RUN ] LazyOpsTest.TestRepeat 2022-11-23T01:08:09.8382242Z [ OK ] LazyOpsTest.TestRepeat (13 ms) 2022-11-23T01:08:09.8382813Z [ RUN ] LazyOpsTest.TestGather 2022-11-23T01:08:09.8466480Z [ OK ] LazyOpsTest.TestGather (8 ms) 2022-11-23T01:08:09.8467042Z [ RUN ] LazyOpsTest.TestScatter 2022-11-23T01:08:09.8507824Z [ OK ] LazyOpsTest.TestScatter (4 ms) 2022-11-23T01:08:09.8508377Z [ RUN ] LazyOpsTest.TestScatterR1 2022-11-23T01:08:09.8525630Z [ OK ] LazyOpsTest.TestScatterR1 (1 ms) 2022-11-23T01:08:09.8526192Z [ RUN ] LazyOpsTest.TestScatterR3 2022-11-23T01:08:09.8554140Z [ OK ] LazyOpsTest.TestScatterR3 (2 ms) 2022-11-23T01:08:09.8554733Z [ RUN ] LazyOpsTest.TestScatterBiggerSource 2022-11-23T01:08:09.8590081Z [ OK ] LazyOpsTest.TestScatterBiggerSource (3 ms) 2022-11-23T01:08:09.8590717Z [ RUN ] LazyOpsTest.TestScatterScalar 2022-11-23T01:08:09.8623223Z [ OK ] LazyOpsTest.TestScatterScalar (3 ms) 2022-11-23T01:08:09.8623812Z [ RUN ] LazyOpsTest.TestScatterReduceAdd 2022-11-23T01:08:09.8665310Z [ OK ] LazyOpsTest.TestScatterReduceAdd (4 ms) 2022-11-23T01:08:09.8665924Z [ RUN ] LazyOpsTest.TestScatterAdd 2022-11-23T01:08:09.8756073Z [ OK ] LazyOpsTest.TestScatterAdd (9 ms) 2022-11-23T01:08:09.8756691Z [ RUN ] LazyOpsTest.TestScatterAddInPlace 2022-11-23T01:08:09.8854100Z [ OK ] LazyOpsTest.TestScatterAddInPlace (9 ms) 2022-11-23T01:08:09.8854685Z [ RUN ] LazyOpsTest.TestIndexSelect 2022-11-23T01:08:10.0045329Z [ OK ] LazyOpsTest.TestIndexSelect (118 ms) 2022-11-23T01:08:10.0045986Z [ RUN ] LazyOpsTest.TestIndexSelectRank0 2022-11-23T01:08:10.0348304Z [ OK ] LazyOpsTest.TestIndexSelectRank0 (30 ms) 2022-11-23T01:08:10.0348873Z [ RUN ] LazyOpsTest.TestInverse 2022-11-23T01:08:10.0397894Z [ OK ] LazyOpsTest.TestInverse (5 ms) 2022-11-23T01:08:10.0398434Z [ RUN ] LazyOpsTest.TestIsnan 2022-11-23T01:08:10.0406275Z [ OK ] LazyOpsTest.TestIsnan (0 ms) 2022-11-23T01:08:10.0406810Z [ RUN ] LazyOpsTest.TestExpand 2022-11-23T01:08:10.0447706Z [ OK ] LazyOpsTest.TestExpand (4 ms) 2022-11-23T01:08:10.0448280Z [ RUN ] LazyOpsTest.TestExpandBack 2022-11-23T01:08:10.0487638Z [ OK ] LazyOpsTest.TestExpandBack (3 ms) 2022-11-23T01:08:10.0488196Z [ RUN ] LazyOpsTest.TestExpandAs 2022-11-23T01:08:10.0546664Z [ OK ] LazyOpsTest.TestExpandAs (5 ms) 2022-11-23T01:08:10.0547169Z [ RUN ] LazyOpsTest.TestEye 2022-11-23T01:08:10.0558607Z [ OK ] LazyOpsTest.TestEye (1 ms) 2022-11-23T01:08:10.0559097Z [ RUN ] LazyOpsTest.TestEyeWide 2022-11-23T01:08:10.0570012Z [ OK ] LazyOpsTest.TestEyeWide (1 ms) 2022-11-23T01:08:10.0570551Z [ RUN ] LazyOpsTest.TestEyeNarrow 2022-11-23T01:08:10.0581430Z [ OK ] LazyOpsTest.TestEyeNarrow (1 ms) 2022-11-23T01:08:10.0582033Z [ RUN ] LazyOpsTest.TestBroadcastTensors 2022-11-23T01:08:10.0654388Z [ OK ] LazyOpsTest.TestBroadcastTensors (7 ms) 2022-11-23T01:08:10.0654998Z [ RUN ] LazyOpsTest.TestOneIndex 2022-11-23T01:08:10.0840515Z [ OK ] LazyOpsTest.TestOneIndex (18 ms) 2022-11-23T01:08:10.0841177Z [ RUN ] LazyOpsTest.TestOneIndexTransfer 2022-11-23T01:08:10.1002437Z [ OK ] LazyOpsTest.TestOneIndexTransfer (16 ms) 2022-11-23T01:08:10.1003010Z [ RUN ] LazyOpsTest.TestNonzero 2022-11-23T01:08:10.1019359Z [ OK ] LazyOpsTest.TestNonzero (1 ms) 2022-11-23T01:08:10.1019906Z [ RUN ] LazyOpsTest.TestMaskedSelect 2022-11-23T01:08:10.1038927Z [ OK ] LazyOpsTest.TestMaskedSelect (1 ms) 2022-11-23T01:08:10.1039485Z [ RUN ] LazyOpsTest.TestMaskedScatter 2022-11-23T01:08:10.1070413Z [ OK ] LazyOpsTest.TestMaskedScatter (3 ms) 2022-11-23T01:08:10.1071065Z [ RUN ] LazyOpsTest.TestMultiIndexHeadNull 2022-11-23T01:08:10.1187738Z [ OK ] LazyOpsTest.TestMultiIndexHeadNull (11 ms) 2022-11-23T01:08:10.1188419Z [ RUN ] LazyOpsTest.TestMultiIndexMiddleNull 2022-11-23T01:08:10.1307162Z [ OK ] LazyOpsTest.TestMultiIndexMiddleNull (11 ms) 2022-11-23T01:08:10.1307867Z [ RUN ] LazyOpsTest.TestMultiIndexTailNull 2022-11-23T01:08:10.1426576Z [ OK ] LazyOpsTest.TestMultiIndexTailNull (11 ms) 2022-11-23T01:08:10.1427293Z [ RUN ] LazyOpsTest.TestMultiIndexMiddleBroadcast 2022-11-23T01:08:10.1546772Z [ OK ] LazyOpsTest.TestMultiIndexMiddleBroadcast (11 ms) 2022-11-23T01:08:10.1547545Z [ RUN ] LazyOpsTest.TestMultiIndexTailBroadcast 2022-11-23T01:08:10.1651311Z [ OK ] LazyOpsTest.TestMultiIndexTailBroadcast (10 ms) 2022-11-23T01:08:10.1651917Z [ RUN ] LazyOpsTest.TestMaskIndex 2022-11-23T01:08:10.1710237Z [ OK ] LazyOpsTest.TestMaskIndex (5 ms) 2022-11-23T01:08:10.1711125Z [ RUN ] LazyOpsTest.TestOneIndexPut 2022-11-23T01:08:10.1750085Z ================== 2022-11-23T01:08:10.1750599Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.1751130Z  Write of size 4 at 0x7b9400017180 by thread T2: 2022-11-23T01:08:10.1755736Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.1758311Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.1758977Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.1759730Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.1760640Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.1761415Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.1761972Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.1762577Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.1763149Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.1763429Z 2022-11-23T01:08:10.1763731Z  Previous write of size 4 at 0x7b9400017180 by thread T3: 2022-11-23T01:08:10.1767372Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.1769798Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.1770525Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.1771379Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.1772248Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.1773126Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.1773860Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.1774469Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.1775023Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.1775272Z 2022-11-23T01:08:10.1775648Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.1776097Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.1776410Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.1776999Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.1777848Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.1779494Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.1781065Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.1782232Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.1783628Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.1786588Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.1790627Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.1792606Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.1795567Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.1798546Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.1799524Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.1801405Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.1803185Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.1804049Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.1806226Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.1808350Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.1810815Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.1813042Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.1813856Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.1814819Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1815647Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1816203Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1816753Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1817371Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1818253Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1819332Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1819915Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1820197Z 2022-11-23T01:08:10.1820687Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.1821423Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.1822288Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.1823462Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.1824499Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.1825544Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.1826511Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.1827300Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.1828654Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.1829768Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.1830679Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.1831542Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.1833262Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.1834785Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.1835662Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.1837628Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.1839482Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.1841704Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.1843742Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.1844456Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.1846087Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.1847636Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.1848292Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.1849210Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1850039Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1850588Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1851137Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1851765Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1852820Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1853782Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1854264Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1854541Z 2022-11-23T01:08:10.1855007Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.1855731Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.1856492Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.1857666Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.1859956Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.1860460Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.1860914Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.1861281Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.1861974Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.1862458Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.1862950Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.1863344Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.1864108Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.1864804Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.1865214Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.1866114Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.1866946Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.1867939Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.1868855Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.1869186Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.1870028Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.1870771Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.1871079Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.1871510Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1871921Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1872179Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1872428Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1872718Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1873201Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1873639Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1873859Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1873988Z 2022-11-23T01:08:10.1875689Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.1876731Z ================== 2022-11-23T01:08:10.1876935Z ================== 2022-11-23T01:08:10.1877194Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.1877511Z  Write of size 4 at 0x7b9400017188 by thread T2: 2022-11-23T01:08:10.1879800Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.1881474Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.1881961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.1882492Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.1883066Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.1883628Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.1884043Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.1884541Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.1885068Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.1885256Z 2022-11-23T01:08:10.1885547Z  Previous write of size 4 at 0x7b9400017188 by thread T3: 2022-11-23T01:08:10.1888736Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.1890982Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.1891735Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.1892444Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.1893317Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.1894186Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.1894777Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.1895358Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.1895853Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.1896076Z 2022-11-23T01:08:10.1896319Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.1896830Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.1897188Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.1897565Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.1898099Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.1899229Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.1900251Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.1900959Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.1901801Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.1903674Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.1906315Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.1907731Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.1909918Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.1912077Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.1912805Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.1914193Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.1915547Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.1916166Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.1917717Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.1919293Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.1921204Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.1922980Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.1923564Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.1924032Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1924490Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1924756Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1925022Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1925365Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1925857Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1926374Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1926613Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1926763Z 2022-11-23T01:08:10.1927032Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.1927383Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.1927806Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.1928404Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.1928959Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.1929589Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.1930196Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.1930561Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.1931356Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.1932042Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.1932624Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.1933142Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.1934107Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.1936461Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.1937529Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.1939149Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.1940505Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.1942094Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.1943498Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.1943928Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.1945123Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.1945998Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.1946475Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.1947167Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1947589Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1947949Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1948211Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1948487Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1949021Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1949465Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1949765Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1949893Z 2022-11-23T01:08:10.1950143Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.1950464Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.1950824Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.1951374Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.1951869Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.1952350Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.1952791Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.1953157Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.1953772Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.1954264Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.1954675Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.1955053Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.1955814Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.1956512Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.1956916Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.1957846Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.1958721Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.1959710Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.1960628Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.1960967Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.1961709Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.1962414Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.1962726Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.1963155Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.1963521Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.1963775Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.1964033Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.1964322Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.1964794Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.1965230Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.1965464Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.1965591Z 2022-11-23T01:08:10.1967308Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.1968341Z ================== 2022-11-23T01:08:10.1968508Z ================== 2022-11-23T01:08:10.1968774Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.1969081Z  Write of size 4 at 0x7b9400018f08 by main thread: 2022-11-23T01:08:10.1971377Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.1973406Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.1974029Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.1974616Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.1975358Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.1975892Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.1976377Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.1976985Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.1977678Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.1979134Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.1980519Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.1981096Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2025714Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2027070Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2027619Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2028720Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2029911Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2031398Z #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+0x57a0418) 2022-11-23T01:08:10.2032967Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2033431Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2034021Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2034669Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2035069Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2035494Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2035914Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2036702Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2037404Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2037718Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2037847Z 2022-11-23T01:08:10.2038075Z  Previous write of size 4 at 0x7b9400018f08 by thread T3: 2022-11-23T01:08:10.2041899Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2044368Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2045147Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2045970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2046894Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2047764Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2048438Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2049125Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2049717Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2049928Z 2022-11-23T01:08:10.2050151Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2050489Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2050909Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2051399Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2052008Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2053029Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2054175Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2055041Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2055897Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2057621Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2059974Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2061356Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2063235Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2065233Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2065889Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2067118Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2068194Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2068752Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2070085Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2071442Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2073148Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2074675Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2075138Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2075836Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2076404Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2076764Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2077050Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2077360Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2078147Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2078677Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2078899Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2079028Z 2022-11-23T01:08:10.2079270Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2079611Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2079972Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2080512Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2081005Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2081485Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2081935Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2082295Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2082900Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2083392Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2083803Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2084193Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2085027Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2085760Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2086161Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2087060Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2087905Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2088894Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2089817Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2090150Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2090893Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2091596Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2091903Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2092329Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2092707Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2094073Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2094468Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2094963Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2096055Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2100534Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2100914Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2101118Z 2022-11-23T01:08:10.2103826Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2105446Z ================== 2022-11-23T01:08:10.2105721Z ================== 2022-11-23T01:08:10.2106200Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2106775Z  Write of size 4 at 0x7b940001718c by thread T2: 2022-11-23T01:08:10.2109989Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.2112509Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2113311Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2114198Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2115314Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2116175Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2116863Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2117771Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2118277Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2118538Z 2022-11-23T01:08:10.2118833Z  Previous write of size 4 at 0x7b940001718c by thread T3: 2022-11-23T01:08:10.2122029Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.2123675Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2124159Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2124654Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2125232Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2125788Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2126206Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2126593Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2126957Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2127110Z 2022-11-23T01:08:10.2127340Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2127729Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2127995Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2128288Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2128707Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2129370Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2130072Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2130606Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2131135Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2132468Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2134239Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2135142Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2136499Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2137928Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2138382Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2139340Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2140145Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2140547Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2141545Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2142527Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2143684Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2144718Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2145144Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2145585Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2145965Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2146208Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2146469Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2146761Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2147244Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2147675Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2147914Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2148042Z 2022-11-23T01:08:10.2148260Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.2148593Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2148943Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2149490Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2150052Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2150537Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2150984Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2151340Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2151964Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2152459Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2152874Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2153265Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2154060Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2154762Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2155156Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2156110Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2156962Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2157948Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2158870Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2159190Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2159927Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2160634Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2160951Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2161377Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2161763Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2162008Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2162268Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2162557Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2163037Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2163463Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2163696Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2163825Z 2022-11-23T01:08:10.2164065Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2164401Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2164748Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2165323Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2165811Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2166290Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2166739Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2167092Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2167710Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2168204Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2168615Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2169007Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2169773Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2170475Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2170863Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2171770Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2172615Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2173637Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2174563Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2174882Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2175626Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2176328Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2176643Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2177071Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2177450Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2177691Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2177949Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2178242Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2178818Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2179424Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2179843Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2180082Z 2022-11-23T01:08:10.2182799Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2184431Z ================== 2022-11-23T01:08:10.2184696Z ================== 2022-11-23T01:08:10.2185147Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2185656Z  Write of size 4 at 0x7b9400018f10 by main thread: 2022-11-23T01:08:10.2188961Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.2191421Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2192194Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2193073Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2194067Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2194909Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2195569Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2196254Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2196922Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2198282Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.2199538Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.2200214Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2201797Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2203238Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2203932Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2205574Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2207305Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2209319Z #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+0x57a0418) 2022-11-23T01:08:10.2211064Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2211465Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2211891Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2212274Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2212572Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2213018Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2213595Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2214087Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2214570Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2214805Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2214937Z 2022-11-23T01:08:10.2215144Z  Previous write of size 4 at 0x7b9400018f10 by thread T3: 2022-11-23T01:08:10.2217468Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.2219257Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2219843Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2220369Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2220943Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2221514Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2221916Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2222309Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2222682Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2222847Z 2022-11-23T01:08:10.2223075Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2223399Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2223662Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2223965Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2224414Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2225083Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2225825Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2226353Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2226892Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2228250Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2230063Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2230972Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2232348Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2233774Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2234216Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2235062Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2235864Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2236263Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2237631Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2239242Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2240741Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2242363Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2242888Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2243467Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2244108Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2244550Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2245019Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2245513Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2246404Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2247160Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2247549Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2247765Z 2022-11-23T01:08:10.2248179Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2248773Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2249399Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2250326Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2251176Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2252026Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2252803Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2253444Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2254547Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2255417Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2255981Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2256592Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2257824Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2258962Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2259587Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2261013Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2262382Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2263775Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2264943Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2265280Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2266478Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2267542Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2267997Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2268624Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2269176Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2269631Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2270005Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2270422Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2271122Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2271774Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2272106Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2272288Z 2022-11-23T01:08:10.2274817Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2276253Z ================== 2022-11-23T01:08:10.2276500Z ================== 2022-11-23T01:08:10.2276881Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2277352Z  Write of size 4 at 0x7b9400017190 by thread T2: 2022-11-23T01:08:10.2280724Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.2282997Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2283703Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2284409Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2285221Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2286041Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2286634Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2287206Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2287796Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2288034Z 2022-11-23T01:08:10.2288304Z  Previous write of size 4 at 0x7b9400017190 by thread T3: 2022-11-23T01:08:10.2291706Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.2294114Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2294754Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2295274Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2295853Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2296468Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2297055Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2297615Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2298198Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2298456Z 2022-11-23T01:08:10.2298983Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2299575Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2300002Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2300526Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2301145Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2302467Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2303578Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2304495Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2305385Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2307491Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2310511Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2312014Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2314376Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2316697Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2317568Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2319067Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2320304Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2320919Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2322527Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2324251Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2326118Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2327985Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2328555Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2328995Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2329439Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2329685Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2329947Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2330237Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2330850Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2331495Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2331827Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2332006Z 2022-11-23T01:08:10.2332380Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.2332827Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2333348Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2334131Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2334842Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2335546Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2336207Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2336728Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2337633Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2338342Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2339088Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2339640Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2340558Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2341535Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2342126Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2343515Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2344825Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2346162Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2347477Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2347963Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2349041Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2350162Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2350620Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2351254Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2351789Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2352138Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2352516Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2352952Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2353657Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2354289Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2354619Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2354768Z 2022-11-23T01:08:10.2355133Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2355611Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2356141Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2356908Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2357700Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2358415Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2359113Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2359620Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2360265Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2360867Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2361445Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2361946Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2363159Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2364349Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2365088Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2366484Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2367861Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2369609Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2371081Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2371678Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2372700Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2373727Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2374160Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2374750Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2375294Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2375668Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2376116Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2376538Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2377175Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2377797Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2378161Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2378324Z 2022-11-23T01:08:10.2381114Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2382535Z ================== 2022-11-23T01:08:10.2382768Z ================== 2022-11-23T01:08:10.2383126Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2383545Z  Write of size 4 at 0x7b9400018f14 by main thread: 2022-11-23T01:08:10.2387195Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.2390005Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2390764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2391431Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2392305Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2392802Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2393199Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2393645Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2394097Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2395105Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.2396069Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.2396498Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2397523Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2398443Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2398902Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2399895Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2400885Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2402016Z #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+0x57a0418) 2022-11-23T01:08:10.2403054Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2403439Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2403866Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2404247Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2404503Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2404765Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2405038Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2405523Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2405964Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2406196Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2406313Z 2022-11-23T01:08:10.2406523Z  Previous write of size 4 at 0x7b9400018f14 by thread T3: 2022-11-23T01:08:10.2408874Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.2410510Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2410988Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2411498Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2412072Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2412631Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2413035Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2413426Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2413793Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2413957Z 2022-11-23T01:08:10.2414178Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2414503Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2414766Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2415071Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2415456Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2416110Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2416825Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2417366Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2417937Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2419503Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2421272Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2422194Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2423701Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2426001Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2426805Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2428045Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2429225Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2429864Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2430863Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2431846Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2432961Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2433982Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2434374Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2434802Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2435185Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2435443Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2435706Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2436089Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2436835Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2437443Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2437811Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2438021Z 2022-11-23T01:08:10.2438364Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2438912Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2439495Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2440472Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2441321Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2442178Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2442955Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2443577Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2444684Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2445545Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2446294Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2447018Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2448395Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2449619Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2450341Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2451985Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2453524Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2455346Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2456672Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2457008Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2457748Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2458456Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2458912Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2459332Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2459712Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2459972Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2460232Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2460510Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2460992Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2461434Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2461669Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2461798Z 2022-11-23T01:08:10.2463549Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2464580Z ================== 2022-11-23T01:08:10.2464746Z ================== 2022-11-23T01:08:10.2465004Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2465319Z  Write of size 4 at 0x7b9400017194 by thread T2: 2022-11-23T01:08:10.2467670Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.2469297Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2469890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2470395Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2470971Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2471529Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2471948Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2472333Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2472687Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2472854Z 2022-11-23T01:08:10.2473039Z  Previous write of size 4 at 0x7b9400017194 by thread T3: 2022-11-23T01:08:10.2475375Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.2477025Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2477512Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2478332Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2479399Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2480405Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2481072Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2481761Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2482424Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2482718Z 2022-11-23T01:08:10.2483133Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2483617Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2483947Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2484427Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2485139Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2485995Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2487067Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2487978Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2488975Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2491104Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2494141Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2495785Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2498018Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2500080Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2500778Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2502218Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2503391Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2504029Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2505467Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2506814Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2507947Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2508990Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2509383Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2509892Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2510278Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2510630Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2510988Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2511335Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2511877Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2512343Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2512684Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2512876Z 2022-11-23T01:08:10.2513154Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.2532460Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2532956Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2533512Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2534011Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2534499Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2534954Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2535303Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2535923Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2536413Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2536827Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2537217Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2538035Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2539233Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2539930Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2541096Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2541948Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2543019Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2543985Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2544306Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2545054Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2545748Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2546064Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2546489Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2546873Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2547116Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2547379Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2547670Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2548150Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2548717Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2549026Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2549222Z 2022-11-23T01:08:10.2549517Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2549977Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2550571Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2551463Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2552295Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2553098Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2553839Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2554414Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2555556Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2556428Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2557242Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2557883Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2559115Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2560182Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2560810Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2562196Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2563591Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2565029Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2566473Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2566804Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2567583Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2568370Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2568687Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2569113Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2569530Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2569775Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2570039Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2570334Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2570817Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2571251Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2571487Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2571620Z 2022-11-23T01:08:10.2573323Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2574354Z ================== 2022-11-23T01:08:10.2574521Z ================== 2022-11-23T01:08:10.2574793Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2575103Z  Write of size 4 at 0x7b9400018f18 by main thread: 2022-11-23T01:08:10.2577421Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.2579263Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2579749Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2580296Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2580877Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2581363Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2581759Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2582203Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2582655Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2583654Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.2584600Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.2585023Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2585986Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2586912Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2587330Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2588357Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2589363Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2590550Z #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+0x57a0418) 2022-11-23T01:08:10.2591906Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2592424Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2593098Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2593651Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2594051Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2594420Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2594828Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2595553Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2596171Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2596474Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2596697Z 2022-11-23T01:08:10.2596982Z  Previous write of size 4 at 0x7b9400018f18 by thread T3: 2022-11-23T01:08:10.2601044Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.2603268Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2604015Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2604605Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2605557Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2606281Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2606856Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2607374Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2607915Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2608117Z 2022-11-23T01:08:10.2608485Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2022-11-23T01:08:10.2609016Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2609410Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2609842Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2610423Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2611356Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2612365Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2613276Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2614210Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2616618Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2619777Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2621163Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2623293Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2625424Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2626113Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.2627511Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.2628717Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.2629209Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.2630799Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.2632322Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.2634038Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2635551Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2636112Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.2636756Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2637345Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2637739Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2638129Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2638564Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2639290Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2639967Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2640325Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2640532Z 2022-11-23T01:08:10.2640885Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.2641400Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2642029Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2642877Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2643677Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2644403Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2645106Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2645675Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2646625Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2647392Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2648031Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2648638Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2650792Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2651496Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2651967Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2653293Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2654663Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2656520Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2658193Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2658880Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2660060Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2661214Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2661731Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2662442Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2662973Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2663356Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2663770Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2664207Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2664983Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2665620Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2665981Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2666184Z 2022-11-23T01:08:10.2669063Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2670756Z ================== 2022-11-23T01:08:10.2671010Z ================== 2022-11-23T01:08:10.2671428Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2671952Z  Write of size 4 at 0x7b9400013f08 by thread T2: 2022-11-23T01:08:10.2675837Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2678406Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2679141Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2679974Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2680851Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2681802Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2682389Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2682970Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2683487Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2683719Z 2022-11-23T01:08:10.2684005Z  Previous write of size 4 at 0x7b9400013f08 by main thread: 2022-11-23T01:08:10.2687480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2689821Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2690624Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2691421Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2692281Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2692975Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2693557Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2694202Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2694875Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2696248Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.2697647Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.2698344Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2699408Z #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+0x6562cde) 2022-11-23T01:08:10.2700569Z #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+0x20cf997) 2022-11-23T01:08:10.2701464Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.2702097Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2703570Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2704912Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2705634Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2706925Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.2708206Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.2709142Z #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+0xca56e8) 2022-11-23T01:08:10.2710342Z #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+0x2974180) 2022-11-23T01:08:10.2711241Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.2713021Z #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+0x57a0418) 2022-11-23T01:08:10.2714830Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2715639Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.2716444Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.2717011Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.2717742Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2718368Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2718794Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2719221Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2719707Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2720537Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2721273Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2721649Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2721859Z 2022-11-23T01:08:10.2722264Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.2722825Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2723254Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2723746Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2724396Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2725565Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2726763Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2727683Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2728620Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2730994Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2734027Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2735596Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2737866Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2740287Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2741067Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.2741863Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.2744342Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.2747059Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2748449Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2749931Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2750481Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2751887Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2753414Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2754862Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2756338Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2756818Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2757306Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.2758732Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.2760190Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2761604Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2763040Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2763590Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2765010Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2766523Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2767954Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2769387Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2769893Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2770247Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.2771082Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.2771853Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.2772219Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.2772623Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.2773058Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.2773510Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2774126Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.2775017Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.2775875Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.2776609Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2778090Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2779811Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2780428Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2781666Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.2783110Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.2784149Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.2785536Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.2786587Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.2788407Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2790118Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2790926Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.2791695Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.2792295Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.2793009Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2793633Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2794069Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2794499Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2794938Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2795827Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2796538Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2797003Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2797215Z 2022-11-23T01:08:10.2797599Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.2798174Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2798784Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2799684Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2800374Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2801136Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2801734Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2802283Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2803142Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2803860Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2804432Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2805007Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2806133Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2807148Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2807734Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2809039Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2810327Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2811764Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2813277Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2813788Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2814879Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2815906Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2816376Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2816984Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2817542Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2817904Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2818278Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2818815Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2819576Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2820232Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2820574Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2820747Z 2022-11-23T01:08:10.2823336Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2824798Z ================== 2022-11-23T01:08:10.2825123Z ================== 2022-11-23T01:08:10.2825545Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2825995Z  Write of size 4 at 0x7b9400012180 by thread T1: 2022-11-23T01:08:10.2829400Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2831857Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2832557Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2833316Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2834338Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2835291Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2835988Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2836637Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2837229Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2837513Z 2022-11-23T01:08:10.2837850Z  Previous write of size 4 at 0x7b9400012180 by main thread: 2022-11-23T01:08:10.2841929Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2844690Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2845510Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2846391Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2847361Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2848196Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2848892Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2849639Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2850404Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2852034Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.2853593Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.2854356Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2855405Z #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+0x6562cde) 2022-11-23T01:08:10.2856773Z #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+0x20cf997) 2022-11-23T01:08:10.2857805Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.2858605Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2860240Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2860596Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2860945Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2862170Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.2862555Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.2863282Z #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+0xca56e8) 2022-11-23T01:08:10.2863930Z #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+0x2974180) 2022-11-23T01:08:10.2864337Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.2865972Z #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+0x57a0418) 2022-11-23T01:08:10.2866406Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2866854Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.2867164Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.2867451Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.2867913Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2868117Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2868305Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2868477Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2868675Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2869144Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2869313Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2869447Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2869456Z 2022-11-23T01:08:10.2869891Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.2870135Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2870277Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2870529Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2870856Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2871498Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2871904Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2872312Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2872712Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2874337Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2875304Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2875749Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2877297Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2877708Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2877966Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.2878424Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.2880178Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.2880709Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2882240Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2882644Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2883037Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2884761Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2885308Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2886952Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2887395Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2887678Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2888116Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.2889752Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.2890230Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2891838Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2892277Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2892667Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2894326Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2894783Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2896404Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2896876Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2897156Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2897375Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.2898290Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.2898639Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.2898934Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.2899231Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.2899645Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.2900032Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2900707Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.2901360Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.2901719Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.2902064Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2903427Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2903783Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2904188Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2905409Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.2905792Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.2906538Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.2907214Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.2907618Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.2909102Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.2909458Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2909970Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.2910257Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.2910528Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.2911003Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2911204Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2911452Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2911656Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2911886Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2912440Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2912642Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2912805Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2912816Z 2022-11-23T01:08:10.2913219Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.2913509Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.2913890Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.2914440Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.2914728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.2915246Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.2915506Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.2915831Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.2916555Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.2916924Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.2917242Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.2917568Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.2918536Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.2918813Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.2919201Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.2920390Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.2920783Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.2922114Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.2922421Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.2922664Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.2923644Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.2923892Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.2924135Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.2924564Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2924746Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2924945Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2925146Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2925395Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2925923Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2926123Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2926273Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2926284Z 2022-11-23T01:08:10.2929241Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.2929408Z ================== 2022-11-23T01:08:10.2929508Z ================== 2022-11-23T01:08:10.2929798Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.2930069Z  Write of size 4 at 0x7b9400013530 by thread T3: 2022-11-23T01:08:10.2934137Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2934607Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2935004Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2935508Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2936031Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2936517Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.2936767Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.2937165Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.2937400Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.2937410Z 2022-11-23T01:08:10.2937735Z  Previous write of size 4 at 0x7b9400013530 by main thread: 2022-11-23T01:08:10.2942002Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:10.2942521Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.2942917Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.2943430Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.2943955Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.2944302Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.2944662Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.2945067Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.2945452Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.2946752Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.2947177Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.2947607Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2948316Z #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+0x6562cde) 2022-11-23T01:08:10.2949055Z #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+0x20cf997) 2022-11-23T01:08:10.2949441Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.2949865Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.2951251Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.2951626Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.2951997Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.2953306Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.2953701Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.2954487Z #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+0xca56e8) 2022-11-23T01:08:10.2955238Z #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+0x2974180) 2022-11-23T01:08:10.2955664Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.2957275Z #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+0x57a0418) 2022-11-23T01:08:10.2957664Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.2958122Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.2958431Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.2958718Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.2959173Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.2959376Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.2959585Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.2959796Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.2960064Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.2960629Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.2960839Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.2960997Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.2961007Z 2022-11-23T01:08:10.2961401Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.2961682Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.2961901Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.2962182Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.2962544Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.2963344Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.2963861Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.2964336Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.2964834Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.2966786Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.2967928Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.2968477Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.2970366Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.2970906Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.2971234Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.2971750Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.2973749Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.2974296Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2976260Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2976752Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2977252Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2979494Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2980122Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2982132Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2982653Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2982991Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2983526Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.2985574Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.2986167Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.2988096Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.2988601Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.2989081Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.2991221Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.2991802Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.2993818Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.2994381Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.2994720Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.2994968Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.2996109Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.2996378Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.2996731Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.2997087Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.2997495Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.2997878Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.2998584Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.2999297Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.2999672Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3000064Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3001434Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3001847Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3002220Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3003512Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3003918Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3004700Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3005403Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3005836Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3007422Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3007829Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3008296Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3008642Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3008935Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3009395Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3009579Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3009786Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3010000Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3010262Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3010840Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3011053Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3011213Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3011223Z 2022-11-23T01:08:10.3011618Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3011912Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3012299Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3012869Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3013182Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3013711Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3013971Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3014313Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3015074Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3015465Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3015800Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3016139Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3017186Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3017480Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3017915Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3019245Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3019616Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3021039Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3021355Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3021613Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3022664Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3022924Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3023190Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3023646Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3023848Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3024057Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3024289Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3024547Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3025113Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3025382Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3025543Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3025552Z 2022-11-23T01:08:10.3028725Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3028892Z ================== 2022-11-23T01:08:10.3029008Z ================== 2022-11-23T01:08:10.3029309Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3029675Z  Write of size 4 at 0x7b9400013538 by thread T3: 2022-11-23T01:08:10.3033753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3034230Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3034624Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3035132Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3035640Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3036158Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3036402Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3036798Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3037072Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3037083Z 2022-11-23T01:08:10.3037393Z  Previous write of size 4 at 0x7b9400013538 by main thread: 2022-11-23T01:08:10.3041477Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3041944Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3042344Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3042844Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3043355Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3043695Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3044054Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3044463Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3044836Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3046172Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3046654Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3047045Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3047737Z #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+0x6562cde) 2022-11-23T01:08:10.3048425Z #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+0x20cf997) 2022-11-23T01:08:10.3048803Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3049155Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3050516Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3050889Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3051251Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3052542Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3052942Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3053745Z #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+0xca56e8) 2022-11-23T01:08:10.3054474Z #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+0x2974180) 2022-11-23T01:08:10.3054898Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3056458Z #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+0x57a0418) 2022-11-23T01:08:10.3056830Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3057290Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3057599Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3057888Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3058340Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3058637Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3058848Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3059057Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3059321Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3059885Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3060097Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3060257Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3060266Z 2022-11-23T01:08:10.3060662Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3060942Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3061155Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3061438Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3061807Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3062671Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3063197Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3063669Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3064147Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3066101Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3067245Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3067798Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3069813Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3070340Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3070668Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3071160Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3073187Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3073760Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3075721Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3076248Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3076733Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3078854Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3079442Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3081477Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3081998Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3082340Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3082873Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3084908Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3085508Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3087462Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3087963Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3088448Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3090571Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3091162Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3093232Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3093750Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3094091Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3094353Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3095519Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3095789Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3096141Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3096501Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3096919Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3097313Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3098001Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3098865Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3099304Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3099657Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3101025Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3101390Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3101759Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3103055Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3103455Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3104253Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3104946Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3105381Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3106986Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3107396Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3107856Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3108164Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3108453Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3108916Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3109116Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3109324Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3109535Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3109851Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3110428Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3110637Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3110797Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3110806Z 2022-11-23T01:08:10.3111199Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3111489Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3111882Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3112451Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3112762Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3113288Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3113562Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3113902Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3114659Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3115050Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3115431Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3115772Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3116834Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3117123Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3117535Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3118748Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3119127Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3120543Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3120860Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3121113Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3122174Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3122437Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3122703Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3123163Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3123405Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3123614Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3123824Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3124121Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3124688Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3124897Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3125043Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3125065Z 2022-11-23T01:08:10.3128209Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3128331Z ================== 2022-11-23T01:08:10.3128442Z ================== 2022-11-23T01:08:10.3128724Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3129026Z  Write of size 4 at 0x7b9400012188 by thread T1: 2022-11-23T01:08:10.3133148Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3133628Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3134022Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3134566Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3135084Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3135606Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3135851Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3136244Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3136483Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3136492Z 2022-11-23T01:08:10.3136802Z  Previous write of size 4 at 0x7b9400012188 by main thread: 2022-11-23T01:08:10.3140996Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3141459Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3141854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3142360Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3142881Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3143223Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3143587Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3144053Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3144430Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3145777Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3146204Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3146601Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3147307Z #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+0x6562cde) 2022-11-23T01:08:10.3148019Z #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+0x20cf997) 2022-11-23T01:08:10.3148396Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3148761Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3150181Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3150546Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3150912Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3152262Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3152695Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3153472Z #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+0xca56e8) 2022-11-23T01:08:10.3154173Z #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+0x2974180) 2022-11-23T01:08:10.3154607Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3156179Z #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+0x57a0418) 2022-11-23T01:08:10.3156561Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3157019Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3157326Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3157618Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3158079Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3158281Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3158491Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3158703Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3158966Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3159533Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3159743Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3159890Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3159952Z 2022-11-23T01:08:10.3160345Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3160638Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3160902Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3161185Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3161551Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3162369Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3162847Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3163328Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3163811Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3165790Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3166931Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3167485Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3169455Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3169977Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3170308Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3170797Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3172828Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3173399Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3175423Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3175954Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3176439Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3178620Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3179204Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3181245Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3181762Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3182162Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3182700Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3184754Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3185309Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3187285Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3187789Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3188276Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3190463Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3191070Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3193086Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3193619Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3193964Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3194222Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3195376Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3195649Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3195996Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3196349Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3196766Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3197196Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3197891Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3198623Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3199013Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3199366Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3200737Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3201101Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3201471Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3202776Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3203171Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3203953Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3204681Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3205111Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3206733Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3207110Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3207576Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3207889Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3208180Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3208638Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3208841Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3209052Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3209250Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3209517Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3210093Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3210302Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3210461Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3210470Z 2022-11-23T01:08:10.3210859Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.3211157Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3211548Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3212008Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3212185Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3212484Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3212673Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3212867Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3213283Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3213540Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3213714Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3213906Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3214484Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3214651Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3214865Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3215541Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3215751Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3216524Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3216706Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3216848Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3217450Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3217596Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3217775Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3218029Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3218142Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3218261Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3218380Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3218622Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3218938Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3219043Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3219139Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3219145Z 2022-11-23T01:08:10.3220812Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3220898Z ================== 2022-11-23T01:08:10.3220949Z ================== 2022-11-23T01:08:10.3221118Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3221295Z  Write of size 4 at 0x7b9400013f10 by thread T2: 2022-11-23T01:08:10.3223504Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3223779Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3224039Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3224324Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3224616Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3224884Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3225030Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3225243Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3225380Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3225386Z 2022-11-23T01:08:10.3225574Z  Previous write of size 4 at 0x7b9400013f10 by main thread: 2022-11-23T01:08:10.3227710Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:10.3227984Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3228205Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3228486Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3228800Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3228990Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3229219Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3229445Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3229723Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3230436Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3230712Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3230932Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3231322Z #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+0x6562cde) 2022-11-23T01:08:10.3231709Z #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+0x20cf997) 2022-11-23T01:08:10.3231922Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3232121Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3232867Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3233108Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3233318Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3234026Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3234292Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3234720Z #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+0xca56e8) 2022-11-23T01:08:10.3235108Z #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+0x2974180) 2022-11-23T01:08:10.3235349Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3236209Z #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+0x57a0418) 2022-11-23T01:08:10.3236423Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3236683Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3236861Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3237023Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3237278Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3237392Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3237538Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3237659Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3237804Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3238118Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3238250Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3238342Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3238348Z 2022-11-23T01:08:10.3238575Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3238741Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3238866Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3239027Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3239230Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3239676Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3239945Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3240208Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3240471Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3241550Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3242216Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3242546Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3243578Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3243866Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3244053Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3244323Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3245423Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3245728Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3246829Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3247151Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3247422Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3248569Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3248891Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3250006Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3250311Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3250557Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3250853Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3251945Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3252252Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3253333Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3253612Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3253907Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3255048Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3255394Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3256482Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3256786Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3256976Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3257114Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3257762Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3257943Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3258141Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3258390Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3258708Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3258928Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3259316Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3259718Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3259933Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3260135Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3260887Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3261093Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3261300Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3262007Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3262229Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3262704Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3263120Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3263359Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3264224Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3264435Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3264695Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3264871Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3265036Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3265292Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3265396Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3265517Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3265636Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3265786Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3266099Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3266222Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3266315Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3266321Z 2022-11-23T01:08:10.3266544Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.3266708Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3266930Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3267276Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3267448Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3267769Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3267922Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3268099Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3268512Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3268734Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3268921Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3269116Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3269742Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3269909Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3270137Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3270815Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3271023Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3271811Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3272021Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3272167Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3272786Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3272930Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3273085Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3273342Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3273457Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3273582Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3273703Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3273839Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3274150Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3274268Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3274361Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3274369Z 2022-11-23T01:08:10.3276038Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3276110Z ================== 2022-11-23T01:08:10.3276176Z ================== 2022-11-23T01:08:10.3276342Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3276517Z  Write of size 4 at 0x7b940001353c by thread T3: 2022-11-23T01:08:10.3278700Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3278994Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3279220Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3279503Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3279797Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3280064Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3280208Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3280431Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3280569Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3280577Z 2022-11-23T01:08:10.3280763Z  Previous write of size 4 at 0x7b940001353c by main thread: 2022-11-23T01:08:10.3282925Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3283228Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3283448Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3283825Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3284241Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3284583Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3284900Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3285122Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3285338Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3286063Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3286301Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3286525Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3286909Z #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+0x6562cde) 2022-11-23T01:08:10.3287298Z #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+0x20cf997) 2022-11-23T01:08:10.3287513Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3287718Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3288509Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3288740Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3288947Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3289657Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3289885Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3290319Z #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+0xca56e8) 2022-11-23T01:08:10.3290719Z #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+0x2974180) 2022-11-23T01:08:10.3290961Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3291822Z #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+0x57a0418) 2022-11-23T01:08:10.3292036Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3292326Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3292505Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3292668Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3292956Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3293070Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3293189Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3293309Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3293444Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3293758Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3293878Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3293972Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3293980Z 2022-11-23T01:08:10.3294210Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3294378Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3294501Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3294662Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3294866Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3295312Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3295584Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3295850Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3296113Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3297213Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3297857Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3298190Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3299318Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3299612Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3299799Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3300072Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3301223Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3301537Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3302644Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3302921Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3303191Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3304324Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3304662Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3305774Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3306093Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3306287Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3306656Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3308269Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3308750Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3310594Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3310991Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3311472Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3313290Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3313830Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3315622Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3316140Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3316467Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3316703Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3317894Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3318198Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3318532Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3318864Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3319206Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3319566Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3320175Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3320836Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3321189Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3321545Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3322813Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3323195Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3323542Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3324841Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3325263Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3325971Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3326609Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3326990Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3328264Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3328582Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3328931Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3329185Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3329421Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3329800Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3329975Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3330133Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3330309Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3330524Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3331013Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3331212Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3331454Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3331465Z 2022-11-23T01:08:10.3331839Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3332104Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3332487Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3332936Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3333191Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3333623Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3333820Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3334097Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3334704Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3335032Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3335306Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3335587Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3336424Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3336681Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3337019Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3338024Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3338381Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3339783Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3340122Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3340342Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3341216Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3341432Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3341665Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3342051Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3342232Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3342417Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3342605Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3342822Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3343303Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3343478Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3343629Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3343636Z 2022-11-23T01:08:10.3346362Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3346485Z ================== 2022-11-23T01:08:10.3346581Z ================== 2022-11-23T01:08:10.3346868Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3347137Z  Write of size 4 at 0x7b940001218c by thread T1: 2022-11-23T01:08:10.3350532Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3350984Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3351316Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3351775Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3352270Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3352742Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3352958Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3353332Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3353557Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3353568Z 2022-11-23T01:08:10.3353895Z  Previous write of size 4 at 0x7b940001218c by main thread: 2022-11-23T01:08:10.3357715Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3358218Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3358602Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3359073Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3359564Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3359908Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3360252Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3360644Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3361008Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3362217Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3362612Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3362979Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3363622Z #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+0x6562cde) 2022-11-23T01:08:10.3364275Z #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+0x20cf997) 2022-11-23T01:08:10.3364671Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3365023Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3366386Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3366732Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3367077Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3368279Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3368674Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3369401Z #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+0xca56e8) 2022-11-23T01:08:10.3370048Z #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+0x2974180) 2022-11-23T01:08:10.3370449Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3371981Z #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+0x57a0418) 2022-11-23T01:08:10.3372345Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3372817Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3373112Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3373379Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3373818Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3374016Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3374219Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3374414Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3374676Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3375145Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3375253Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3375345Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3375352Z 2022-11-23T01:08:10.3375594Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3375761Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3375887Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3376050Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3376257Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3376699Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3376974Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3377239Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3377508Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3378783Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3379460Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3379765Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3380795Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3381085Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3381274Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3381548Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3382673Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3383013Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3384082Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3384360Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3384629Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3385776Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3386125Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3387238Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3387539Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3387730Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3388027Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3389126Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3389436Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3390599Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3390906Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3391175Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3392311Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3392633Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3393755Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3394056Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3394276Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3394411Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3395073Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3395227Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3395426Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3395625Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3395848Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3396069Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3396456Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3396860Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3397154Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3397447Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3398548Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3398925Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3399267Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3400456Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3400808Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3401495Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3402153Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3402554Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3403962Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3404296Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3404715Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3404987Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3405240Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3405653Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3405833Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3406080Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3406287Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3406520Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3407037Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3407231Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3407372Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3407383Z 2022-11-23T01:08:10.3407791Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.3408093Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3408482Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3409049Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3409365Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3409886Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3410158Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3410480Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3411234Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3411562Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3411856Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3412164Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3413091Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3413365Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3413660Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3414768Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3415144Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3416410Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3416703Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3416946Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3417912Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3418176Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3418401Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3418896Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3419090Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3419287Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3419482Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3419667Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3420171Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3420336Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3420448Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3420460Z 2022-11-23T01:08:10.3423141Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3423316Z ================== 2022-11-23T01:08:10.3424710Z ================== 2022-11-23T01:08:10.3424991Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3425277Z  Write of size 4 at 0x7b9400013f14 by thread T2: 2022-11-23T01:08:10.3428415Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3428828Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3429168Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3429674Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3430134Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3430574Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3430773Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3431119Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3431334Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3431342Z 2022-11-23T01:08:10.3431645Z  Previous write of size 4 at 0x7b9400013f14 by main thread: 2022-11-23T01:08:10.3434715Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:10.3435100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3435449Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3435882Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3436334Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3436632Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3436945Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3437313Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3437623Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3438719Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3439100Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3439446Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3440080Z #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+0x6562cde) 2022-11-23T01:08:10.3440684Z #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+0x20cf997) 2022-11-23T01:08:10.3441066Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3441379Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3442136Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3442419Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3442639Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3443732Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3444082Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3444756Z #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+0xca56e8) 2022-11-23T01:08:10.3445332Z #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+0x2974180) 2022-11-23T01:08:10.3445739Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3447063Z #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+0x57a0418) 2022-11-23T01:08:10.3447497Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3447888Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3448196Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3448476Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3448924Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3449104Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3449306Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3449526Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3449797Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3450369Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3450562Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3450715Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3450724Z 2022-11-23T01:08:10.3451148Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3451442Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3451653Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3451929Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3452281Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3453105Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3453610Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3454050Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3454565Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3456539Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3457673Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3458200Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3460174Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3460688Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3460985Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3461536Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3463521Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3464141Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3466138Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3466593Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3466867Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3468038Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3468385Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3469479Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3469866Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3470064Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3470365Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3471457Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3471794Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3472882Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3473161Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3473431Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3474582Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3474902Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3476024Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3476353Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3476553Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3476687Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3477340Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3477496Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3477693Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3477893Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3478119Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3478338Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3478730Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3479130Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3479344Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3479542Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3480317Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3480544Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3480750Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3481461Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3481686Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3482112Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3482494Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3482858Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3484192Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3484559Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3485048Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3485367Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3485661Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3486145Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3486351Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3486549Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3486759Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3486996Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3487549Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3487770Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3487943Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3487953Z 2022-11-23T01:08:10.3488343Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.3488622Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3489018Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3489594Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3489896Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3490418Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3490677Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3491028Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3491778Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3492149Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3492456Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3492810Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3493778Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3494126Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3494500Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3495751Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3496112Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3497477Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3497789Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3498042Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3499154Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3499425Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3499690Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3500153Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3500347Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3500552Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3500762Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3501031Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3501583Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3501801Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3501967Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3501975Z 2022-11-23T01:08:10.3505073Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3505265Z ================== 2022-11-23T01:08:10.3505363Z ================== 2022-11-23T01:08:10.3505673Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3506075Z  Write of size 4 at 0x7b9400013540 by thread T3: 2022-11-23T01:08:10.3509511Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3509932Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3510208Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3510503Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3510942Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3511242Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3511417Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3511705Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3511871Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3511878Z 2022-11-23T01:08:10.3512103Z  Previous write of size 4 at 0x7b9400013540 by main thread: 2022-11-23T01:08:10.3514318Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3514608Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3514890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3515203Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3515520Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3515742Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3515972Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3516238Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3516479Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3517260Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3517550Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3517839Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3518254Z #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+0x6562cde) 2022-11-23T01:08:10.3518679Z #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+0x20cf997) 2022-11-23T01:08:10.3518920Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3519150Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3519967Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3520223Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3520456Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3521202Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3521456Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3521913Z #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+0xca56e8) 2022-11-23T01:08:10.3522362Z #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+0x2974180) 2022-11-23T01:08:10.3522654Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3523539Z #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+0x57a0418) 2022-11-23T01:08:10.3523849Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3524136Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3524341Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3524495Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3524776Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3524920Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3525068Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3525223Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3525419Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3525827Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3526030Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3526199Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3526212Z 2022-11-23T01:08:10.3526638Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3526903Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3527141Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3527482Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3527889Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3528603Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3529112Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3529663Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3530073Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3531885Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3532766Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3533269Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3535092Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3535717Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3536025Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3536361Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3538107Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3538643Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3540414Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3541102Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3541639Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3543581Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3544184Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3546063Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3546521Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3546883Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3547248Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3548538Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3548917Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3550124Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3550435Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3550734Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3551931Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3552323Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3553478Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3553862Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3554086Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3554260Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3554928Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3555119Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3555344Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3555573Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3555836Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3556101Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3556516Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3556964Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3557208Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3557434Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3558241Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3558485Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3558722Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3559526Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3559781Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3560234Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3560647Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3560913Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3561823Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3562093Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3562402Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3562607Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3562796Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3563082Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3563234Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3563384Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3563544Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3563720Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3564081Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3564187Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3564309Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3564317Z 2022-11-23T01:08:10.3564593Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3564794Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3565043Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3565400Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3565603Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3565926Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3566131Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3566353Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3566794Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3567044Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3567276Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3567495Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3568110Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3568331Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3568609Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3569298Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3569549Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3589640Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3590023Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3590273Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3591249Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3591521Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3591798Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3592127Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3592245Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3592364Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3592484Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3592732Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3593050Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3593210Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3593290Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3593297Z 2022-11-23T01:08:10.3595029Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3595102Z ================== 2022-11-23T01:08:10.3595168Z ================== 2022-11-23T01:08:10.3595325Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3595498Z  Write of size 4 at 0x7b9400012190 by thread T1: 2022-11-23T01:08:10.3597673Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3597947Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3598173Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3598455Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3598776Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3599045Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3599218Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3599445Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3599570Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3599589Z 2022-11-23T01:08:10.3599763Z  Previous write of size 4 at 0x7b9400012190 by main thread: 2022-11-23T01:08:10.3601933Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3602194Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3602415Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3602701Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3602987Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3603181Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3603383Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3603611Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3603820Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3604563Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3604828Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3605051Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3605437Z #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+0x6562cde) 2022-11-23T01:08:10.3605827Z #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+0x20cf997) 2022-11-23T01:08:10.3606044Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3606244Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3606996Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3607203Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3607410Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3608155Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3608381Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3608808Z #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+0xca56e8) 2022-11-23T01:08:10.3609219Z #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+0x2974180) 2022-11-23T01:08:10.3609461Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3610326Z #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+0x57a0418) 2022-11-23T01:08:10.3610540Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3610800Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3610975Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3611138Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3611391Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3611508Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3611626Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3611769Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3612000Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3612400Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3612590Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3612722Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3612730Z 2022-11-23T01:08:10.3613149Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3613438Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3613720Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3613991Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3614360Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3615193Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3615671Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3616160Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3616635Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3618656Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3619834Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3620382Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3621481Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3621803Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3621989Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3622261Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3623376Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3623684Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3624773Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3625052Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3625349Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3626493Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3626815Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3627921Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3628211Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3628405Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3628741Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3630534Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3631160Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3633158Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3633544Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3633818Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3634991Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3635341Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3636441Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3636733Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3636926Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3637077Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3637717Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3637872Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3638065Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3638266Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3638500Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3638717Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3639127Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3639539Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3639755Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3639954Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3640707Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3640914Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3641122Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3641829Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3642069Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3642496Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3642885Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3643161Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3644018Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3644269Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3644528Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3644706Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3644871Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3645124Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3645240Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3645360Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3645482Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3645629Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3645944Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3646053Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3646148Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3646154Z 2022-11-23T01:08:10.3646386Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.3646553Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3646774Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3647094Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3647267Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3647562Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3647717Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3647908Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3648342Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3648561Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3648772Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3648964Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3649522Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3649685Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3649912Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3650711Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3650979Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3652204Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3652484Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3652698Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3653647Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3653874Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3654180Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3654605Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3654865Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3655061Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3655258Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3655491Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3656003Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3656192Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3656340Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3656349Z 2022-11-23T01:08:10.3659341Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3659464Z ================== 2022-11-23T01:08:10.3659575Z ================== 2022-11-23T01:08:10.3659892Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3660175Z  Write of size 4 at 0x7b9400013f18 by thread T2: 2022-11-23T01:08:10.3664011Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3664519Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3664745Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3665115Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3665562Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3665994Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3666226Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3666599Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3666819Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3666830Z 2022-11-23T01:08:10.3667156Z  Previous write of size 4 at 0x7b9400013f18 by main thread: 2022-11-23T01:08:10.3670707Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:10.3671136Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3671484Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3671958Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3672436Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3672824Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3673169Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3673537Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3673974Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3675144Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3675550Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3675930Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3676530Z #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+0x6562cde) 2022-11-23T01:08:10.3677165Z #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+0x20cf997) 2022-11-23T01:08:10.3677500Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3677799Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3678798Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3679055Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3679373Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3680582Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3680997Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3681691Z #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+0xca56e8) 2022-11-23T01:08:10.3682316Z #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+0x2974180) 2022-11-23T01:08:10.3682559Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3683784Z #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+0x57a0418) 2022-11-23T01:08:10.3684121Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3684518Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3684794Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3685050Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3685445Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3685628Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3685815Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3686002Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3686241Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3686789Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3686976Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3687167Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3687179Z 2022-11-23T01:08:10.3687550Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3687808Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3688006Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3688253Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3688574Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3689200Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3689586Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3690011Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3690418Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3692072Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3693048Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3693569Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3695198Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3695578Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3695769Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3696045Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3697630Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3698112Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3699975Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3700474Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3700868Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3702671Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3703100Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3704553Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3705087Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3705435Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3706026Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3708014Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3708563Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3710127Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3710526Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3710938Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3712711Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3713235Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3714638Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3715047Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3715349Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3715522Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3716496Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3716758Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3717089Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3717484Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3717903Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3718268Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3718821Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3719456Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3719795Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3720149Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3721483Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3721859Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3722210Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3723384Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3723781Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3724629Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3725173Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3725655Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3726817Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3727032Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3727290Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3727469Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3727633Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3727888Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3728007Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3728128Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3728249Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3728395Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3728705Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3728813Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3728906Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3728913Z 2022-11-23T01:08:10.3729159Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.3729330Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3729553Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3729870Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3730044Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3730374Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3730553Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3730743Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3731153Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3731369Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3731558Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3731749Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3732308Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3732471Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3732700Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3733356Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3733563Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3734334Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3734512Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3734654Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3735251Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3735423Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3735571Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3735828Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3735945Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3736060Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3736180Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3736327Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3736639Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3736758Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3736848Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3736854Z 2022-11-23T01:08:10.3738661Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3738734Z ================== 2022-11-23T01:08:10.3738799Z ================== 2022-11-23T01:08:10.3738969Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3739135Z  Write of size 4 at 0x7b9400013f1c by thread T2: 2022-11-23T01:08:10.3741365Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3741658Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3741878Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3742161Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3742451Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3742721Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3742861Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3743083Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3743220Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3743226Z 2022-11-23T01:08:10.3743415Z  Previous write of size 4 at 0x7b9400013f1c by main thread: 2022-11-23T01:08:10.3745544Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3745805Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3746027Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3746343Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3746669Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3746859Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3747061Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3747288Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3747499Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3748209Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3748447Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3748664Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3749051Z #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+0x6562cde) 2022-11-23T01:08:10.3749440Z #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+0x20cf997) 2022-11-23T01:08:10.3749731Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3749937Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3750992Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3751266Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3751585Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3752456Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3752815Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3753481Z #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+0xca56e8) 2022-11-23T01:08:10.3754044Z #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+0x2974180) 2022-11-23T01:08:10.3754407Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3755523Z #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+0x57a0418) 2022-11-23T01:08:10.3755803Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3756189Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3756461Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3756717Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3757112Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3757234Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3757412Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3757593Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3757811Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3758127Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3758300Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3758453Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3758462Z 2022-11-23T01:08:10.3758746Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3758972Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3759130Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3759395Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3759601Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3760195Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3760613Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3760968Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3761368Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3762803Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3763608Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3764029Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3765541Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3765950Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3766260Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3766608Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3767953Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3768440Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3769562Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3769916Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3770190Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3771516Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3771966Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3773536Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3774027Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3774323Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3774785Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3776494Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3776968Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3778738Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3779266Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3779720Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3781789Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3782392Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3784138Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3784431Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3784625Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3784771Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3785448Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3785639Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3785836Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3786036Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3786268Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3786488Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3786870Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3787258Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3787474Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3787673Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3788428Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3788633Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3788838Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3789647Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3789890Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3790348Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3790736Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3790975Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3791842Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3792053Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3792317Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3792494Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3792657Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3792914Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3793030Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3793148Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3793268Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3793419Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3793721Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3793839Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3793930Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3793937Z 2022-11-23T01:08:10.3794180Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.3794348Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3794596Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3794915Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3795117Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3795411Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3795564Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3795757Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3796167Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3796387Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3796658Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3796859Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3797740Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3797991Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3798363Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3799541Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3799928Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3801123Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3801477Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3801726Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3802786Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3803027Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3803302Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3803770Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3803979Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3804198Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3804418Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3804687Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3805207Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3805329Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3805424Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3805431Z 2022-11-23T01:08:10.3808453Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3808582Z ================== 2022-11-23T01:08:10.3808697Z ================== 2022-11-23T01:08:10.3808984Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3809279Z  Write of size 4 at 0x7b9400012194 by thread T1: 2022-11-23T01:08:10.3812349Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3812644Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3812875Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3813373Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3813867Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3814136Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3814292Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3814552Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3814689Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3814695Z 2022-11-23T01:08:10.3814883Z  Previous write of size 4 at 0x7b9400012194 by main thread: 2022-11-23T01:08:10.3817696Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3817959Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3818207Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3818588Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3818968Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3819312Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3819686Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3820103Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3820487Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3821754Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3822188Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3822563Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3823229Z #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+0x6562cde) 2022-11-23T01:08:10.3823942Z #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+0x20cf997) 2022-11-23T01:08:10.3824333Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3824771Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3826136Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3826384Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3826592Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3827301Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3827528Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3827956Z #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+0xca56e8) 2022-11-23T01:08:10.3828346Z #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+0x2974180) 2022-11-23T01:08:10.3828589Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3829451Z #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+0x57a0418) 2022-11-23T01:08:10.3829782Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3830044Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3830256Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3830406Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3830659Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3830774Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3830895Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3831016Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3831162Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3831474Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3831594Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3831685Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3831691Z 2022-11-23T01:08:10.3831928Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3832083Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3832207Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3832371Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3832574Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3833018Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3833289Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3833556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3833818Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3834927Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3835579Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3835882Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3836922Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3837195Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3837383Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3837656Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3838803Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3839136Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3840203Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3840481Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3840750Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3841897Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3842220Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3843349Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3843663Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3843857Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3844152Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3845344Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3845851Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3847462Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3847939Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3848364Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3850155Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3850684Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3852401Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3852928Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3853235Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3853510Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3854598Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3854833Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3855146Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3855485Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3855892Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3856223Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3856848Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3857524Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3857929Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3858230Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3859508Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3859860Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3860205Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3861382Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3861760Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3862366Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3862824Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3863125Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3864131Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3864346Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3864605Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3864783Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3864946Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3865198Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3865314Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3865433Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3865553Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3865699Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3866051Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3866209Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3866291Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3866298Z 2022-11-23T01:08:10.3866541Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.3866710Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3866931Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3867251Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3867426Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3867722Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3867877Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3868070Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3868484Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3868707Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3868893Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3869086Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3869727Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3869894Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3870119Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3870783Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3871023Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3871789Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3871998Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3872141Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3872716Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3872864Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3873019Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3873275Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3873390Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3873510Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3873630Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3873777Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3874089Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3874207Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3874345Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3874351Z 2022-11-23T01:08:10.3876018Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3876131Z ================== 2022-11-23T01:08:10.3876196Z ================== 2022-11-23T01:08:10.3876364Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3876526Z  Write of size 4 at 0x7b9400013544 by thread T3: 2022-11-23T01:08:10.3878697Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3878959Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3879181Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3879465Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3879758Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3880027Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3880167Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3880393Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3880534Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3880542Z 2022-11-23T01:08:10.3880728Z  Previous write of size 4 at 0x7b9400013544 by main thread: 2022-11-23T01:08:10.3882871Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:10.3883162Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3883386Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3883670Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3883957Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3884149Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3884355Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3884587Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:10.3884803Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3885840Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.3886228Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.3886589Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3887221Z #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+0x6562cde) 2022-11-23T01:08:10.3887874Z #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+0x20cf997) 2022-11-23T01:08:10.3888269Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3888570Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3889781Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3890112Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3890426Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3891483Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3891715Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3892185Z #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+0xca56e8) 2022-11-23T01:08:10.3892628Z #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+0x2974180) 2022-11-23T01:08:10.3892874Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3893771Z #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+0x57a0418) 2022-11-23T01:08:10.3894020Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3894281Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3894445Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3894610Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3894867Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3894982Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3895102Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3895222Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3895372Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3895686Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3895805Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3895900Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3895907Z 2022-11-23T01:08:10.3896146Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2022-11-23T01:08:10.3896304Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3896427Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3896590Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3896797Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3897358Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3897775Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3898136Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3898657Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3900039Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3901132Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3901599Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3902869Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3903266Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3903560Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.3903998Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.3905679Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.3906031Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3907238Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3907605Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3907957Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3909773Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3910276Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3911751Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3912209Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3912446Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3912928Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.3914404Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.3914765Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.3916045Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.3916391Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.3916716Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.3918004Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.3918390Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.3919984Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.3920457Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.3920738Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.3920902Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.3921670Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.3921830Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.3922023Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.3922222Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.3922459Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.3922677Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.3923063Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.3923452Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.3923669Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.3923872Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3924661Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3924897Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3925102Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3925813Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.3926051Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.3926479Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.3926867Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.3927107Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.3927962Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3928175Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3928433Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.3928610Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.3928798Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.3929056Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3929198Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3929317Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3929437Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3929585Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3929896Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3930004Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3930098Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3930106Z 2022-11-23T01:08:10.3930345Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3930511Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3930732Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3931051Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3931225Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3931519Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3931673Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3931862Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3932277Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3932494Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3932680Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3932876Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3933432Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3933599Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3933825Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3934509Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3934747Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3935514Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3935695Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3935836Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3936410Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3936559Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3936707Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3936958Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3937073Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3937192Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3937315Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3937461Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3937772Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3937894Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3937985Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3937991Z 2022-11-23T01:08:10.3939815Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:10.3939935Z ================== 2022-11-23T01:08:10.3939999Z ================== 2022-11-23T01:08:10.3940172Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3940338Z  Write of size 1 at 0x7b7400032eed by main thread: 2022-11-23T01:08:10.3942538Z  #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+0x8718e1d) 2022-11-23T01:08:10.3942801Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3943020Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3943298Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3943587Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3943780Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.3943980Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.3944257Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.3944497Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.3945314Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.3945551Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.3945753Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.3946508Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.3946719Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.3946925Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.3948043Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.3948437Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.3950020Z #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+0x57a0418) 2022-11-23T01:08:10.3950406Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3950745Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.3951205Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3951383Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3951540Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3951721Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3951978Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3952562Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3952760Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3952850Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3952868Z 2022-11-23T01:08:10.3953088Z  Previous write of size 1 at 0x7b7400032eed by thread T3: 2022-11-23T01:08:10.3955369Z  #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+0x8718e1d) 2022-11-23T01:08:10.3955633Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3955862Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3956146Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3956435Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3956745Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3956887Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3957140Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3957277Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3957283Z 2022-11-23T01:08:10.3957501Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.3957655Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.3957776Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.3957936Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.3958139Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.3958577Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.3958846Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.3959113Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.3959444Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.3960571Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.3961441Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.3961869Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.3963473Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.3963858Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.3964097Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.3964969Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.3965215Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.3965498Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.3966844Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.3967328Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.3968615Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.3969058Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.3969349Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.3969819Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3970026Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3970232Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3970444Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3970692Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3971271Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3971484Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3971657Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3971669Z 2022-11-23T01:08:10.3972087Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.3972402Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.3972789Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.3973372Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.3973694Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.3974232Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.3974512Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.3974862Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.3975629Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.3976034Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.3976441Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.3976793Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.3977862Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.3978166Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.3978729Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.3979927Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.3980321Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.3981741Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.3982065Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.3982321Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.3983385Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.3983649Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.3983926Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.3984398Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.3984712Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.3984923Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.3985138Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.3985504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.3986083Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.3986299Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.3986462Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.3986474Z 2022-11-23T01:08:10.3989687Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.3989827Z ================== 2022-11-23T01:08:10.3989940Z ================== 2022-11-23T01:08:10.3990240Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.3990564Z  Write of size 1 at 0x7b7400032c76 by thread T3: 2022-11-23T01:08:10.3994691Z  #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+0x8718da5) 2022-11-23T01:08:10.3995172Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.3995583Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.3996196Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.3996732Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.3997277Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.3997530Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.3997941Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.3998180Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.3998194Z 2022-11-23T01:08:10.3998520Z  Previous write of size 1 at 0x7b7400032c76 by thread T1: 2022-11-23T01:08:10.4002626Z  #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+0x8718da5) 2022-11-23T01:08:10.4003106Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4003518Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4004017Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4004539Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4005023Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4005269Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4005753Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4005996Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4006008Z 2022-11-23T01:08:10.4006454Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4006762Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4006964Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4007256Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4007632Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4008447Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4008945Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4009430Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4009926Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4011923Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4012970Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4013594Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4015525Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4016086Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4016420Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4017612Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4017949Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4018335Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4019933Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4020384Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4021999Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4022432Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4022738Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4023214Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4023418Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4023624Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4023844Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4024115Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4024700Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4024897Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4025060Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4025073Z 2022-11-23T01:08:10.4025490Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4025814Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4026209Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4026790Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4027116Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4027643Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4027928Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4028271Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4029047Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4029445Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4029857Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4030202Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4031289Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4031631Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4032052Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4033265Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4033652Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4035012Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4035324Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4035581Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4036623Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4036884Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4037163Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4037596Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4037802Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4038014Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4038237Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4038491Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4039143Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4039356Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4039592Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4039602Z 2022-11-23T01:08:10.4039987Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4040300Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4040691Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4041270Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4041587Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4042109Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4042404Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4042743Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4043508Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4043911Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4044257Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4044605Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4045631Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4045931Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4046357Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4047586Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4048048Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4049442Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4049855Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4050094Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4051159Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4051427Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4051701Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4052150Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4052356Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4052572Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4052779Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4053045Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4053613Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4053838Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4053998Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4054011Z 2022-11-23T01:08:10.4057129Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4057252Z ================== 2022-11-23T01:08:10.4057446Z ================== 2022-11-23T01:08:10.4057756Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4058076Z  Write of size 1 at 0x7b7400032c76 by thread T2: 2022-11-23T01:08:10.4062293Z  #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+0x8718da5) 2022-11-23T01:08:10.4062853Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4063254Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4063756Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4064275Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4064759Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4065011Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4065417Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4065643Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4065660Z 2022-11-23T01:08:10.4066011Z  Previous write of size 1 at 0x7b7400032c76 by thread T1: 2022-11-23T01:08:10.4070286Z  #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+0x8718da5) 2022-11-23T01:08:10.4070797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4071196Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4071706Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4072246Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4072729Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4072990Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4073384Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4073634Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4073644Z 2022-11-23T01:08:10.4074056Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4074358Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4074582Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4074880Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4075240Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4076061Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4076541Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4077026Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4077585Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4079388Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4080438Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4080850Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4082470Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4082888Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4083122Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4084145Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4084463Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4084757Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4085797Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4086134Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4087439Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4087679Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4087847Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4088107Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4088224Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4088346Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4088468Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4088617Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4088934Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4089053Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4089147Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4089154Z 2022-11-23T01:08:10.4089460Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.4089620Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4089848Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4090202Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4090377Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4090676Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4090832Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4091023Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4091433Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4091655Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4091844Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4092041Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4092600Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4092764Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4092992Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4093652Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4093863Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4094674Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4094876Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4095017Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4095594Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4095741Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4095894Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4096147Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4096249Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4096367Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4096487Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4096635Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4096949Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4097071Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4097163Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4097169Z 2022-11-23T01:08:10.4097380Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4097547Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4097766Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4098085Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4098256Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4098736Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4098884Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4099076Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4099550Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4099770Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4100004Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4100195Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4100755Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4100919Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4101147Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4101811Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4102033Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4102809Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4102984Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4103128Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4103705Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4103851Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4104035Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4104292Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4104437Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4104558Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4104667Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4104817Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4105130Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4105249Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4105347Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4105353Z 2022-11-23T01:08:10.4107031Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4107108Z ================== 2022-11-23T01:08:10.4108000Z ================== 2022-11-23T01:08:10.4108173Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4108353Z  Write of size 1 at 0x7b7400032eec by thread T1: 2022-11-23T01:08:10.4110637Z  #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+0x8718da5) 2022-11-23T01:08:10.4110938Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4111162Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4111444Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4111783Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4112057Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4112200Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4112423Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4112564Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4112571Z 2022-11-23T01:08:10.4112759Z  Previous write of size 1 at 0x7b7400032eec by main thread: 2022-11-23T01:08:10.4114920Z  #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+0x8718da5) 2022-11-23T01:08:10.4115200Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4115420Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4115705Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4115994Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4116216Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4116422Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4116639Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4116880Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4117677Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.4117898Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.4118102Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4118856Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4119067Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4119273Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4120044Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4120293Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4121195Z #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+0x57a0418) 2022-11-23T01:08:10.4121433Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4121607Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4121864Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4121982Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4122101Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4122209Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4122356Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4122670Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4122792Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4122887Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4122892Z 2022-11-23T01:08:10.4123114Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4123283Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4123407Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4123570Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4123778Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4124224Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4124493Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4124758Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4125024Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4126125Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4126790Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4127096Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4128129Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4128416Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4128583Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4129284Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4129463Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4129696Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4130469Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4130715Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4131566Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4131780Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4131944Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4132201Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4132317Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4132439Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4132559Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4132706Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4133022Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4133140Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4133234Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4133240Z 2022-11-23T01:08:10.4133455Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4133609Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4133856Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4134173Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4134385Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4134678Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4134831Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4135023Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4135431Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4135652Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4135838Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4136031Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4136590Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4136754Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4136980Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4137640Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4137852Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4138825Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4139042Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4139185Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4139766Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4139913Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4140065Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4140322Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4140437Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4140545Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4140693Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4140840Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4141154Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4141272Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4141365Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4141372Z 2022-11-23T01:08:10.4143053Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4143126Z ================== 2022-11-23T01:08:10.4143190Z ================== 2022-11-23T01:08:10.4143356Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4143529Z  Write of size 1 at 0x7b7400032ef1 by thread T1: 2022-11-23T01:08:10.4145709Z  #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+0x8718e1d) 2022-11-23T01:08:10.4145999Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4146222Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4146505Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4146793Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4147062Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4147204Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4147435Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4147572Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4147577Z 2022-11-23T01:08:10.4147760Z  Previous write of size 1 at 0x7b7400032ef1 by thread T3: 2022-11-23T01:08:10.4150000Z  #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+0x8718e1d) 2022-11-23T01:08:10.4150262Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4150510Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4150790Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4151079Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4151346Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4151487Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4151709Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4151842Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4151848Z 2022-11-23T01:08:10.4152067Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4152235Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4152360Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4152523Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4152727Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4153174Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4153443Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4153706Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4153973Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4155072Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4155736Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4156046Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4157078Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4157370Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4157547Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4158191Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4158369Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4158601Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4159379Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4159652Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4160507Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4160732Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4160885Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4161144Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4161263Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4161381Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4161501Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4161650Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4161963Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4162083Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4162177Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4162183Z 2022-11-23T01:08:10.4162395Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4162561Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4162770Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4163086Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4163286Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4163580Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4163761Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4163952Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4164420Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4164644Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4164830Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4165021Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4165582Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4165746Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4165974Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4166633Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4166846Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4167627Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4167806Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4167977Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4168552Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4168734Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4168887Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4169142Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4169258Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4169367Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4169488Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4169635Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4169947Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4170066Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4170158Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4170164Z 2022-11-23T01:08:10.4170376Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4170543Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4170763Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4171084Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4171257Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4171552Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4171706Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4171898Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4172294Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4172515Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4172701Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4172894Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4173475Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4173666Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4173892Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4174565Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4174774Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4175546Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4175723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4175866Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4176441Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4176586Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4176737Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4176993Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4177109Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4177228Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4177348Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4177487Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4177827Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4177975Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4178066Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4178071Z 2022-11-23T01:08:10.4179905Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.4179981Z ================== 2022-11-23T01:08:10.4180045Z ================== 2022-11-23T01:08:10.4180215Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4180391Z  Write of size 1 at 0x7b7400032c77 by thread T3: 2022-11-23T01:08:10.4182563Z  #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+0x8718e1d) 2022-11-23T01:08:10.4182841Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4183068Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4183341Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4183693Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4183963Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4184128Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4184351Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4184487Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4184493Z 2022-11-23T01:08:10.4184679Z  Previous write of size 1 at 0x7b7400032c77 by thread T1: 2022-11-23T01:08:10.4186836Z  #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+0x8718e1d) 2022-11-23T01:08:10.4187109Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4187333Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4187615Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4187906Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4188172Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4188316Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4188540Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4188663Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4188682Z 2022-11-23T01:08:10.4188939Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4189108Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4189233Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4189394Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4189702Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4190148Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4190420Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4190689Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4190958Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4192053Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4192680Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4192990Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4194074Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4194376Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4194553Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4195207Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4195389Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4195599Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4196382Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4196628Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4197530Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4197747Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4197941Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4198199Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4198317Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4198426Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4198547Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4198700Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4199013Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4199135Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4199230Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4199235Z 2022-11-23T01:08:10.4199448Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4199616Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4199837Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4200158Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4200333Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4200630Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4200783Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4200973Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4201383Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4201590Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4201783Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4201979Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4202561Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4202740Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4202953Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4203665Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4203874Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4204645Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4204823Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4204965Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4205538Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4205684Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4205837Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4206096Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4206210Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4206331Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4206451Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4206597Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4206899Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4207017Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4207109Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4207140Z 2022-11-23T01:08:10.4207351Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4207516Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4207735Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4208078Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4208253Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4208549Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4208699Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4208890Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4209295Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4209512Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4209699Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4209891Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4210450Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4210616Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4210843Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4211502Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4211714Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4212512Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4212721Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4212862Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4213438Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4213584Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4213736Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4213988Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4214102Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4214220Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4214342Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4214488Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4214800Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4214921Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4215011Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4215016Z 2022-11-23T01:08:10.4216674Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.4216747Z ================== 2022-11-23T01:08:10.4216811Z ================== 2022-11-23T01:08:10.4216967Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4217143Z  Write of size 1 at 0x7b7400032c77 by thread T2: 2022-11-23T01:08:10.4219516Z  #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+0x8718e1d) 2022-11-23T01:08:10.4219815Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4220036Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4220320Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4220608Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4220879Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4221025Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4221250Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4221385Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4221392Z 2022-11-23T01:08:10.4221568Z  Previous write of size 1 at 0x7b7400032c77 by thread T1: 2022-11-23T01:08:10.4223788Z  #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+0x8718e1d) 2022-11-23T01:08:10.4224085Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4224307Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4224591Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4224880Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4225148Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4225287Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4225513Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4225651Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4225657Z 2022-11-23T01:08:10.4225877Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4226042Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4226156Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4226314Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4226519Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4226968Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4227240Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4227507Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4227773Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4228875Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4229525Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4229899Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4230945Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4231221Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4231402Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4232077Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4232260Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4232497Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4233292Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4233537Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4234397Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4234611Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4234776Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4235032Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4235152Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4235274Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4235398Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4235545Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4235854Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4235963Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4236056Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4236061Z 2022-11-23T01:08:10.4236274Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.4236440Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4236691Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4237005Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4237213Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4237507Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4237659Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4237848Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4238261Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4238481Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4238667Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4238857Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4239415Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4239578Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4239804Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4240463Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4240674Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4241471Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4241648Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4241822Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4242398Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4242544Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4242695Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4242953Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4243068Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4243186Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4243305Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4243450Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4243759Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4243883Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4243974Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4243979Z 2022-11-23T01:08:10.4244179Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4244345Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4244563Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4244878Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4245051Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4245351Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4245504Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4245693Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4246097Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4246316Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4246529Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4246719Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4247278Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4247468Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4247697Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4248357Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4248567Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4249354Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4249532Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4249661Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4250251Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4250399Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4250550Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4250791Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4250906Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4251053Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4251174Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4251322Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4251660Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4251777Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4251869Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4251874Z 2022-11-23T01:08:10.4253533Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.4253604Z ================== 2022-11-23T01:08:10.4253668Z ================== 2022-11-23T01:08:10.4253835Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4254018Z  Write of size 1 at 0x7b7400032eee by main thread: 2022-11-23T01:08:10.4256184Z  #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+0x8718e64) 2022-11-23T01:08:10.4256447Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4256667Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4256975Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4257263Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4257481Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4257683Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4257907Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4258121Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4259044Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.4259270Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.4259472Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4260245Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4260451Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4260658Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4261481Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4261767Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4262626Z #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+0x57a0418) 2022-11-23T01:08:10.4262841Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4263004Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4263258Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4263373Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4263492Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4263616Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4263762Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4264075Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4264195Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4264288Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4264294Z 2022-11-23T01:08:10.4264485Z  Previous write of size 1 at 0x7b7400032eee by thread T3: 2022-11-23T01:08:10.4266683Z  #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+0x8718e64) 2022-11-23T01:08:10.4266945Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4267196Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4267475Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4267766Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4268032Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4268174Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4268396Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4268536Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4268541Z 2022-11-23T01:08:10.4268762Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4268928Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4269041Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4269200Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4269405Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4269957Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4270230Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4270494Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4270764Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4271881Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4272541Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4272851Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4273897Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4274177Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4274354Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4275005Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4275187Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4275422Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4276216Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4276486Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4277353Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4277566Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4277734Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4277991Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4278109Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4278231Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4278354Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4278506Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4278820Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4278927Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4279024Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4279030Z 2022-11-23T01:08:10.4279243Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4279412Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4279636Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4279978Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4280157Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4280454Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4280636Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4280830Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4281237Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4281460Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4281643Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4281838Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4282395Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4282561Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4282788Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4283447Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4283656Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4284429Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4284635Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4284781Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4285357Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4285528Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4285678Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4285936Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4286049Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4286166Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4286286Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4286431Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4286745Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4286863Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4286956Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4286962Z 2022-11-23T01:08:10.4288627Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.4288698Z ================== 2022-11-23T01:08:10.4288765Z ================== 2022-11-23T01:08:10.4288934Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4289095Z  Write of size 1 at 0x7b7400033160 by thread T1: 2022-11-23T01:08:10.4291297Z  #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+0x8718e64) 2022-11-23T01:08:10.4291582Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4291810Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4292095Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4292384Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4292655Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4292795Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4293022Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4293157Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4293162Z 2022-11-23T01:08:10.4293348Z  Previous write of size 1 at 0x7b7400033160 by thread T3: 2022-11-23T01:08:10.4295497Z  #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+0x8718e64) 2022-11-23T01:08:10.4295788Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4296014Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4296294Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4296608Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4296874Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4297016Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4297238Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4297375Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4297380Z 2022-11-23T01:08:10.4297597Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4297762Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4297885Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4298032Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4298235Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4298812Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4299090Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4299355Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4299624Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4300752Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4301419Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4301741Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4302773Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4303050Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4303227Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4303878Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4304061Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4304269Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4305094Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4305375Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4306232Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4306448Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4306616Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4306871Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4306988Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4307110Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4307229Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4307376Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4307689Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4307806Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4307888Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4307894Z 2022-11-23T01:08:10.4308112Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4308278Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4308496Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4308821Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4308993Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4309311Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4309462Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4309729Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4310172Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4310391Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4310578Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4310771Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4311330Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4311499Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4311725Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4312386Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4312599Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4313365Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4313548Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4313688Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4314295Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4314471Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4314625Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4314881Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4314996Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4315116Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4315239Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4315389Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4315701Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4315821Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4315912Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4315918Z 2022-11-23T01:08:10.4316126Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4316279Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4316501Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4316821Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4316993Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4317290Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4317440Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4317629Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4318033Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4318257Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4318445Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4318636Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4319230Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4319396Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4319649Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4320304Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4320512Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4321295Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4321472Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4321618Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4322191Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4322335Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4322488Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4322741Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4322847Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4322964Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4323082Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4323229Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4323540Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4323658Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4323777Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4323783Z 2022-11-23T01:08:10.4325446Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.4325542Z ================== 2022-11-23T01:08:10.4325610Z ================== 2022-11-23T01:08:10.4325780Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4325957Z  Write of size 1 at 0x7b7400032c78 by thread T3: 2022-11-23T01:08:10.4328127Z  #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+0x8718e64) 2022-11-23T01:08:10.4328388Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4328611Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4328892Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4329188Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4329458Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4329627Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4329852Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4330016Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4330022Z 2022-11-23T01:08:10.4330204Z  Previous write of size 1 at 0x7b7400032c78 by thread T1: 2022-11-23T01:08:10.4332380Z  #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+0x8718e64) 2022-11-23T01:08:10.4332640Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4332862Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4333145Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4333433Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4333702Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4333842Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4334064Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4334203Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4334209Z 2022-11-23T01:08:10.4334428Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4334596Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4334718Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4334876Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4335106Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4335549Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4335845Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4336116Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4336383Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4337455Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4338095Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4338399Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4339816Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4340151Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4340318Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4340983Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4341162Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4341368Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4342150Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4342394Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4343252Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4343494Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4343658Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4343916Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4344058Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4344177Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4344298Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4344446Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4344762Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4344882Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4344975Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4344981Z 2022-11-23T01:08:10.4345202Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4345358Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4345578Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4345894Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4346065Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4346360Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4346513Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4346706Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4347108Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4347330Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4347517Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4347712Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4348263Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4348429Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4348682Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4349349Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4349640Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4350433Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4350613Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4350757Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4351334Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4351480Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4351630Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4351890Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4352006Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4352115Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4352237Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4352385Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4352701Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4352817Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4352910Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4352915Z 2022-11-23T01:08:10.4353127Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4353292Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4353545Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4353861Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4354060Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4354356Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4354508Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4354688Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4355098Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4355319Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4355505Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4355698Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4356263Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4356431Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4356655Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4357327Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4357538Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4358333Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4358512Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4358684Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4359260Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4359406Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4359555Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4359813Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4359929Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4360048Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4360169Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4360305Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4360618Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4360735Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4360830Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4360835Z 2022-11-23T01:08:10.4362496Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.4362573Z ================== 2022-11-23T01:08:10.4362638Z ================== 2022-11-23T01:08:10.4362804Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4362978Z  Write of size 1 at 0x7b7400032c78 by thread T2: 2022-11-23T01:08:10.4365189Z  #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+0x8718e64) 2022-11-23T01:08:10.4365476Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4365702Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4365988Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4366278Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4366549Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4366697Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4366921Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4367058Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4367064Z 2022-11-23T01:08:10.4367251Z  Previous write of size 1 at 0x7b7400032c78 by thread T1: 2022-11-23T01:08:10.4369437Z  #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+0x8718e64) 2022-11-23T01:08:10.4369709Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4369957Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4370236Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4370529Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4370796Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4370938Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4371162Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4371286Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4371292Z 2022-11-23T01:08:10.4371509Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4371673Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4371832Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4372057Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4372319Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4372936Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4373319Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4373703Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4374108Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4375628Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4376625Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4377085Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4378645Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4379052Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4379316Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4380278Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4380547Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4380923Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4382013Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4382424Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4383326Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4383621Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4383856Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4384207Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4384365Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4384517Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4384683Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4384899Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4385345Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4385509Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4385652Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4385665Z 2022-11-23T01:08:10.4385971Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.4386209Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4386531Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4386974Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4387273Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4387692Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4387956Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4388213Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4388800Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4389117Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4389380Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4389654Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4390358Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4390593Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4390918Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4391842Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4392150Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4393241Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4393504Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4393752Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4394573Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4394827Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4395038Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4395408Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4395561Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4395719Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4395894Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4396095Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4396540Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4396714Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4396855Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4396864Z 2022-11-23T01:08:10.4397195Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4397432Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4397750Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4398217Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4398485Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4398900Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4399107Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4399361Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4399959Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4400294Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4400544Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4400818Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4401644Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4401919Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4402236Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4403190Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4403495Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4404597Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4404881Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4405057Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4405730Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4405923Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4406090Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4406486Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4406631Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4406783Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4406932Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4407110Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4407548Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4407739Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4407935Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4407942Z 2022-11-23T01:08:10.4410146Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.4410249Z ================== 2022-11-23T01:08:10.4410342Z ================== 2022-11-23T01:08:10.4410554Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4410720Z  Write of size 1 at 0x7b7400033161 by main thread: 2022-11-23T01:08:10.4412981Z  #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+0x8718ed1) 2022-11-23T01:08:10.4413267Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4413569Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4413880Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4414246Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4414469Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4414700Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4414987Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4415228Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4416036Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.4416303Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.4416541Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4417635Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4417994Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4418352Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4419874Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4420448Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4422012Z #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+0x57a0418) 2022-11-23T01:08:10.4422406Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4422677Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4423058Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4423288Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4423465Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4423700Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4423988Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4424457Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4424679Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4424831Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4424841Z 2022-11-23T01:08:10.4425083Z  Previous write of size 1 at 0x7b7400033161 by thread T3: 2022-11-23T01:08:10.4428403Z  #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+0x8718ed1) 2022-11-23T01:08:10.4428885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4429225Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4429672Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4430113Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4430468Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4430718Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4431094Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4431380Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4431388Z 2022-11-23T01:08:10.4431734Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4431964Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4432155Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4432407Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4432748Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4433342Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4433819Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4434261Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4434630Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4436275Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4437258Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4437741Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4439392Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4439906Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4440214Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4441264Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4441580Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4441942Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4443173Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4443524Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4444749Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4445120Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4445426Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4445854Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4446058Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4446289Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4446507Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4446721Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4447230Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4447493Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4447673Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4447687Z 2022-11-23T01:08:10.4448059Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4448358Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4448733Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4449193Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4449431Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4449989Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4450301Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4450635Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4451354Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4451730Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4452047Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4452367Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4453258Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4453547Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4453970Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4455025Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4455413Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4456617Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4456939Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4457189Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4458153Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4458447Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4458879Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4459310Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4459516Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4459738Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4459950Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4460214Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4460724Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4460934Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4461138Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4461149Z 2022-11-23T01:08:10.4463352Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:10.4463507Z ================== 2022-11-23T01:08:10.4463642Z ================== 2022-11-23T01:08:10.4463900Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4480172Z  Write of size 1 at 0x7b7400033161 by thread T1: 2022-11-23T01:08:10.4483828Z  #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+0x8718ed1) 2022-11-23T01:08:10.4484279Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4484635Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4485021Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4485455Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4485800Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4486017Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4486353Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4486539Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4486549Z 2022-11-23T01:08:10.4486823Z  Previous write of size 1 at 0x7b7400033161 by thread T3: 2022-11-23T01:08:10.4490321Z  #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+0x8718ed1) 2022-11-23T01:08:10.4490755Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4491113Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4491541Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4491996Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4492472Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4492662Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4492956Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4493147Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4493157Z 2022-11-23T01:08:10.4493499Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4493736Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4493911Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4494111Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4494373Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4494993Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4495362Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4495720Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4496088Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4497610Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4498718Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4499317Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4500989Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4501432Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4501725Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4502566Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4502752Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4503038Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4504347Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4504744Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4506156Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4506502Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4506766Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4507180Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4507366Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4507556Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4507753Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4507993Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4508507Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4508645Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4508727Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4508745Z 2022-11-23T01:08:10.4509061Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4509326Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4509745Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4510264Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4510551Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4511031Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4511277Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4511561Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4512301Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4512663Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4513018Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4513328Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4514243Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4514511Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4514889Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4515978Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4516312Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4517535Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4517845Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4518080Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4519007Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4519300Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4519537Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4519921Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4520164Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4520363Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4520549Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4520792Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4521289Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4521490Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4521644Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4521653Z 2022-11-23T01:08:10.4522011Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4522289Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4522621Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4522973Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4523147Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4523445Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4523597Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4523859Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4524454Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4524785Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4525061Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4525359Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4526223Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4526496Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4526911Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4527927Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4528285Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4529442Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4529700Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4529922Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4530755Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4530956Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4531183Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4531550Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4531727Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4531898Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4532090Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4532338Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4532836Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4533034Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4533180Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4533189Z 2022-11-23T01:08:10.4535784Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:10.4535936Z ================== 2022-11-23T01:08:10.4536042Z ================== 2022-11-23T01:08:10.4536329Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4536642Z  Write of size 1 at 0x7b7400032eeb by thread T3: 2022-11-23T01:08:10.4540424Z  #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+0x8718ed1) 2022-11-23T01:08:10.4540874Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4541248Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4541691Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4542157Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4542552Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4542710Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4542938Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4543213Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4543227Z 2022-11-23T01:08:10.4543551Z  Previous write of size 1 at 0x7b7400032eeb by thread T1: 2022-11-23T01:08:10.4547160Z  #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+0x8718ed1) 2022-11-23T01:08:10.4547661Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4547974Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4548417Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4548878Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4549317Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4549530Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4549959Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4550183Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4550193Z 2022-11-23T01:08:10.4550582Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4550860Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4551040Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4551277Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4551599Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4552230Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4552606Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4553053Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4553452Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4555026Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4555998Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4556457Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4558080Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4558525Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4558837Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4559824Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4560099Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4560426Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4561618Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4562002Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4563291Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4563565Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4563732Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4563988Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4564179Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4564367Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4564547Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4564822Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4565294Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4565481Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4565620Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4565628Z 2022-11-23T01:08:10.4565987Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4566242Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4566583Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4567071Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4567326Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4567788Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4568000Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4568306Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4568930Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4569271Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4569555Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4569839Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4570677Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4570846Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4571174Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4572231Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4572620Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4573762Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4574024Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4574245Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4575114Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4575333Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4575562Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4575925Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4576106Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4576301Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4576467Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4576671Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4577154Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4577323Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4577455Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4577469Z 2022-11-23T01:08:10.4577823Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4578074Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4578415Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4579004Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4579365Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4579802Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4580089Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4580372Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4580980Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4581316Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4581598Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4581867Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4582710Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4582956Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4583306Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4584326Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4584641Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4585809Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4586087Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4586344Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4587075Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4587262Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4587417Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4587678Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4587798Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4587953Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4588135Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4588374Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4588858Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4589028Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4589166Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4589175Z 2022-11-23T01:08:10.4591856Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:10.4591948Z ================== 2022-11-23T01:08:10.4591999Z ================== 2022-11-23T01:08:10.4592176Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4592355Z  Write of size 1 at 0x7b7400032eeb by thread T2: 2022-11-23T01:08:10.4595860Z  #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+0x8718ed1) 2022-11-23T01:08:10.4596407Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4596815Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4597335Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4597786Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4598109Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4598311Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4598661Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4598844Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4598854Z 2022-11-23T01:08:10.4599165Z  Previous write of size 1 at 0x7b7400032eeb by thread T1: 2022-11-23T01:08:10.4602756Z  #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+0x8718ed1) 2022-11-23T01:08:10.4603213Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4603628Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4604082Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4604503Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4604820Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4604982Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4605319Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4605472Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4605484Z 2022-11-23T01:08:10.4605851Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.4606122Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4606313Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4606566Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4606842Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4607451Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4607852Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4608121Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4608551Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4610102Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4611072Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4611538Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4612891Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4613295Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4613552Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.4614520Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.4614795Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.4615086Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.4616272Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.4616689Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.4618257Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4618625Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4618795Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.4619053Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4619165Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4619285Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4619409Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4619558Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4619872Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4619977Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4620071Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4620077Z 2022-11-23T01:08:10.4620311Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.4620477Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4620695Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4621015Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4621189Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4621485Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4621710Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4621901Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4622350Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4622570Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4622757Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4622950Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4623504Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4623668Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4623892Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4624552Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4624763Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4625531Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4625708Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4625847Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4626452Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4626627Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4626778Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4627034Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4627148Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4627267Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4627387Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4627537Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4627850Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4627971Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4628063Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4628069Z 2022-11-23T01:08:10.4628265Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4628430Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4628648Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4628965Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4629136Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4629432Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4629641Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4629834Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4630244Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4630462Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4630649Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4630841Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4631429Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4631592Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4631818Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4632511Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4632721Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4633501Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4633683Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4633826Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4634406Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4634551Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4634704Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4634944Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4635058Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4635178Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4635296Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4635442Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4635754Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4635874Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4635966Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4636000Z 2022-11-23T01:08:10.4637667Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:10.4637765Z ================== 2022-11-23T01:08:10.4638154Z ================== 2022-11-23T01:08:10.4638322Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4638496Z  Write of size 1 at 0x7b7400032276 by thread T3: 2022-11-23T01:08:10.4640658Z  #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+0x8718da5) 2022-11-23T01:08:10.4640917Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4641139Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4641420Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4641715Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4641981Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4642151Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4642375Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4642509Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4642547Z 2022-11-23T01:08:10.4642733Z  Previous write of size 1 at 0x7b7400032276 by main thread: 2022-11-23T01:08:10.4644949Z  #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+0x8718da5) 2022-11-23T01:08:10.4645213Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4645436Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4645717Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4646133Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4646394Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4646679Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4647026Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4647336Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4648498Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4648914Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4649270Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4649790Z #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+0x6562cde) 2022-11-23T01:08:10.4650331Z #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+0x20cf997) 2022-11-23T01:08:10.4650658Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4651002Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4651960Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4652251Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4652485Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4653531Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4653868Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4654581Z #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+0xca56e8) 2022-11-23T01:08:10.4655091Z #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+0x2974180) 2022-11-23T01:08:10.4655473Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4656798Z #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+0x57a0418) 2022-11-23T01:08:10.4657066Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4657417Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4657695Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4657946Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4658343Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4658637Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4658806Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4658997Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4659227Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4659704Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4659892Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4660049Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4660062Z 2022-11-23T01:08:10.4660449Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4660685Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4660861Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4661030Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4661316Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4661963Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4662364Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4662698Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4663015Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4664518Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4665335Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4665803Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4667197Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4667641Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4667941Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4668382Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4670144Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4670643Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4672265Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4672690Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4673212Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4674973Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4675386Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4676482Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4676776Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4676972Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4677273Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4678414Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4678746Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4679820Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4680096Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4680362Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4681487Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4681843Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4682956Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4683247Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4683438Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4683586Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4684227Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4684382Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4684576Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4684778Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4685011Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4685233Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4685619Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4686031Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4686245Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4686474Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4687240Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4687445Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4687650Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4688358Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4688581Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4689012Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.4689398Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.4689639Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4690521Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4690771Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4691019Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4691194Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4691359Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4691614Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4691731Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4691850Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4691970Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4692117Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4692431Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4692554Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4692646Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4692653Z 2022-11-23T01:08:10.4692891Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4693046Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4693269Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4693585Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4693759Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4694055Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4694209Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4694401Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4694805Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4695024Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4695210Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4695440Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4696001Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4696190Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4696421Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4697078Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4697290Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4698065Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4698243Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4698385Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4699080Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4699226Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4699375Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4699629Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4699732Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4699902Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4700025Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4700173Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4700485Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4700646Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4700737Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4700743Z 2022-11-23T01:08:10.4702415Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4702488Z ================== 2022-11-23T01:08:10.4702549Z ================== 2022-11-23T01:08:10.4702712Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4702886Z  Write of size 1 at 0x7b74000324ec by thread T1: 2022-11-23T01:08:10.4705067Z  #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+0x8718da5) 2022-11-23T01:08:10.4705339Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4705678Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4706140Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4706594Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4707056Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4707249Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4707585Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4707723Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4707729Z 2022-11-23T01:08:10.4708006Z  Previous write of size 1 at 0x7b74000324ec by main thread: 2022-11-23T01:08:10.4711007Z  #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+0x8718da5) 2022-11-23T01:08:10.4711438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4711772Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4712172Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4712488Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4712748Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4713082Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4713322Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4713638Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4714684Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4715086Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4715368Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4715850Z #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+0x6562cde) 2022-11-23T01:08:10.4716256Z #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+0x20cf997) 2022-11-23T01:08:10.4716553Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4716835Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4717700Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4717925Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4718144Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4719024Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4719362Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4719825Z #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+0xca56e8) 2022-11-23T01:08:10.4720383Z #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+0x2974180) 2022-11-23T01:08:10.4720710Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4721787Z #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+0x57a0418) 2022-11-23T01:08:10.4722004Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4722352Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4722533Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4722695Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4723032Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4723165Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4723289Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4723411Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4723605Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4723981Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4724142Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4724240Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4724247Z 2022-11-23T01:08:10.4724627Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4724848Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4724974Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4725184Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4725437Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4725955Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4726227Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4726514Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4726807Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4728433Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4729142Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4729453Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4731319Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4731867Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4732200Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4732495Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4734383Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4734794Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4736079Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4736492Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4736809Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4738139Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4738653Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4739869Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4740249Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4740466Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4741033Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4742638Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4742993Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4744060Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4744339Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4744609Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4745769Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4746130Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4747224Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4747513Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4747707Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4747852Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4748488Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4748644Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4748840Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4749042Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4749274Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4749518Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4749963Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4750398Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4750610Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4750814Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4751572Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4751778Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4751985Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4752697Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4752924Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4753348Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.4753732Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.4753998Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4754860Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4755109Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4755369Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4755533Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4755694Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4755948Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4756063Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4756183Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4756303Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4756450Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4756764Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4756881Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4756974Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4756980Z 2022-11-23T01:08:10.4757214Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4757370Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4757597Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4757915Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4758093Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4758387Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4758540Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4758761Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4759168Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4759415Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4759602Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4759793Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4760350Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4760516Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4760741Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4761403Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4761614Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4762393Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4762571Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4762718Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4763327Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4763475Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4763628Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4763915Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4764030Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4764138Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4764256Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4764403Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4764715Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4764834Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4764929Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4764937Z 2022-11-23T01:08:10.4766600Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4766673Z ================== 2022-11-23T01:08:10.4766737Z ================== 2022-11-23T01:08:10.4766904Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4767078Z  Write of size 1 at 0x7b7400032276 by thread T2: 2022-11-23T01:08:10.4769300Z  #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+0x8718da5) 2022-11-23T01:08:10.4769558Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4769809Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4770089Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4770378Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4770649Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4770793Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4771020Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4771160Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4771166Z 2022-11-23T01:08:10.4771355Z  Previous write of size 1 at 0x7b7400032276 by main thread: 2022-11-23T01:08:10.4773537Z  #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+0x8718da5) 2022-11-23T01:08:10.4773796Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4774023Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4774304Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4774620Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4774813Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4775110Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4775457Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4775795Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4776775Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4777194Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4777568Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4778121Z #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+0x6562cde) 2022-11-23T01:08:10.4778829Z #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+0x20cf997) 2022-11-23T01:08:10.4779124Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4779449Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4780464Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4780763Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4781108Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4782080Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4782368Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4783082Z #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+0xca56e8) 2022-11-23T01:08:10.4783732Z #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+0x2974180) 2022-11-23T01:08:10.4784158Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4785938Z #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+0x57a0418) 2022-11-23T01:08:10.4786259Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4786672Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4786880Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4787127Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4787539Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4787724Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4787929Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4788173Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4788449Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4788988Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4789252Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4789408Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4789418Z 2022-11-23T01:08:10.4789895Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4790160Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4790369Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4790612Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4790827Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4791560Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4792006Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4792414Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4792843Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4794377Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4795283Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4795770Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4797500Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4798007Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4798303Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4798744Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4800363Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4800857Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4802387Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4802792Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4803216Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4804943Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4805491Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4807159Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4807622Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4807980Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4808430Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4809996Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4810473Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4812028Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4812510Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4813020Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4814302Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4814670Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4815777Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4816069Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4816265Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4816413Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4817061Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4817255Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4817442Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4817645Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4817907Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4818125Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4818620Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4819013Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4819232Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4819433Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4820198Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4820406Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4820610Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4821323Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4821550Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4822029Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.4822451Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.4822693Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4823579Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4823796Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4824057Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4824234Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4824388Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4824643Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4824761Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4824880Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4825005Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4825152Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4825466Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4825586Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4825682Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4825689Z 2022-11-23T01:08:10.4825932Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.4826101Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4826311Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4826660Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4826836Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4827131Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4827316Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4827507Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4827920Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4828144Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4828336Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4828528Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4829077Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4829244Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4829471Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4830194Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4830411Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4831192Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4831405Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4831549Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4832125Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4832301Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4832451Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4832709Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4832824Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4832931Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4833055Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4833201Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4833513Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4833630Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4833722Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4833728Z 2022-11-23T01:08:10.4835404Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:10.4835478Z ================== 2022-11-23T01:08:10.4835542Z ================== 2022-11-23T01:08:10.4835710Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4835884Z  Write of size 1 at 0x7b7400032277 by thread T3: 2022-11-23T01:08:10.4838106Z  #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+0x8718e1d) 2022-11-23T01:08:10.4838391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4838616Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4838897Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4839187Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4839454Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4839595Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4839820Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4839954Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4839962Z 2022-11-23T01:08:10.4840148Z  Previous write of size 1 at 0x7b7400032277 by main thread: 2022-11-23T01:08:10.4842681Z  #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+0x8718e1d) 2022-11-23T01:08:10.4843157Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4843517Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4843960Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4844448Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4844756Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4845090Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4845478Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4845823Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4846911Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4847307Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4847697Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4848344Z #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+0x6562cde) 2022-11-23T01:08:10.4849006Z #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+0x20cf997) 2022-11-23T01:08:10.4849377Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4849702Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4851031Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4851409Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4851739Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4852945Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4853321Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4854061Z #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+0xca56e8) 2022-11-23T01:08:10.4854686Z #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+0x2974180) 2022-11-23T01:08:10.4855066Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4856507Z #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+0x57a0418) 2022-11-23T01:08:10.4856874Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4857291Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4857628Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4857899Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4858331Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4858671Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4858876Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4859077Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4859301Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4859825Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4860013Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4860170Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4860181Z 2022-11-23T01:08:10.4860575Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4860861Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4861068Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4861332Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4861635Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4862333Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4862766Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4863201Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4863665Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4865595Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4866711Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4867358Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4869252Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4869817Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4870155Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4870639Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4872527Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4873039Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4874396Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4874708Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4874983Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4876736Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4877124Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4878275Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4878598Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4878790Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4879088Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4880196Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4880519Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4881832Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4882153Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4882457Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4883605Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4883929Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4885031Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4885320Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4885511Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4885658Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4886328Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4886508Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4886703Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4886905Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4887140Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4887359Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4887744Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4888134Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4888349Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4888551Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4889298Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4889502Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4889708Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4890454Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4890704Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4891143Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.4891527Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.4891769Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4892624Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4892837Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4893096Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4893275Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4893441Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4893696Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4893814Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4893939Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4894060Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4894196Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4894513Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4894632Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4894757Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4894765Z 2022-11-23T01:08:10.4895004Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.4895171Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4895423Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4895738Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4895911Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4896208Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4896361Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4896553Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4896968Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4897189Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4897374Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4897570Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4898129Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4898298Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4898628Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4899290Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4899501Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4900318Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4900528Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4900673Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4901248Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4901397Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4901548Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4901802Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4901916Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4902037Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4902160Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4902308Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4902619Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4902740Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4902824Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4902844Z 2022-11-23T01:08:10.4904527Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.4904601Z ================== 2022-11-23T01:08:10.4905019Z ================== 2022-11-23T01:08:10.4905175Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4905352Z  Write of size 1 at 0x7b74000324ee by thread T1: 2022-11-23T01:08:10.4907595Z  #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+0x8718e64) 2022-11-23T01:08:10.4907882Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4908104Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4908384Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4908677Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4908947Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4909088Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4909312Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4909448Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4909454Z 2022-11-23T01:08:10.4909748Z  Previous write of size 1 at 0x7b74000324ee by main thread: 2022-11-23T01:08:10.4911968Z  #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+0x8718e64) 2022-11-23T01:08:10.4912256Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4912478Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4912762Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4913051Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4913244Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4913442Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4913671Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4913885Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4914598Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4914837Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4915056Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4915442Z #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+0x6562cde) 2022-11-23T01:08:10.4915832Z #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+0x20cf997) 2022-11-23T01:08:10.4916074Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4916277Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4917064Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4917281Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4917490Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4918199Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4918421Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4918849Z #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+0xca56e8) 2022-11-23T01:08:10.4919231Z #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+0x2974180) 2022-11-23T01:08:10.4919470Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4920359Z #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+0x57a0418) 2022-11-23T01:08:10.4920570Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4920870Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4921046Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4921209Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4921465Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4921580Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4921700Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4921819Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4921969Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4922280Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4922399Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4922491Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4922497Z 2022-11-23T01:08:10.4922706Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4922875Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4922999Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4923157Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4923363Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4923810Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4924080Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4924342Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4924608Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4925719Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4926366Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4926672Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4927712Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4927988Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4928175Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4928448Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4929580Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4929927Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4930992Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4931268Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4931544Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4932684Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4933044Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4934166Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4934451Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4934646Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4934946Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4936046Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4936365Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4937440Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4937743Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4938012Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4939247Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4939567Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4940705Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4940995Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4941224Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4941373Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4942012Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4942166Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4942363Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4942565Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4942799Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4943020Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4943411Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4943798Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4944011Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4944214Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4944969Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4945200Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4945407Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4946143Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4946369Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4946799Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.4947199Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.4947442Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4948306Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.4948518Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4948776Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4948955Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4949116Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4949371Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4949486Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4949712Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4949837Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4949975Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4950316Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4950435Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4950528Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4950534Z 2022-11-23T01:08:10.4950755Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.4950924Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.4951145Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.4951463Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.4951636Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.4951929Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.4952083Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.4952272Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.4952679Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.4952901Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.4953085Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.4953262Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.4953834Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.4954000Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.4954225Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.4954923Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.4955157Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.4955927Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.4956103Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.4956247Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.4956826Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.4956972Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.4957121Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.4957375Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4957492Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4957610Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4957731Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4957876Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4958190Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4958308Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4958389Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4958395Z 2022-11-23T01:08:10.4960100Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.4960199Z ================== 2022-11-23T01:08:10.4960252Z ================== 2022-11-23T01:08:10.4960420Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.4960594Z  Write of size 1 at 0x7b7400032277 by thread T2: 2022-11-23T01:08:10.4962767Z  #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+0x8718e1d) 2022-11-23T01:08:10.4963041Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4963265Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4963545Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4963835Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4964106Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.4964248Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.4964475Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.4964599Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.4964618Z 2022-11-23T01:08:10.4964789Z  Previous write of size 1 at 0x7b7400032277 by main thread: 2022-11-23T01:08:10.4966996Z  #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+0x8718e1d) 2022-11-23T01:08:10.4967280Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.4967508Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.4967788Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.4968080Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.4968271Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.4968473Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.4968703Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.4968915Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.4969629Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.4969869Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.4970089Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4970507Z #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+0x6562cde) 2022-11-23T01:08:10.4970909Z #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+0x20cf997) 2022-11-23T01:08:10.4971220Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4971422Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.4972180Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.4972389Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.4972597Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.4973318Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.4973544Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.4973973Z #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+0xca56e8) 2022-11-23T01:08:10.4974359Z #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+0x2974180) 2022-11-23T01:08:10.4974597Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.4975485Z #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+0x57a0418) 2022-11-23T01:08:10.4975729Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.4975988Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.4976167Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.4976329Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.4976584Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.4976699Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.4976819Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.4976939Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.4977089Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.4977402Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.4977522Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.4977602Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.4977607Z 2022-11-23T01:08:10.4977832Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.4977999Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.4978124Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.4978284Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.4978582Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.4979025Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.4979297Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.4979561Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.4979876Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.4980990Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.4981620Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.4981924Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.4982968Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.4983243Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.4983431Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.4983730Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.4984837Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.4985177Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4986254Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4986533Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4986806Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4987988Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4988334Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4989424Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4989793Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4989994Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4990294Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.4991384Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.4991743Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.4992830Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.4993106Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.4993378Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.4994517Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.4994837Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.4995949Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.4996273Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.4996468Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.4996616Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.4997257Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.4997412Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.4997609Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.4997812Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.4998047Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.4998267Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.4998653Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.4999041Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.4999254Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.4999454Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5000232Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5000461Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5000666Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5001376Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5001604Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5002037Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.5002422Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.5002665Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5003536Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5003748Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5004042Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5004220Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5004382Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5004664Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5004780Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5004886Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5005006Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5005154Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5005469Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5005587Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5005679Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5005688Z 2022-11-23T01:08:10.5005908Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.5006076Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5006296Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5006612Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5006789Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5007080Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5007235Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5007425Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5007834Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5008046Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5008234Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5008427Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5008985Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5009197Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5009411Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5010108Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5010317Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5011086Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5011266Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5011410Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5011982Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5012129Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5012280Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5012538Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5012652Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5012769Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5012892Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5013038Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5013337Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5013456Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5013549Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5013555Z 2022-11-23T01:08:10.5015253Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:10.5015360Z ================== 2022-11-23T01:08:10.5015412Z ================== 2022-11-23T01:08:10.5015581Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5015757Z  Write of size 1 at 0x7b740003227c by thread T3: 2022-11-23T01:08:10.5017909Z  #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+0x8718e64) 2022-11-23T01:08:10.5018182Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5018407Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5018780Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5019072Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5019340Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5019470Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5019749Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5019888Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5019894Z 2022-11-23T01:08:10.5020083Z  Previous write of size 1 at 0x7b740003227c by main thread: 2022-11-23T01:08:10.5022287Z  #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+0x8718e64) 2022-11-23T01:08:10.5022556Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5022782Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5023062Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5023354Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5023548Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.5023750Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.5023981Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.5024192Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.5024933Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.5025172Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.5025420Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5025803Z #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+0x6562cde) 2022-11-23T01:08:10.5026187Z #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+0x20cf997) 2022-11-23T01:08:10.5026401Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5026602Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5027355Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5027559Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5027764Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5028476Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5028713Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5029140Z #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+0xca56e8) 2022-11-23T01:08:10.5029549Z #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+0x2974180) 2022-11-23T01:08:10.5029896Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5030754Z #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+0x57a0418) 2022-11-23T01:08:10.5030970Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5031230Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5031407Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5031570Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5031823Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5031940Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5032060Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5032181Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5032331Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5032643Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5032751Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5032844Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5032850Z 2022-11-23T01:08:10.5033071Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.5033241Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5033364Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5033526Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5033732Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5034203Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5034472Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5034762Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5035028Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5036099Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5036733Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5037040Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5038102Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5038392Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5038605Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.5038874Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.5039973Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.5040283Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5041358Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5041636Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5041905Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5043077Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5043429Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5044519Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5044819Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5045015Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5045312Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.5046440Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.5046772Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5047829Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5048104Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5048377Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5049513Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5049867Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5050951Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5051277Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5051468Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5051605Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.5052257Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.5052412Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.5052608Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.5052796Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.5053032Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.5053252Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5053640Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.5054063Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.5054279Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5054479Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5055257Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5055459Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5055665Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5056376Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5056605Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5057035Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.5057425Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.5057668Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5058674Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5058941Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5059199Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5059376Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5059542Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5059801Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5059905Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5060028Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5060148Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5060297Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5060612Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5060731Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5060824Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5060830Z 2022-11-23T01:08:10.5061057Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.5061225Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5061446Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5061765Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5061941Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5062239Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5062379Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5062572Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5062981Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5063202Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5063389Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5063612Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5064168Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5064363Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5064590Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5065261Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5065471Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5066241Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5066418Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5066561Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5067142Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5067288Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5067438Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5067693Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5067808Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5067928Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5068037Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5068211Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5068526Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5068672Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5068765Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5068770Z 2022-11-23T01:08:10.5070496Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:10.5070571Z ================== 2022-11-23T01:08:10.5070635Z ================== 2022-11-23T01:08:10.5070804Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5070980Z  Write of size 1 at 0x7b7400032761 by thread T1: 2022-11-23T01:08:10.5073172Z  #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+0x8718ed1) 2022-11-23T01:08:10.5073437Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5073660Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5073941Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5074264Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5074535Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5074703Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5074925Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5075061Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5075067Z 2022-11-23T01:08:10.5075252Z  Previous write of size 1 at 0x7b7400032761 by main thread: 2022-11-23T01:08:10.5077430Z  #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+0x8718ed1) 2022-11-23T01:08:10.5077705Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5077930Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5078213Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5078503Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5078696Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.5078884Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.5079111Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:10.5079322Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.5080096Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.5080367Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.5080587Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5080974Z #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+0x6562cde) 2022-11-23T01:08:10.5081361Z #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+0x20cf997) 2022-11-23T01:08:10.5081578Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5081776Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5082527Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5082734Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5082940Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5083693Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5083917Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5084375Z #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+0xca56e8) 2022-11-23T01:08:10.5084777Z #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+0x2974180) 2022-11-23T01:08:10.5085015Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5085871Z #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+0x57a0418) 2022-11-23T01:08:10.5086085Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5086346Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5086522Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5086684Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5086936Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5087052Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5087170Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5087289Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5087428Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5087741Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5087859Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5087952Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5087958Z 2022-11-23T01:08:10.5088180Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2022-11-23T01:08:10.5088347Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5088500Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5088661Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5088866Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5089337Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5089607Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5089871Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5090140Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5091213Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5091851Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5092157Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5093213Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5093534Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5093721Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.5093980Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.5095101Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.5095409Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5096521Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5096797Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5097091Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5098215Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5098643Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5099733Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5100026Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5100221Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5100563Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.5101669Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.5102005Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5103065Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5103339Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5103609Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5104757Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5105124Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5106220Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5106510Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5106703Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5106853Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.5107494Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.5107649Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.5107844Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.5108048Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.5108281Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.5108498Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5108913Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.5109330Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.5109543Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5109815Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5110574Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5110779Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5110985Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5111696Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5111922Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5112348Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.5112735Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.5113021Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5113895Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5114137Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5114394Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5114573Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5114724Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5114981Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5115095Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5115215Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5115336Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5115486Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5115797Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5115919Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5116011Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5116017Z 2022-11-23T01:08:10.5116237Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.5116403Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5116609Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5116928Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5117103Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5117395Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5117549Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5117741Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5118174Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5118396Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5118611Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5118803Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5119357Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5119521Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5119748Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5120409Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5120618Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5121403Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5121580Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5121725Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5122302Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5122473Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5122626Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5122882Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5123025Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5123132Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5123252Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5123399Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5123711Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5123831Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5123924Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5123930Z 2022-11-23T01:08:10.5125598Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:10.5125670Z ================== 2022-11-23T01:08:10.5186674Z ================== 2022-11-23T01:08:10.5187021Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5187272Z  Write of size 1 at 0x7b7400032c7c by thread T2: 2022-11-23T01:08:10.5190949Z  #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+0x871a6f4) 2022-11-23T01:08:10.5191544Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5191912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5192444Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5192915Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5193363Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5193587Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5193953Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5194170Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5194180Z 2022-11-23T01:08:10.5194500Z  Previous write of size 1 at 0x7b7400032c7c by main thread: 2022-11-23T01:08:10.5197835Z  #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+0x871a6f4) 2022-11-23T01:08:10.5198265Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5198607Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5199087Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5199583Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5200028Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.5200384Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.5200766Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:10.5201062Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.5202314Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.5202677Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.5203025Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5203897Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5204106Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5204418Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5205499Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.5205914Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.5207443Z #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+0x57a0418) 2022-11-23T01:08:10.5207890Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5208186Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.5208667Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5208832Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5209006Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5209187Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5209426Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5209857Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5210116Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5210212Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5210219Z 2022-11-23T01:08:10.5210523Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.5210747Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5210944Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5211196Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5211518Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5212175Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5212553Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5212949Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5213332Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5214892Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5215777Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5216204Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5217659Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5218040Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5218281Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.5219640Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.5219980Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.5220298Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.5221456Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.5221822Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.5223095Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5223410Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5223652Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.5224037Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5224211Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5224379Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5224543Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5224758Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5225228Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5225401Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5225546Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5225555Z 2022-11-23T01:08:10.5225903Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.5226141Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5226541Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5227021Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5227348Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5227786Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5228019Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5228316Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5228966Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5229274Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5229625Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5229876Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5230704Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5230944Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5231250Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5232196Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5232494Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5233716Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5234060Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5234291Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5235256Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5235494Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5235746Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5236172Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5236360Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5236555Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5236749Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5236993Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5237534Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5237728Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5237869Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5237878Z 2022-11-23T01:08:10.5240750Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:10.5240866Z ================== 2022-11-23T01:08:10.5240994Z ================== 2022-11-23T01:08:10.5241284Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5241571Z  Write of size 1 at 0x7b7400032c7a by thread T1: 2022-11-23T01:08:10.5245390Z  #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+0x871a6f4) 2022-11-23T01:08:10.5245864Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5246246Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5246707Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5247186Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5247631Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5247882Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5248249Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5248472Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5248482Z 2022-11-23T01:08:10.5248791Z  Previous write of size 1 at 0x7b7400032c7a by thread T2: 2022-11-23T01:08:10.5252522Z  #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+0x871a6f4) 2022-11-23T01:08:10.5252942Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5253345Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5253805Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5254285Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5254725Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5254964Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5255332Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5255546Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5255554Z 2022-11-23T01:08:10.5255921Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.5256201Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5256469Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5256738Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5257072Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5257818Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5258260Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5258794Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5259248Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5261171Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5262390Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5262945Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5264882Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5265385Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5265698Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.5266888Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.5267212Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.5267625Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.5269053Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.5269528Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.5271206Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5271589Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5271885Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.5272350Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5272553Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5272754Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5272969Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5273238Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5273820Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5274030Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5274200Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5274210Z 2022-11-23T01:08:10.5274607Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.5274908Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5275299Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5275924Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5276235Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5276768Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5277072Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5277400Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5278163Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5278570Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5278900Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5279245Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5280266Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5280558Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5280965Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5282200Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5282578Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5283994Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5284360Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5284612Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5285685Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5285975Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5286243Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5286708Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5286911Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5287126Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5287345Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5287593Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5288153Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5288364Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5288523Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5288534Z 2022-11-23T01:08:10.5288916Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.5289222Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5289606Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5290177Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5290484Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5291012Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5291286Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5291624Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5292377Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5292768Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5293101Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5293444Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5294501Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5294857Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5295267Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5296477Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5296854Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5298268Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5298681Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5298933Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5299972Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5300233Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5300492Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5300946Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5301145Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5301352Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5301567Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5301898Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5302466Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5302719Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5302877Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5302888Z 2022-11-23T01:08:10.5306006Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:10.5306128Z ================== 2022-11-23T01:08:10.5306242Z ================== 2022-11-23T01:08:10.5306539Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5306834Z  Write of size 1 at 0x7b7400032c79 by thread T3: 2022-11-23T01:08:10.5310942Z  #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+0x871a6ad) 2022-11-23T01:08:10.5311413Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5311810Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5312312Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5312873Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5313354Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5313635Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5314028Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5314265Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5314274Z 2022-11-23T01:08:10.5314598Z  Previous write of size 1 at 0x7b7400032c79 by thread T1: 2022-11-23T01:08:10.5318705Z  #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+0x871a6ad) 2022-11-23T01:08:10.5319170Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5319566Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5320078Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5320606Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5321115Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5321362Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5321766Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5322001Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5322010Z 2022-11-23T01:08:10.5322435Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2022-11-23T01:08:10.5322727Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5322947Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5323230Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5323651Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5324464Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5324947Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5325424Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5325910Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5327883Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5329053Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5329610Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5331540Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5332087Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5332447Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.5333634Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.5333957Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.5334334Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.5335757Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.5336198Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.5337842Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5338229Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5338651Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.5339106Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5339310Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5339506Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5339716Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5339981Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5340545Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5340760Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5340920Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5340929Z 2022-11-23T01:08:10.5341312Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.5341609Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5342001Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5342582Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5342888Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5343423Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5343690Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5344019Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5344776Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5345173Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5345512Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5345856Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5346948Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5347240Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5347689Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5348920Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5349301Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5350788Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5351099Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5351347Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5352390Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5352643Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5352915Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5353370Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5353575Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5353783Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5353990Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5354241Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5354802Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5355007Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5355209Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5355219Z 2022-11-23T01:08:10.5355594Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.5355886Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5356307Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5356871Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5357181Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5357710Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5357979Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5358321Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5359077Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5359478Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5359803Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5360149Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5361177Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5361469Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5361871Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5363086Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5363462Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5364898Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5365249Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5365503Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5366570Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5366854Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5367119Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5367584Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5367783Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5367994Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5368210Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5368482Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5369053Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5369267Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5369429Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5369438Z 2022-11-23T01:08:10.5372587Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:10.5372709Z ================== 2022-11-23T01:08:10.5764017Z ================== 2022-11-23T01:08:10.5764444Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.5764764Z  Write of size 1 at 0x7b7400034a76 by main thread: 2022-11-23T01:08:10.5769606Z  #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+0x871a635) 2022-11-23T01:08:10.5770309Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5770855Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5771386Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5772002Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5772497Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.5772871Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.5773354Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:10.5773753Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.5775567Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.5776031Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.5776639Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5777304Z #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+0x6562cde) 2022-11-23T01:08:10.5777844Z #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+0x20cf997) 2022-11-23T01:08:10.5778171Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5778444Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5779833Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5780166Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5780447Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5781520Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5781820Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5782490Z #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+0xca56e8) 2022-11-23T01:08:10.5783101Z #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+0x2974180) 2022-11-23T01:08:10.5783545Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5784833Z #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+0x57a0418) 2022-11-23T01:08:10.5785222Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5785672Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5785962Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5786250Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5786674Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5786855Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5787036Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5787231Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5787481Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5788221Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5788423Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5788570Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5788582Z 2022-11-23T01:08:10.5788930Z  Previous write of size 1 at 0x7b7400034a76 by thread T1: 2022-11-23T01:08:10.5792747Z  #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+0x871a635) 2022-11-23T01:08:10.5793242Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.5793598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.5794064Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.5794532Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.5795004Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.5795244Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.5795623Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.5795844Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.5795853Z 2022-11-23T01:08:10.5796229Z  Location is heap block of size 2520 at 0x7b7400034800 allocated by main thread: 2022-11-23T01:08:10.5796525Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.5796741Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.5797004Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.5797509Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.5798203Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.5798607Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.5799019Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.5799374Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.5800883Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.5801734Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.5802063Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.5803553Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.5804067Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.5804396Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.5804869Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.5806528Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.5807090Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5808964Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5809471Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5809970Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5812104Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5812736Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5814814Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5815353Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5815702Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5816251Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.5818298Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.5818959Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.5821010Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.5821559Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.5822059Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.5824188Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.5824773Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.5826839Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.5827382Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.5827766Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.5828019Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.5829218Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.5829489Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.5829908Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.5830273Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.5830689Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.5831087Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.5831796Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.5832521Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.5832903Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.5833268Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.5834659Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.5835061Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.5835439Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.5836794Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.5837200Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.5837981Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.5838732Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.5839172Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.5840793Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.5841178Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.5841643Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.5841954Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.5842248Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.5842710Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5842911Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5843156Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5843358Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5843621Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5844254Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5844464Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5844625Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5844635Z 2022-11-23T01:08:10.5845043Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.5845346Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.5845746Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.5846315Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.5846628Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.5847169Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.5847447Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.5847798Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.5848559Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.5848961Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.5849284Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.5849634Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.5850672Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.5850969Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.5851363Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.5852645Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.5853062Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.5854492Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.5854807Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.5855064Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.5856139Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.5856396Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.5856666Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.5857138Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.5857339Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.5857550Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.5857762Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.5858025Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.5858731Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.5858934Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.5859098Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.5859107Z 2022-11-23T01:08:10.5862314Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a635) 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::'lamb 2022-11-23T01:08:10.5862492Z ================== 2022-11-23T01:08:10.6230645Z ================== 2022-11-23T01:08:10.6231050Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6231343Z  Write of size 2 at 0x7b840000c258 by thread T3: 2022-11-23T01:08:10.6244058Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6244447Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6244824Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6245294Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6245775Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6246225Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6246482Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6246957Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6247182Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6247193Z 2022-11-23T01:08:10.6247524Z  Previous write of size 2 at 0x7b840000c258 by main thread: 2022-11-23T01:08:10.6250947Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6251375Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6251604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6251887Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6252182Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6252373Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6252563Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6252794Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6253006Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6253799Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6254018Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6254217Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6254998Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6255227Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6255433Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6256204Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6256449Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6257318Z #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+0x57a0418) 2022-11-23T01:08:10.6257532Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6257696Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6257955Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6258071Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6258190Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6258297Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6258445Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6258976Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6259101Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6259196Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6259253Z 2022-11-23T01:08:10.6259493Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6259661Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6259785Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6259944Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6260149Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6260597Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6260868Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6261133Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6261400Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6262476Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6263118Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6263452Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6264484Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6264800Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6264965Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6265623Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6265800Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6266007Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6266783Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6267028Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6267912Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6268150Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6268315Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6268573Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6268689Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6268867Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6269054Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6269294Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6269822Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6270006Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6270149Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6270161Z 2022-11-23T01:08:10.6270545Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6270824Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6271212Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6271783Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6272062Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6272541Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6272821Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6273137Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6273912Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6274302Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6274625Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6274945Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6275801Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6276156Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6276567Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6277686Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6278074Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6279467Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6279791Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6280039Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6281082Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6281308Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6281576Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6282050Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6282238Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6282445Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6282640Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6282913Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6283462Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6283666Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6283881Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6283891Z 2022-11-23T01:08:10.6286962Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6287096Z ================== 2022-11-23T01:08:10.6287212Z ================== 2022-11-23T01:08:10.6287520Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6287839Z  Write of size 2 at 0x7b840000c744 by thread T2: 2022-11-23T01:08:10.6291811Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6292290Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6292614Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6292902Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6293237Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6293504Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6293675Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6293899Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6294033Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6294040Z 2022-11-23T01:08:10.6294233Z  Previous write of size 2 at 0x7b840000c744 by main thread: 2022-11-23T01:08:10.6296376Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6296652Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6296875Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6297155Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6297446Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6297637Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6297829Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6298059Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6298271Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6299219Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6299473Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6299673Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6300425Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6300635Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6300841Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6301614Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6301859Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6302757Z #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+0x57a0418) 2022-11-23T01:08:10.6302970Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6303201Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6303459Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6303575Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6303730Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6303850Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6303996Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6304310Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6304429Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6304510Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6304516Z 2022-11-23T01:08:10.6304739Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6304904Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6305030Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6305190Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6305393Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6305841Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6306113Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6306378Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6306647Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6307737Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6308402Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6308705Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6310047Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6310405Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6310669Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6311583Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6311827Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6312134Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6313309Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6313685Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6314785Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6315053Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6315221Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6315621Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6315786Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6315962Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6316165Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6316404Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6316761Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6316879Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6316984Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6316998Z 2022-11-23T01:08:10.6317369Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6317638Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6317890Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6318377Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6318650Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6319146Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6319340Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6319522Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6320093Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6320411Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6320653Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6320927Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6321575Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6321743Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6321968Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6322717Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6322941Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6324089Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6324381Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6324544Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6325452Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6325719Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6325954Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6326362Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6326555Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6326758Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6326948Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6327178Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6327682Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6327829Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6327928Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6327935Z 2022-11-23T01:08:10.6329604Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6329677Z ================== 2022-11-23T01:08:10.6329987Z ================== 2022-11-23T01:08:10.6330615Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6330882Z  Write of size 2 at 0x7b840000c744 by thread T1: 2022-11-23T01:08:10.6334853Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6335406Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6335821Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6336341Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6336861Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6337354Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6337509Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6337735Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6337872Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6337880Z 2022-11-23T01:08:10.6338062Z  Previous write of size 2 at 0x7b840000c744 by main thread: 2022-11-23T01:08:10.6340495Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6340759Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6340982Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6341385Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6341679Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6341914Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6342117Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6342347Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6342563Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6343348Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6343569Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6343769Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6344534Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6344741Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6344946Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6345753Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6345999Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6346890Z #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+0x57a0418) 2022-11-23T01:08:10.6347114Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6347266Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6347571Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6347688Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6347807Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6347933Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6348083Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6348562Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6348731Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6348866Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6348873Z 2022-11-23T01:08:10.6349216Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6349479Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6349728Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6349980Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6350312Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6350982Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6351435Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6352000Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6352353Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6354118Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6355136Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6355642Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6357315Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6357778Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6358127Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6359067Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6359377Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6359698Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6360813Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6361204Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6362565Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6362900Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6363153Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6363552Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6363713Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6363896Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6364077Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6364259Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6364778Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6365006Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6365149Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6365158Z 2022-11-23T01:08:10.6365526Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.6365789Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6366139Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6366636Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6366922Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6367409Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6367599Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6367886Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6368484Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6368821Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6369103Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6369393Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6370246Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6370529Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6370911Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6371895Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6372215Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6373471Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6373791Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6373991Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6374881Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6375098Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6375340Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6375745Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6375928Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6376126Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6376327Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6376566Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6376994Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6377116Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6377207Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6377214Z 2022-11-23T01:08:10.6379988Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6380106Z ================== 2022-11-23T01:08:10.6380281Z ================== 2022-11-23T01:08:10.6380560Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6380942Z  Write of size 2 at 0x7b840000c25c by thread T3: 2022-11-23T01:08:10.6384434Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6384758Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6384989Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6385423Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6385870Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6386309Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6386539Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6386897Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6387121Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6387132Z 2022-11-23T01:08:10.6387445Z  Previous write of size 2 at 0x7b840000c25c by main thread: 2022-11-23T01:08:10.6391129Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6391613Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6391970Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6392270Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6392559Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6392783Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6393071Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6393368Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6393668Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6394789Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6395082Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6395355Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6396620Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6396976Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6397325Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6398437Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6398695Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6399995Z #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+0x57a0418) 2022-11-23T01:08:10.6400345Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6400616Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6401010Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6401183Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6401379Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6401518Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6401679Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6402133Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6402301Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6402402Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6402411Z 2022-11-23T01:08:10.6402787Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6403042Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6403311Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6403566Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6403893Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6404570Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6404988Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6405268Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6405537Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6406708Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6407458Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6408048Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6409846Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6410380Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6410707Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6411635Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6411970Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6412310Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6413509Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6413972Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6415446Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6415788Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6416068Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6416599Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6416790Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6416984Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6417183Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6417460Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6418047Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6418266Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6418424Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6418435Z 2022-11-23T01:08:10.6418942Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6419254Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6419524Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6419841Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6420022Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6420321Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6420478Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6420673Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6421084Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6421306Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6421491Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6421682Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6422240Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6422484Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6422711Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6423411Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6423626Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6424393Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6424576Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6424720Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6425302Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6425463Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6425600Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6425859Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6425973Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6426094Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6426217Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6426366Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6426677Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6426796Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6426888Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6426894Z 2022-11-23T01:08:10.6428606Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6428703Z ================== 2022-11-23T01:08:10.6428819Z ================== 2022-11-23T01:08:10.6428992Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6429166Z  Write of size 2 at 0x7b840000c748 by thread T2: 2022-11-23T01:08:10.6431400Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6431667Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6431896Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6432182Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6432479Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6432751Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6432894Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6433154Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6433292Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6433298Z 2022-11-23T01:08:10.6433485Z  Previous write of size 2 at 0x7b840000c748 by main thread: 2022-11-23T01:08:10.6436074Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6436489Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6436873Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6437381Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6437891Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6438246Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6438619Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6439031Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6439344Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6440767Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6441162Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6441570Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6442970Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6443309Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6443639Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6444995Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6445425Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6446803Z #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+0x57a0418) 2022-11-23T01:08:10.6447151Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6447661Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6448811Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6449008Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6449204Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6449458Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6449656Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6450112Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6450262Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6450384Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6450393Z 2022-11-23T01:08:10.6450781Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6451057Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6451252Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6451512Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6451767Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6452339Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6452617Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6452885Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6453154Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6454272Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6454955Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6455289Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6456320Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6456611Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6456789Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6457441Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6457623Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6457833Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6458772Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6459021Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6459915Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6460142Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6460296Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6460553Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6460674Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6460797Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6460920Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6461071Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6461386Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6461508Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6461603Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6461609Z 2022-11-23T01:08:10.6461829Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6461997Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6462204Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6462526Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6462701Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6463000Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6463156Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6463348Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6463795Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6464015Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6464241Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6464433Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6464990Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6465157Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6465383Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6466052Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6466262Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6467046Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6467232Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6467376Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6467958Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6468106Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6468288Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6468548Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6468664Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6468799Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6468921Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6469069Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6469383Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6469504Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6469666Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6469675Z 2022-11-23T01:08:10.6471339Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6471418Z ================== 2022-11-23T01:08:10.6471527Z ================== 2022-11-23T01:08:10.6471697Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6471878Z  Write of size 2 at 0x7b840000c748 by thread T1: 2022-11-23T01:08:10.6474272Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6474679Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6475055Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6475447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6475913Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6476298Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6476481Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6476787Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6476985Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6476997Z 2022-11-23T01:08:10.6477250Z  Previous write of size 2 at 0x7b840000c748 by main thread: 2022-11-23T01:08:10.6480410Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6480687Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6480912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6481197Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6481489Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6481680Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6481912Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6482141Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6482381Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6483164Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6483384Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6483585Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6484340Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6484543Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6484748Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6485529Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6485785Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6486670Z #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+0x57a0418) 2022-11-23T01:08:10.6486908Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6487074Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6487332Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6487451Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6487573Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6487694Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6487830Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6488144Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6488263Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6488358Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6488364Z 2022-11-23T01:08:10.6488586Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6488752Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6488881Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6489043Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6489251Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6489696Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6489968Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6490237Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6490507Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6491602Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6492269Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6492578Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6493613Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6493901Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6494084Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6494755Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6494936Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6495170Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6495947Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6496194Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6497054Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6497282Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6497450Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6497699Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6497817Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6497940Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6498123Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6498273Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6498739Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6498862Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6498961Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6498967Z 2022-11-23T01:08:10.6499184Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.6499356Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6499641Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6499961Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6500159Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6500454Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6500609Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6500803Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6501217Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6501441Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6501632Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6501824Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6509798Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6510151Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6510522Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6511807Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6512160Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6513919Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6514252Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6514547Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6515506Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6515714Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6515942Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6516294Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6516484Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6516691Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6516851Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6517033Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6517537Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6517692Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6517822Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6517832Z 2022-11-23T01:08:10.6519855Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6520014Z ================== 2022-11-23T01:08:10.6520123Z ================== 2022-11-23T01:08:10.6520448Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6520670Z  Write of size 2 at 0x7b840000c25e by thread T3: 2022-11-23T01:08:10.6522884Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6523206Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6523433Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6523718Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6524010Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6524280Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6524423Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6524648Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6524774Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6524780Z 2022-11-23T01:08:10.6524971Z  Previous write of size 2 at 0x7b840000c25e by main thread: 2022-11-23T01:08:10.6527161Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6527427Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6527683Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6527966Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6528257Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6528452Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6528655Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6528886Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6529098Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6529875Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6530098Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6530343Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6531097Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6531322Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6531527Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6532334Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6532606Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6533468Z #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+0x57a0418) 2022-11-23T01:08:10.6533687Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6533851Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6534109Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6534227Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6534347Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6534468Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6534618Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6534934Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6535055Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6535149Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6535154Z 2022-11-23T01:08:10.6535379Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6535534Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6535661Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6535826Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6536031Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6536505Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6536775Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6537066Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6537330Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6538407Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6539211Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6539520Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6540622Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6540933Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6541110Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6541970Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6542244Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6542862Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6544069Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6544393Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6545566Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6545787Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6545975Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6546362Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6546635Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6546849Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6547067Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6547394Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6547925Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6548106Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6548254Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6548264Z 2022-11-23T01:08:10.6548633Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6548885Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6549215Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6549764Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6550056Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6550514Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6550716Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6550954Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6551620Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6551925Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6552174Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6552476Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6553169Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6553885Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6554229Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6555091Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6555393Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6556589Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6556892Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6557132Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6557992Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6558146Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6558355Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6558733Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6558913Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6559093Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6559279Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6559432Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6559896Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6560095Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6560253Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6560265Z 2022-11-23T01:08:10.6562915Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6563023Z ================== 2022-11-23T01:08:10.6563140Z ================== 2022-11-23T01:08:10.6563319Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6563498Z  Write of size 2 at 0x7b840000c74a by thread T2: 2022-11-23T01:08:10.6565651Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6565916Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6566144Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6566427Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6566721Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6566990Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6567134Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6567360Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6567498Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6567504Z 2022-11-23T01:08:10.6567693Z  Previous write of size 2 at 0x7b840000c74a by main thread: 2022-11-23T01:08:10.6569881Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6570165Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6570393Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6570673Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6570964Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6571160Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6571365Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6571593Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6571807Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6572585Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6572820Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6573022Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6573800Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6574048Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6574370Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6575141Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6575389Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6576264Z #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+0x57a0418) 2022-11-23T01:08:10.6576480Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6576649Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6576910Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6577014Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6577137Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6577259Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6577408Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6577753Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6577874Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6577999Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6578005Z 2022-11-23T01:08:10.6578230Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6578397Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6578699Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6578862Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6579071Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6579517Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6579793Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6580061Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6580344Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6581420Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6582045Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6582423Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6583491Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6583768Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6583945Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6584596Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6584804Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6585105Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6586409Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6586875Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6588232Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6588571Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6588822Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6589221Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6589428Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6589676Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6589838Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6590022Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6590520Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6590719Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6590834Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6590841Z 2022-11-23T01:08:10.6591198Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6591440Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6591790Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6592271Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6592541Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6593045Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6593326Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6593663Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6594363Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6594778Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6595117Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6595371Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6596179Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6596473Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6596859Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6597839Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6598185Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6599393Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6599598Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6599765Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6600671Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6600908Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6601152Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6601410Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6601515Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6601635Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6601823Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6602068Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6602547Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6602794Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6602921Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6602929Z 2022-11-23T01:08:10.6604985Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6605062Z ================== 2022-11-23T01:08:10.6605183Z ================== 2022-11-23T01:08:10.6605358Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6605536Z  Write of size 2 at 0x7b840000c74e by thread T2: 2022-11-23T01:08:10.6607677Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.6607945Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6608174Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6608458Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6608794Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6609065Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6609238Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6609462Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6609598Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6609604Z 2022-11-23T01:08:10.6609799Z  Previous write of size 2 at 0x7b840000c74e by main thread: 2022-11-23T01:08:10.6611938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.6612214Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6612439Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6612723Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6613014Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6613208Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6613397Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6613626Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6613839Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6614657Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6614903Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6615104Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6615856Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6616064Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6616268Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6617049Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6617289Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6618192Z #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+0x57a0418) 2022-11-23T01:08:10.6618409Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6618711Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6618970Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6619086Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6619206Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6619313Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6619466Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6619780Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6619902Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6619994Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6620000Z 2022-11-23T01:08:10.6620225Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6620393Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6620518Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6620682Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6620894Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6621483Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6621892Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6622314Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6622623Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6624278Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6625344Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6625830Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6627252Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6627677Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6627934Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6628767Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6629007Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6629294Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6630584Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6631078Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6632525Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6632874Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6633053Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6633352Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6633558Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6633761Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6633971Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6634225Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6634781Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6634974Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6635131Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6635141Z 2022-11-23T01:08:10.6635507Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6635791Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6636185Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6636730Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6637018Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6637599Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6637872Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6638261Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6638962Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6639362Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6639667Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6640001Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6640990Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6641299Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6641726Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6642937Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6643317Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6644239Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6644439Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6644585Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6645212Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6645391Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6645543Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6645798Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6645912Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6646022Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6646141Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6646289Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6646601Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6646725Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6646818Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6646824Z 2022-11-23T01:08:10.6648505Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6648580Z ================== 2022-11-23T01:08:10.6648698Z ================== 2022-11-23T01:08:10.6648867Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6649045Z  Write of size 2 at 0x7b840000c260 by thread T3: 2022-11-23T01:08:10.6651216Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6651519Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6651786Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6652097Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6652389Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6652663Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6652806Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6653028Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6653166Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6653172Z 2022-11-23T01:08:10.6653365Z  Previous write of size 2 at 0x7b840000c260 by main thread: 2022-11-23T01:08:10.6655518Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6655797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6656019Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6656333Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6656626Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6656846Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6657047Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6657275Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6657476Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6658269Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6658761Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6658983Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6659737Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6659943Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6660152Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6660987Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6661279Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6662140Z #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+0x57a0418) 2022-11-23T01:08:10.6662354Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6662519Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6662777Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6662894Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6663016Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6663140Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6663275Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6663594Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6663715Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6663814Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6663820Z 2022-11-23T01:08:10.6664056Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6664221Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6664345Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6664511Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6664717Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6665163Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6665432Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6665748Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6666017Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6667114Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6667750Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6668057Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6669088Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6669377Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6669648Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6670303Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6670522Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6670734Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6671506Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6671757Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6672615Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6672843Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6672994Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6673255Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6673371Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6673493Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6673615Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6673763Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6674105Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6674225Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6674319Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6674353Z 2022-11-23T01:08:10.6674569Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6674736Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6674944Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6675257Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6675434Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6675730Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6675887Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6676079Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6676491Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6676716Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6676903Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6677093Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6677646Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6677814Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6678044Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6678709Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6678950Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6679734Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6679964Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6680154Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6681000Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6681253Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6681466Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6681827Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6682004Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6682155Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6682419Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6682645Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6683116Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6683314Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6683461Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6683471Z 2022-11-23T01:08:10.6685639Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6685747Z ================== 2022-11-23T01:08:10.6686083Z ================== 2022-11-23T01:08:10.6686546Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6686808Z  Write of size 2 at 0x7b840000c74a by thread T1: 2022-11-23T01:08:10.6689982Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6690435Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6690714Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6691162Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6691538Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6691934Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6692138Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6692466Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6692610Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6692619Z 2022-11-23T01:08:10.6692905Z  Previous write of size 2 at 0x7b840000c74a by main thread: 2022-11-23T01:08:10.6696209Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6696549Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6696857Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6697285Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6697782Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6698091Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.6698432Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.6698945Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.6699285Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.6700622Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.6701010Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.6701331Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.6702766Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.6703159Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.6703545Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.6704443Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6704731Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6705710Z #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+0x57a0418) 2022-11-23T01:08:10.6705924Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6706091Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6706350Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6706468Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6706576Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6706698Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6706851Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6707164Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6707284Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6707381Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6707387Z 2022-11-23T01:08:10.6707636Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6707913Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6708046Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6708206Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6708430Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6708889Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6709161Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6709428Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6709768Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6710839Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6711475Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6711782Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6712842Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6713157Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6713338Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6713989Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6714185Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6714382Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6715173Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6715415Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6716447Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6716666Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6716858Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6717118Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6717236Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6717355Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6717475Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6717626Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6717942Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6718063Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6718157Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6718164Z 2022-11-23T01:08:10.6718372Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.6718540Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6718760Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6719077Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6719255Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6719550Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6719705Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6719897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6720307Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6720531Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6720715Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6720910Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6721493Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6721657Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6721884Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6722574Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6722786Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6723554Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6723750Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6723881Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6724470Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6724618Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6724757Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6725091Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6725243Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6725423Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6725616Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6725814Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6726328Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6726508Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6726653Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6726662Z 2022-11-23T01:08:10.6729578Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6729732Z ================== 2022-11-23T01:08:10.6729865Z ================== 2022-11-23T01:08:10.6730085Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6730332Z  Write of size 2 at 0x7b840000c284 by thread T2: 2022-11-23T01:08:10.6733734Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6734170Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6734522Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6734868Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6735317Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6735714Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6735952Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6736356Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6736583Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6736635Z 2022-11-23T01:08:10.6736966Z  Previous write of size 2 at 0x7b840000c284 by thread T3: 2022-11-23T01:08:10.6740272Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.6740646Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6740919Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6741360Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6741826Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6742227Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6742453Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6742789Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6743009Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6743017Z 2022-11-23T01:08:10.6743370Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6743629Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6743811Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6744058Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6744388Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6745190Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6745683Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6745954Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6746313Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6747937Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6748936Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6749422Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6750925Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6751414Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6751690Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6752700Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6752992Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6753318Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6754550Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6754913Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6756282Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6756619Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6756879Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6757303Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6757427Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6757646Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6757832Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6758044Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6758520Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6758710Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6758861Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6758873Z 2022-11-23T01:08:10.6759239Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6759492Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6759844Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6760341Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6760600Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6761061Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6761334Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6761621Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6762277Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6762623Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6762905Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6763213Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6764002Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6764174Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6764400Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6765347Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6765715Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6766905Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6767174Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6767395Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6768322Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6768556Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6768811Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6769202Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6769371Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6769569Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6769731Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6769947Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6770444Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6770635Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6770774Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6770782Z 2022-11-23T01:08:10.6771113Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6771339Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6771561Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6771999Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6772178Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6772579Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6772814Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6773086Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6773790Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6774170Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6774482Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6774815Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6775793Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6776059Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6776393Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6777298Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6777619Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6778964Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6779224Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6779441Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6780300Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6780543Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6780730Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6781138Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6781282Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6781457Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6781646Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6781803Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6782266Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6782450Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6782592Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6782600Z 2022-11-23T01:08:10.6785338Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6785454Z ================== 2022-11-23T01:08:10.6785520Z ================== 2022-11-23T01:08:10.6785717Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6785989Z  Write of size 2 at 0x7b840000c74c by thread T1: 2022-11-23T01:08:10.6788911Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6789282Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6789663Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6789953Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6790304Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6790630Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6790775Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6791001Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6791201Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6791208Z 2022-11-23T01:08:10.6791402Z  Previous write of size 2 at 0x7b840000c74c by thread T2: 2022-11-23T01:08:10.6793800Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6794155Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6794381Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6794809Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6795278Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6795720Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6795930Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6796281Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6796505Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6796515Z 2022-11-23T01:08:10.6796869Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6797140Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6797339Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6797589Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6797926Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6798571Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6798861Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6799244Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6799681Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6801470Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6802488Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6803004Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6804646Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6804997Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6805218Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6806338Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6806631Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6806968Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6808245Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6808701Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6810099Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6810454Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6810712Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6810994Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6811113Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6811233Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6811355Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6811504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6811937Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6812134Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6812293Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6812301Z 2022-11-23T01:08:10.6812663Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.6812940Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6813280Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6813776Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6814051Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6814545Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6814812Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6815165Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6815864Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6816222Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6816542Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6816854Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6817736Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6817908Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6818136Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6818906Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6819157Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6820370Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6820662Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6820832Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6821926Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6822259Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6822502Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6822965Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6823163Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6823354Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6823572Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6823833Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6824397Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6824623Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6824796Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6824807Z 2022-11-23T01:08:10.6825220Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6825538Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6825852Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6826292Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6826470Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6826765Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6826917Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6827108Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6827522Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6827732Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6827920Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6828111Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6828707Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6828914Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6829130Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6829882Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6830096Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6830865Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6831043Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6831186Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6831762Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6831916Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6832068Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6832323Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6832440Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6832558Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6832678Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6832825Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6833153Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6833277Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6833370Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6833376Z 2022-11-23T01:08:10.6835040Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6835153Z ================== 2022-11-23T01:08:10.6835247Z ================== 2022-11-23T01:08:10.6835405Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6835581Z  Write of size 2 at 0x7b840000c74c by thread T3: 2022-11-23T01:08:10.6838159Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6838571Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6838911Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6839317Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6839766Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6840226Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6840446Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6840764Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6840998Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6841022Z 2022-11-23T01:08:10.6841298Z  Previous write of size 2 at 0x7b840000c74c by thread T2: 2022-11-23T01:08:10.6844292Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.6844672Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6845019Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6845433Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6845849Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6846259Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6846474Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6846810Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6847009Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6847020Z 2022-11-23T01:08:10.6847359Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6847591Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6847786Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6848064Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6848386Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6848942Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6849374Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6849777Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6850161Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6851773Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6852717Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6853175Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6854763Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6855226Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6860737Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6861992Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6862325Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6862708Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6864164Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6864622Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6866192Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6866717Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6867017Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6867541Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6867741Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6867947Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6868158Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6868421Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6869004Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6869217Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6869361Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6869372Z 2022-11-23T01:08:10.6869862Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6870161Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6870559Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6871039Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6871267Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6871692Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6871920Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6872158Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6872712Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6873057Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6873350Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6873700Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6874697Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6874985Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6875475Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6876527Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6876921Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6878043Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6878318Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6878474Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6879173Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6879372Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6879597Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6879931Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6880122Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6880291Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6880460Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6880666Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6881039Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6881215Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6881351Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6881362Z 2022-11-23T01:08:10.6881611Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6881781Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6882131Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6882569Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6882861Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6883387Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6883587Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6883878Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6884476Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6884825Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6885103Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6885398Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6886245Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6886430Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6886790Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6887547Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6887762Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6888591Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6888799Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6888943Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6889522Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6889670Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6889827Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6890085Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6890201Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6890321Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6890443Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6890579Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6890893Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6891015Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6891110Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6891117Z 2022-11-23T01:08:10.6892802Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6892879Z ================== 2022-11-23T01:08:10.6892944Z ================== 2022-11-23T01:08:10.6893113Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6893291Z  Write of size 2 at 0x7b840000b880 by thread T2: 2022-11-23T01:08:10.6895478Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6895785Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6896002Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6896285Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6896586Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6896856Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6896986Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6897214Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6897351Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6897356Z 2022-11-23T01:08:10.6897539Z  Previous write of size 2 at 0x7b840000b880 by thread T3: 2022-11-23T01:08:10.6899932Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.6900214Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6900470Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6900753Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6901049Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6901320Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6901464Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6901689Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6901812Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6901818Z 2022-11-23T01:08:10.6902045Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6902211Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6902339Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.6902501Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.6902706Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.6903154Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.6903426Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.6903691Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.6903964Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.6905076Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.6905730Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.6906038Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.6907140Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.6907417Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.6907621Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.6908556Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.6908828Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.6909225Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.6910611Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.6911081Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.6912582Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.6912939Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.6913221Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.6913659Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6913855Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6914057Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6914242Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6914493Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6915040Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6915244Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6915409Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6915420Z 2022-11-23T01:08:10.6915809Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.6916092Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6916481Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6917064Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6917357Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6917857Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6918157Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6918489Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6919186Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6919563Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6919861Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6920174Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6921127Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6921409Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6921790Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6922936Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6923284Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6924605Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6924952Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6925195Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6926268Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6926558Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6926809Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6927254Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6927913Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6928358Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6928816Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6929304Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6930129Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6931016Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6931407Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6931628Z 2022-11-23T01:08:10.6932008Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.6932599Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.6933250Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.6934266Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.6935158Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.6936042Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.6936871Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.6937529Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.6938768Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.6939469Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.6940070Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.6941710Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.6943272Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.6944702Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.6945433Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.6947098Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.6948664Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.6951356Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.6953056Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.6953659Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.6955024Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.6956312Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.6956881Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.6957648Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.6958345Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.6958782Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.6959245Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.6960030Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.6961398Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.6962253Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.6962654Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.6962879Z 2022-11-23T01:08:10.6966097Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.6967973Z ================== 2022-11-23T01:08:10.6968265Z ================== 2022-11-23T01:08:10.6968732Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.6969588Z  Write of size 2 at 0x7b840000c782 by thread T1: 2022-11-23T01:08:10.6974337Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6977303Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6978166Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6979296Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6980633Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6981649Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6982422Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6983106Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6983755Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6984050Z 2022-11-23T01:08:10.6984379Z  Previous write of size 2 at 0x7b840000c782 by thread T2: 2022-11-23T01:08:10.6988742Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.6991787Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.6992631Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.6993574Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.6994624Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.6995637Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.6996387Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.6997066Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.6997714Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.6998008Z 2022-11-23T01:08:10.6998458Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.6999051Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.6999528Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7000063Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7000789Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7002002Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7003284Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7004263Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7005238Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7007693Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7010922Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7012573Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7015094Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7017633Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7018454Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.7020074Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.7021529Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.7022231Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.7024076Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.7025857Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.7027967Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7029877Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7030613Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.7031409Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7032089Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7032522Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7032981Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7033504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7034371Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7035158Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7035577Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7035807Z 2022-11-23T01:08:10.7036201Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.7036790Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7037427Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7038398Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7039276Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7040137Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7040933Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7041580Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7042701Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7043607Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7044352Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7045056Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7046490Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7047778Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7048504Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7050192Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7051742Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7053573Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7055259Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7055839Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7057187Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7058583Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7059156Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7059939Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7060627Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7061271Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7061748Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7062267Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7063144Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7063937Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7064351Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7064649Z 2022-11-23T01:08:10.7065038Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7065647Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7066280Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7067330Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7068219Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7069099Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7070012Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7070653Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7071808Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7072703Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7073454Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7074153Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7075552Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7076831Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7077555Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7079227Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7080785Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7082681Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7084377Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7084961Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7086329Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7087606Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7088178Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7088947Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7089626Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7090078Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7090546Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7091064Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7091957Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7092745Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7093157Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7093385Z 2022-11-23T01:08:10.7096568Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7098459Z ================== 2022-11-23T01:08:10.7098855Z ================== 2022-11-23T01:08:10.7099329Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7099891Z  Write of size 2 at 0x7b840000c782 by thread T3: 2022-11-23T01:08:10.7104352Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7107342Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7108215Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7109141Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7110278Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7111306Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7112041Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7112737Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7113388Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7113684Z 2022-11-23T01:08:10.7114012Z  Previous write of size 2 at 0x7b840000c782 by thread T2: 2022-11-23T01:08:10.7118455Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7121391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7122263Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7123201Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7124235Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7125258Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7126010Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7126687Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7127344Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7127642Z 2022-11-23T01:08:10.7128052Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.7128644Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7129096Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7129641Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7130347Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7131556Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7132838Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7133827Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7134794Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7137312Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7140704Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7142369Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7144877Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7147409Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7148226Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.7149902Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.7151373Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.7152081Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.7154009Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.7155810Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.7157868Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7159759Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7160448Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.7161242Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7161901Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7162362Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7162839Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7163359Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7164229Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7165037Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7165448Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7165672Z 2022-11-23T01:08:10.7166072Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.7166662Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7167295Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7168338Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7169249Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7184468Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7185428Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7186085Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7187289Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7188183Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7188949Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7189733Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7191148Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7192429Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7193164Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7194829Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7196376Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7198385Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7200068Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7200733Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7202089Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7203390Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7203952Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7204732Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7205412Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7205847Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7206314Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7206833Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7207701Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7208501Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7208915Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7209137Z 2022-11-23T01:08:10.7209525Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7210128Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7210758Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7211751Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7212635Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7213516Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7214330Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7214970Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7216131Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7217015Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7217824Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7218649Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7220048Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7221398Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7222115Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7223765Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7225317Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7227151Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7228825Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7229418Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7230835Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7232123Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7232678Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7233449Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7234126Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7234633Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7235104Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7235616Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7236535Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7237322Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7237737Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7237964Z 2022-11-23T01:08:10.7241152Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7243005Z ================== 2022-11-23T01:08:10.7243290Z ================== 2022-11-23T01:08:10.7243769Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7244325Z  Write of size 2 at 0x7b840000b886 by thread T2: 2022-11-23T01:08:10.7248676Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7251639Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7252500Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7253481Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7254520Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7255552Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7256293Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7256987Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7257638Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7257942Z 2022-11-23T01:08:10.7258276Z  Previous write of size 2 at 0x7b840000b886 by thread T3: 2022-11-23T01:08:10.7262754Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7265715Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7266570Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7267517Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7268547Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7269631Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7270367Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7271119Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7271774Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7272061Z 2022-11-23T01:08:10.7272462Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2022-11-23T01:08:10.7273108Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7273552Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7274089Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7274782Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7275981Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7277260Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7278245Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7279183Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7281660Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7284877Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7286566Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7289033Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7291581Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7292407Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.7293944Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.7295396Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.7296108Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.7297951Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.7299854Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.7301982Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7303916Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7304606Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.7305408Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7306072Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7306534Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7307005Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7307520Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7308393Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7309195Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7309648Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7309877Z 2022-11-23T01:08:10.7310270Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7310853Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7311491Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7312487Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7313370Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7314252Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7315042Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7315708Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7316841Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7317747Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7318494Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7319185Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7320636Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7321962Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7322706Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7324355Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7325335Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7326327Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7327242Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7327574Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7328328Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7329024Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7329342Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7329771Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7330141Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7330397Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7330655Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7330945Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7331461Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7331901Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7332135Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7332292Z 2022-11-23T01:08:10.7332515Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.7332836Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7333198Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7333745Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7334240Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7334718Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7335161Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7335523Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7336133Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7336626Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7337041Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7337419Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7338184Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7338979Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7339394Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7340295Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7341203Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7342196Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7343155Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7343493Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7344233Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7344943Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7345265Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7345702Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7346138Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7346535Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7346992Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7347491Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7348358Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7348947Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7349180Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7349308Z 2022-11-23T01:08:10.7351097Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7352109Z ================== 2022-11-23T01:08:10.7380341Z ================== 2022-11-23T01:08:10.7380936Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7381468Z  Write of size 2 at 0x7b840000ae58 by thread T2: 2022-11-23T01:08:10.7385353Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7387865Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7388422Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7389136Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7390231Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7391216Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7391982Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7392570Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7393221Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7393500Z 2022-11-23T01:08:10.7393838Z  Previous write of size 2 at 0x7b840000ae58 by main thread: 2022-11-23T01:08:10.7397676Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7399963Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7400729Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7401392Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7402168Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7402752Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7403164Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7403763Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7404557Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7406144Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7407613Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7408077Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7408786Z #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+0x6562cde) 2022-11-23T01:08:10.7410007Z #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+0x20cf997) 2022-11-23T01:08:10.7410899Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7411579Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7413000Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7414392Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7415004Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7416398Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7417777Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7418753Z #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+0xca56e8) 2022-11-23T01:08:10.7419838Z #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+0x2974180) 2022-11-23T01:08:10.7420753Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7422546Z #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+0x57a0418) 2022-11-23T01:08:10.7424141Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7424846Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7425490Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7425907Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7426522Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7427091Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7427445Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7427807Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7428247Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7428976Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7429668Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7430039Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7430221Z 2022-11-23T01:08:10.7430605Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7431123Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7431532Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7431998Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7432591Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7433598Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7434655Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7435457Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7436258Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7438403Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7441076Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7442308Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7443824Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7446024Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7446815Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7447474Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7449443Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7451687Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7453755Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7455790Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7456584Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7458914Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7461140Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7463363Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7465305Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7466047Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7466857Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7468912Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7471135Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7473170Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7474740Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7475297Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7476704Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7478219Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7479672Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7481124Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7481636Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7481978Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7482787Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7483568Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7483935Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7484342Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7484790Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7485252Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7485865Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7486638Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7487229Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7487651Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7488638Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7489552Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7490001Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7490931Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7491827Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7492486Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7493300Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7493932Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7495039Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7496083Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7496554Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7496994Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7497156Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7497443Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7497561Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7497682Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7497833Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7497980Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7498295Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7498419Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7498612Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7498633Z 2022-11-23T01:08:10.7498869Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7499041Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7499264Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7499585Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7499760Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7500057Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7500213Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7500405Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7500814Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7501035Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7501219Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7501411Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7501971Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7502139Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7502362Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7503089Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7503335Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7504104Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7504328Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7504480Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7505185Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7505385Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7505595Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7506005Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7506177Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7506357Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7506549Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7506762Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7507274Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7507473Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7507615Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7507625Z 2022-11-23T01:08:10.7510354Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7510514Z ================== 2022-11-23T01:08:10.7510616Z ================== 2022-11-23T01:08:10.7510889Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7511151Z  Write of size 2 at 0x7b840000b344 by thread T3: 2022-11-23T01:08:10.7514532Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7514935Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7515298Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7515754Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7516207Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7516632Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7516829Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7517173Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7517391Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7517401Z 2022-11-23T01:08:10.7517712Z  Previous write of size 2 at 0x7b840000b344 by main thread: 2022-11-23T01:08:10.7521270Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7521737Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7522081Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7522523Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7522904Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7523193Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7523483Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7523797Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7524089Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7525090Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7525436Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7525774Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7526456Z #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+0x6562cde) 2022-11-23T01:08:10.7527090Z #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+0x20cf997) 2022-11-23T01:08:10.7527374Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7527640Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7528826Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7529145Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7529386Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7530434Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7530806Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7531516Z #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+0xca56e8) 2022-11-23T01:08:10.7532115Z #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+0x2974180) 2022-11-23T01:08:10.7532580Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7533849Z #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+0x57a0418) 2022-11-23T01:08:10.7534231Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7534606Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7534809Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7535051Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7535418Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7535584Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7535755Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7535925Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7536147Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7536606Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7536767Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7536906Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7536912Z 2022-11-23T01:08:10.7537269Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7537512Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7537697Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7537905Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7538202Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7538969Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7539373Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7539820Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7540228Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7541852Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7542758Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7543215Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7544804Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7545230Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7545562Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7545954Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7547613Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7548075Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7549696Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7550152Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7550573Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7552308Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7552823Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7554423Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7554867Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7555146Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7555583Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7557272Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7557739Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7559344Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7559752Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7560177Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7561840Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7562312Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7563942Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7564421Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7564725Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7564985Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7566122Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7566383Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7566721Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7567062Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7567458Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7567825Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7568480Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7569152Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7569518Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7569853Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7571187Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7571605Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7571953Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7573182Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7573574Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7574315Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7574966Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7575362Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7576847Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7577224Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7577713Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7578056Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7578327Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7578859Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7579062Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7579267Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7579476Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7579731Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7580268Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7580473Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7580629Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7580639Z 2022-11-23T01:08:10.7581020Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.7581305Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7581675Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7582223Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7582521Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7583028Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7583284Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7583623Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7584342Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7584715Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7585030Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7585345Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7586370Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7586658Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7587048Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7588235Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7588591Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7589945Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7590243Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7590694Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7591678Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7591925Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7592184Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7592619Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7592800Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7592998Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7593194Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7593453Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7593989Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7594182Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7594384Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7594395Z 2022-11-23T01:08:10.7597364Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7597531Z ================== 2022-11-23T01:08:10.7597642Z ================== 2022-11-23T01:08:10.7597945Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7598256Z  Write of size 2 at 0x7b840000b344 by thread T1: 2022-11-23T01:08:10.7600571Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7600835Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7601064Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7601351Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7601641Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7601910Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7602094Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7602320Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7602484Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7602492Z 2022-11-23T01:08:10.7602678Z  Previous write of size 2 at 0x7b840000b344 by main thread: 2022-11-23T01:08:10.7604797Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:10.7605059Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7605278Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7605560Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7605847Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7606039Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7606245Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7606471Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7606682Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7607418Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7607657Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7607904Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7608287Z #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+0x6562cde) 2022-11-23T01:08:10.7608685Z #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+0x20cf997) 2022-11-23T01:08:10.7608898Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7609096Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7609845Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7610048Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7610252Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7610967Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7611193Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7611646Z #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+0xca56e8) 2022-11-23T01:08:10.7612031Z #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+0x2974180) 2022-11-23T01:08:10.7612298Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7613172Z #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+0x57a0418) 2022-11-23T01:08:10.7613384Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7613643Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7613816Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7613976Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7614232Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7614334Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7614453Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7614570Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7614719Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7615034Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7615151Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7615242Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7615250Z 2022-11-23T01:08:10.7615471Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7615634Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7615756Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7615902Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7616105Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7616577Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7616884Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7617149Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7617417Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7618617Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7619246Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7619564Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7620647Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7620954Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7621143Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7621413Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7622527Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7622835Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7623890Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7624297Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7624784Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7626600Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7627132Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7628796Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7629317Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7629693Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7630195Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7632161Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7632656Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7634399Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7634909Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7635369Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7637238Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7637702Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7639356Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7639753Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7640040Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7640199Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7641192Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7641411Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7641644Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7641984Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7642236Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7642445Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7642848Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7643534Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7643783Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7644144Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7645155Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7645413Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7645720Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7646726Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7647057Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7647680Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7648233Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7648642Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7650042Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7650378Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7650775Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7651031Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7651248Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7651572Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7651722Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7651890Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7652058Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7652252Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7652677Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7652875Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7653025Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7653035Z 2022-11-23T01:08:10.7653425Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.7653705Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7654073Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7654398Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7654644Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7655019Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7655174Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7655369Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7655771Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7655989Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7656174Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7656430Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7656991Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7657188Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7657415Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7658089Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7658301Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7659176Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7659358Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7659503Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7660077Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7660225Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7660379Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7660634Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7660751Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7660926Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7661047Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7661182Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7661494Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7661648Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7661742Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7661748Z 2022-11-23T01:08:10.7663419Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7663494Z ================== 2022-11-23T01:08:10.7663558Z ================== 2022-11-23T01:08:10.7663725Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7663903Z  Write of size 2 at 0x7b840000ae5c by thread T2: 2022-11-23T01:08:10.7666046Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.7666322Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7666545Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7666880Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7667171Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7667471Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7667600Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7667824Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7667959Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7667965Z 2022-11-23T01:08:10.7668155Z  Previous write of size 2 at 0x7b840000ae5c by main thread: 2022-11-23T01:08:10.7670387Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:10.7670668Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7670890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7671173Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7671461Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7671656Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7671859Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7672088Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7672339Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7673051Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7673318Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7673538Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7673923Z #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+0x6562cde) 2022-11-23T01:08:10.7674313Z #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+0x20cf997) 2022-11-23T01:08:10.7674530Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7674729Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7675484Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7675687Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7675895Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7676642Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7676876Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7677334Z #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+0xca56e8) 2022-11-23T01:08:10.7677717Z #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+0x2974180) 2022-11-23T01:08:10.7677955Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7678823Z #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+0x57a0418) 2022-11-23T01:08:10.7679033Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7679295Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7679468Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7679629Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7679887Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7680000Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7680120Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7680243Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7680390Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7680690Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7680807Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7680899Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7680905Z 2022-11-23T01:08:10.7681154Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7681325Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7681448Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7681608Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7681843Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7682284Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7682554Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7682818Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7683086Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7684147Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7684786Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7685132Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7686695Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7687100Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7687370Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7687754Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7689466Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7689942Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7691454Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7691898Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7692364Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7694183Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7694717Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7696494Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7696889Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7697177Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7697685Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7699386Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7699950Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7701626Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7702053Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7702458Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7704208Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7704757Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7706483Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7706972Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7707268Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7707422Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7708494Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7708748Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7709045Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7709401Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7709878Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7710331Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7711048Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7711808Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7712189Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7712560Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7713826Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7714150Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7714467Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7715407Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7715638Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7716069Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7716459Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7716763Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7717642Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7717884Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7718141Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7718321Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7718485Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7718742Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7718856Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7718967Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7719088Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7719236Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7719700Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7719821Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7719915Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7719922Z 2022-11-23T01:08:10.7720166Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7720334Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7720557Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7720874Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7721050Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7721343Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7721497Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7721719Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7722122Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7722374Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7722561Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7722753Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7723313Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7723478Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7723703Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7724376Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7724588Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7725361Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7725538Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7725685Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7726287Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7726438Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7726587Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7726869Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7726984Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7727104Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7727224Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7727360Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7727675Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7727794Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7727886Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7727894Z 2022-11-23T01:08:10.7729558Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7729631Z ================== 2022-11-23T01:08:10.7729697Z ================== 2022-11-23T01:08:10.7729866Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7730043Z  Write of size 2 at 0x7b840000b34a by thread T3: 2022-11-23T01:08:10.7732188Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7732493Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7732718Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7733032Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7733319Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7733590Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7733719Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7733946Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7734082Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7734088Z 2022-11-23T01:08:10.7734276Z  Previous write of size 2 at 0x7b840000b34a by main thread: 2022-11-23T01:08:10.7736426Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7736701Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7736924Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7737207Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7737523Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7737717Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7737919Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7738173Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7738385Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7739212Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7739451Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7739670Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7740060Z #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+0x6562cde) 2022-11-23T01:08:10.7740447Z #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+0x20cf997) 2022-11-23T01:08:10.7740664Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7740863Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7741617Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7741823Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7742076Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7742784Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7743056Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7743487Z #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+0xca56e8) 2022-11-23T01:08:10.7743874Z #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+0x2974180) 2022-11-23T01:08:10.7744114Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7744974Z #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+0x57a0418) 2022-11-23T01:08:10.7745192Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7745489Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7745716Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7745885Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7746323Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7746511Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7746704Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7746849Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7747116Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7747622Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7747905Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7748073Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7748082Z 2022-11-23T01:08:10.7748507Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7748816Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7749028Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7749304Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7749727Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7750505Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7750972Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7751441Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7751938Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7753867Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7755085Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7755601Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7757517Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7758013Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7758333Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7758822Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7760820Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7761368Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7763310Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7763855Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7764335Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7766354Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7766945Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7768941Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7769448Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7769816Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7770338Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7772324Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7772900Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7774748Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7775030Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7775297Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7776466Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7776812Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7777918Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7778205Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7778400Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7778647Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7779295Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7779450Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7779691Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7779895Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7780161Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7780379Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7780769Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7781156Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7781372Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7781572Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7782324Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7782531Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7782736Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7783455Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7783694Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7784148Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7784532Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7784797Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7785653Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7785866Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7786128Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7786305Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7786470Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7786728Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7786848Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7786968Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7787090Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7787239Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7787553Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7787659Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7787755Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7787761Z 2022-11-23T01:08:10.7787993Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.7788163Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7788385Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7788703Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7788905Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7789202Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7789384Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7789633Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7790049Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7790274Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7790460Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7790651Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7791212Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7791377Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7791602Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7792267Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7792484Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7793254Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7793433Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7793619Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7794198Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7794374Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7794528Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7794789Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7794905Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7795025Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7795148Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7795296Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7795610Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7795727Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7795821Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7795828Z 2022-11-23T01:08:10.7797510Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7797581Z ================== 2022-11-23T01:08:10.7797648Z ================== 2022-11-23T01:08:10.7797819Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7797981Z  Write of size 2 at 0x7b840000b34a by thread T1: 2022-11-23T01:08:10.7800180Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7800467Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7800794Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7801241Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7801635Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7801966Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7802175Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7802536Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7802735Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7802745Z 2022-11-23T01:08:10.7803050Z  Previous write of size 2 at 0x7b840000b34a by main thread: 2022-11-23T01:08:10.7806104Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7806418Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7806698Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7807008Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7807516Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7807830Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7808140Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7808521Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7808848Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7810040Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7810458Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7810845Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7811516Z #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+0x6562cde) 2022-11-23T01:08:10.7812168Z #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+0x20cf997) 2022-11-23T01:08:10.7812539Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7812876Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7814190Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7814521Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7814848Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7815936Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7816277Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7816834Z #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+0xca56e8) 2022-11-23T01:08:10.7817279Z #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+0x2974180) 2022-11-23T01:08:10.7817593Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7819078Z #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+0x57a0418) 2022-11-23T01:08:10.7819402Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7819816Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7820060Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7820409Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7820789Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7821039Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7821211Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7821407Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7821644Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7822162Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7822367Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7822508Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7822517Z 2022-11-23T01:08:10.7822863Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7823141Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7823322Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7823583Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7823918Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7824556Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7824990Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7825441Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7825861Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7827678Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7828527Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7828988Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7830266Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7830546Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7830738Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7831007Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7832127Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7832471Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7833582Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7833861Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7834129Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7835258Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7835595Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7836732Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7837050Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7837247Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7837544Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7838658Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7838967Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7840121Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7840402Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7840698Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7841834Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7842169Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7843258Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7843547Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7843739Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7843886Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7844552Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7844730Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7844928Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7845130Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7845367Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7845586Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7845972Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7846360Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7846577Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7846779Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7847535Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7847752Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7847960Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7848695Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7848918Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7849375Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7849761Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7850000Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7850864Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7851077Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7851335Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7851511Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7851673Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7851931Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7852046Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7852168Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7852291Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7852439Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7852756Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7852876Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7852968Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7852976Z 2022-11-23T01:08:10.7853233Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.7853390Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7853612Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7853961Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7854133Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7854425Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7854581Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7854773Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7855180Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7855400Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7855586Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7855777Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7856338Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7856508Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7856735Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7857399Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7857608Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7858412Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7858765Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7858993Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7859844Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7860086Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7860306Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7860631Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7860789Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7860970Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7861146Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7861347Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7861787Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7861952Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7862079Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7862086Z 2022-11-23T01:08:10.7864515Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7864602Z ================== 2022-11-23T01:08:10.7864930Z ================== 2022-11-23T01:08:10.7865215Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7865513Z  Write of size 2 at 0x7b840000ae5e by thread T2: 2022-11-23T01:08:10.7868550Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7869003Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7869266Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7869708Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7870109Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7870419Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7870646Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7870877Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7871013Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7871020Z 2022-11-23T01:08:10.7871290Z  Previous write of size 2 at 0x7b840000ae5e by main thread: 2022-11-23T01:08:10.7874257Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:10.7874557Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7874781Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7875092Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7875576Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7875878Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7876113Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7876447Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7876791Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7877797Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7878185Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7878455Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7878971Z #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+0x6562cde) 2022-11-23T01:08:10.7879535Z #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+0x20cf997) 2022-11-23T01:08:10.7879863Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7880232Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7881279Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7881545Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7881753Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7882627Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7882988Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7883601Z #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+0xca56e8) 2022-11-23T01:08:10.7884114Z #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+0x2974180) 2022-11-23T01:08:10.7884490Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7885653Z #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+0x57a0418) 2022-11-23T01:08:10.7885878Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7886169Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7886346Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7886508Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7886766Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7886883Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7886991Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7887111Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7887260Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7887625Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7887747Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7887880Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7887889Z 2022-11-23T01:08:10.7888136Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7888303Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7888430Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7888591Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7888797Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7889398Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7889804Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7890197Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7890592Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7892231Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7893257Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7893738Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7895323Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7895765Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7896067Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7896488Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7898267Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7898936Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7900291Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7900726Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7901142Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7902889Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7903475Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7905173Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7905692Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7905983Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7906320Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7908030Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7908512Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7910255Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7910758Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7911186Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7912917Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7913446Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7915154Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7915661Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7915970Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7916251Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7917266Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7917519Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7917811Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7918146Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7918506Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7918835Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7919427Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7920026Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7920354Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7920678Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7921653Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7921876Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7922120Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7922948Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7923346Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7924017Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7924659Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7925102Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7926611Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7926954Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7927303Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7927581Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7927834Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7928268Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7928439Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7928624Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7928835Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7929151Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7929695Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7929947Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7930099Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7930108Z 2022-11-23T01:08:10.7930489Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.7930750Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.7931103Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.7931666Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.7931978Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.7932496Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.7932762Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.7933088Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.7933836Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.7934171Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.7934478Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.7934797Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.7935730Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.7936036Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.7936446Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.7937488Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.7937814Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.7939195Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.7939493Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.7939717Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.7940647Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.7940877Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.7941114Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.7941516Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7941712Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7941889Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7942088Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7942336Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7942856Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7943061Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7943214Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7943221Z 2022-11-23T01:08:10.7946081Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.7946207Z ================== 2022-11-23T01:08:10.7946307Z ================== 2022-11-23T01:08:10.7946581Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.7946955Z  Write of size 2 at 0x7b840000b34c by thread T3: 2022-11-23T01:08:10.7950310Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.7950704Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7950963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7951248Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7951604Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7951877Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.7952023Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.7952251Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.7952391Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.7952398Z 2022-11-23T01:08:10.7952597Z  Previous write of size 2 at 0x7b840000b34c by main thread: 2022-11-23T01:08:10.7954814Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.7955108Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.7955333Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.7955617Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.7955906Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.7956100Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.7956300Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.7956527Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.7956742Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.7957455Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.7957706Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.7957922Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7958333Z #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+0x6562cde) 2022-11-23T01:08:10.7958721Z #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+0x20cf997) 2022-11-23T01:08:10.7958962Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7959163Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7959915Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7960121Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7960327Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7961037Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7961295Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7961723Z #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+0xca56e8) 2022-11-23T01:08:10.7962105Z #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+0x2974180) 2022-11-23T01:08:10.7962346Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7963252Z #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+0x57a0418) 2022-11-23T01:08:10.7963489Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7963750Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7963924Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7964087Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.7964346Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.7964462Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.7964569Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.7964688Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.7964836Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.7965154Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.7965271Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.7965367Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.7965372Z 2022-11-23T01:08:10.7965593Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.7965761Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.7965886Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.7966048Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.7966252Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.7966696Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.7966966Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.7967232Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.7967525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.7968595Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.7969258Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.7969562Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.7970587Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.7970860Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.7971044Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.7971342Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.7972455Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.7972787Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7973870Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7974148Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7974419Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7975571Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7975936Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7977028Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7977318Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7977512Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7977813Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.7979025Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.7979383Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.7980644Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.7981118Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.7981526Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.7983259Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.7983820Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.7985766Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.7986307Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.7986613Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.7986858Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.7987891Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.7988138Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.7988437Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.7988751Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.7989156Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.7989632Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.7990284Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.7990955Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.7991352Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.7991720Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.7992884Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.7993122Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.7993331Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.7994488Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.7994877Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.7995498Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.7996082Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.7996520Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.7998035Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.7998437Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.7998907Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.7999267Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.7999549Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8000006Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8000253Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8000458Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8000680Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8000954Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8001489Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8001676Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8001851Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8001862Z 2022-11-23T01:08:10.8002267Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.8002563Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8002950Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8003527Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8003841Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8004332Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8004594Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8004916Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8005644Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8006034Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8006361Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8006695Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8007699Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8008024Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8008444Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8009620Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8010033Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8011463Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8011786Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8011966Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8012549Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8012697Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8012848Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8013104Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8013221Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8013344Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8013465Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8013615Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8013915Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8014035Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8014129Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8014135Z 2022-11-23T01:08:10.8015832Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8015940Z ================== 2022-11-23T01:08:10.8015994Z ================== 2022-11-23T01:08:10.8016162Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8016339Z  Write of size 2 at 0x7b840000b34c by thread T1: 2022-11-23T01:08:10.8018639Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.8018918Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8019140Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8019423Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8019713Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8019989Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8020117Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8020341Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8020479Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8020535Z 2022-11-23T01:08:10.8020728Z  Previous write of size 2 at 0x7b840000b34c by main thread: 2022-11-23T01:08:10.8022889Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.8023198Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8023419Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8023704Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8023990Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8024187Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8024389Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8024618Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.8024832Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8025540Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8025823Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8026043Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8026460Z #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+0x6562cde) 2022-11-23T01:08:10.8027058Z #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+0x20cf997) 2022-11-23T01:08:10.8027276Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8027477Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8028229Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8028435Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8028643Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8029371Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8029664Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8030094Z #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+0xca56e8) 2022-11-23T01:08:10.8030512Z #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+0x2974180) 2022-11-23T01:08:10.8030754Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8031642Z #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+0x57a0418) 2022-11-23T01:08:10.8031856Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8032114Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8032289Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8032452Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8032711Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8032826Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8032948Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8033071Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8033220Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8033534Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8033642Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8033735Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8033741Z 2022-11-23T01:08:10.8033969Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.8034135Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8034260Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8034423Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8034628Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8035068Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8035364Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8035630Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8035921Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8036985Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8037623Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8037926Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8039026Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8039526Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8039855Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8040277Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8042259Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8042744Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8044472Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8044954Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8045402Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8047402Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8047980Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8049681Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8050146Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8050472Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8050936Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8052810Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8053381Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8055171Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8055633Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8055999Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8057634Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8058165Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8060225Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8060775Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8061088Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8061331Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8062406Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8062662Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8062990Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8063281Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8063595Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8063828Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8064416Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8064932Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8065327Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8065654Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8066849Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8067212Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8067493Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8068619Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8068969Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8069696Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8070241Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8070578Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8072049Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8072411Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8072862Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8073145Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8073355Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8073728Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8073885Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8074049Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8074182Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8074425Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8074892Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8075072Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8075190Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8075200Z 2022-11-23T01:08:10.8075525Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.8075767Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8076098Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8076545Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8076785Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8077201Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8077393Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8077666Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8078221Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8078513Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8078789Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8079068Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8079920Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8080186Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8080512Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8081454Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8081754Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8082832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8083085Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8083311Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8084213Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8084420Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8084617Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8084995Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8085154Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8085322Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8085506Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8085720Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8086217Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8086400Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8086531Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8086586Z 2022-11-23T01:08:10.8088954Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8089073Z ================== 2022-11-23T01:08:10.8089158Z ================== 2022-11-23T01:08:10.8089394Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8089658Z  Write of size 2 at 0x7b840000ae60 by thread T2: 2022-11-23T01:08:10.8092828Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.8093207Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8093517Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8093915Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8094328Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8094748Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8094952Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8095309Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8095498Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8095509Z 2022-11-23T01:08:10.8095794Z  Previous write of size 2 at 0x7b840000ae60 by main thread: 2022-11-23T01:08:10.8098928Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:10.8099281Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8099602Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8099980Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8100374Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8100665Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8100966Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8101273Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.8101576Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8102615Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8103020Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8103324Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8103856Z #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+0x6562cde) 2022-11-23T01:08:10.8104388Z #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+0x20cf997) 2022-11-23T01:08:10.8104673Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8104952Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8106025Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8106316Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8106615Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8107858Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8108295Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8109012Z #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+0xca56e8) 2022-11-23T01:08:10.8109768Z #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+0x2974180) 2022-11-23T01:08:10.8110167Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8111650Z #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+0x57a0418) 2022-11-23T01:08:10.8112004Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8112430Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8112718Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8112974Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8113401Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8113590Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8113784Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8113986Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8114231Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8114748Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8114946Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8115104Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8115114Z 2022-11-23T01:08:10.8115505Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.8115787Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8115976Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8116237Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8116643Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8117398Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8117881Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8118318Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8118756Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8120550Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8121608Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8122125Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8123928Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8124455Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8124765Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8125229Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8127137Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8127666Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8129492Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8130026Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8130473Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8132415Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8132957Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8134822Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8135313Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8135631Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8136120Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8138013Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8138668Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8140452Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8140934Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8141388Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8143350Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8143903Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8145811Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8146337Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8146682Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8146940Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8148116Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8148388Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8148738Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8149097Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8149523Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8149989Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8150731Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8151430Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8151858Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8152216Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8153600Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8153964Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8154338Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8155635Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8156032Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8156825Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8157522Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8157949Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8159559Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8159981Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8160447Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8160742Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8161043Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8161503Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8161705Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8161913Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8162124Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8162388Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8162964Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8163180Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8163349Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8163359Z 2022-11-23T01:08:10.8163760Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8164042Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8164431Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8165003Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8165317Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8165849Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8166126Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8166468Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8167229Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8167666Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8167997Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8168379Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8169394Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8169690Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8170099Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8171307Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8171686Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8173114Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8173436Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8173686Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8174748Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8175007Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8175272Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8175771Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8175959Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8176176Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8176424Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8176688Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8177260Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8177469Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8177630Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8177639Z 2022-11-23T01:08:10.8180867Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8180989Z ================== 2022-11-23T01:08:10.8181104Z ================== 2022-11-23T01:08:10.8181399Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8181705Z  Write of size 2 at 0x7b840000b34e by thread T3: 2022-11-23T01:08:10.8185785Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8186250Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8186701Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8187213Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8187771Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8188254Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8188501Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8188903Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8189143Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8189153Z 2022-11-23T01:08:10.8189487Z  Previous write of size 2 at 0x7b840000b34e by main thread: 2022-11-23T01:08:10.8193673Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8194144Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8194542Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8195050Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8195575Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8195919Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8196335Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8196742Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.8197122Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8198481Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8198905Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8199306Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8200005Z #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+0x6562cde) 2022-11-23T01:08:10.8200729Z #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+0x20cf997) 2022-11-23T01:08:10.8201110Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8201467Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8202852Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8203216Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8203582Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8204926Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8205358Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8206151Z #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+0xca56e8) 2022-11-23T01:08:10.8206849Z #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+0x2974180) 2022-11-23T01:08:10.8207285Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8208896Z #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+0x57a0418) 2022-11-23T01:08:10.8209276Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8209742Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8210053Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8228415Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8228966Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8229183Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8229394Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8229685Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8229950Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8230523Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8230843Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8231007Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8231017Z 2022-11-23T01:08:10.8231448Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.8231814Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8232030Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8232313Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8232679Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8233485Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8233967Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8234447Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8234921Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8236880Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8238069Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8238690Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8240608Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8241148Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8241479Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8241972Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8244006Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8244566Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8246577Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8247107Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8247593Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8249686Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8250266Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8252284Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8252853Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8253198Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8253733Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8255778Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8256331Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8258300Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8258943Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8259434Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8261569Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8262195Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8264219Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8264751Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8265090Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8265334Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8266528Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8266804Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8267153Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8267510Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8267980Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8268380Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8269122Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8269922Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8270305Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8270662Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8272038Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8272396Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8272767Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8274080Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8274482Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8275259Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8275997Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8276441Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8278062Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8278439Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8278899Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8279204Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8279490Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8279949Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8280146Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8280345Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8280554Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8280824Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8281395Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8281605Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8281763Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8281773Z 2022-11-23T01:08:10.8282170Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.8282466Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8282854Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8283436Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8283739Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8284301Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8284572Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8284902Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8285704Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8286098Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8286422Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8286767Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8287800Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8288089Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8288488Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8289698Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8290073Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8291471Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8291785Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8292030Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8293116Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8293403Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8293668Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8294123Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8294318Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8294523Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8294734Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8294994Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8295563Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8295775Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8295936Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8295944Z 2022-11-23T01:08:10.8299230Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8299351Z ================== 2022-11-23T01:08:10.8299739Z ================== 2022-11-23T01:08:10.8300032Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8300331Z  Write of size 2 at 0x7b840000b34e by thread T1: 2022-11-23T01:08:10.8304480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8305000Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8305380Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8305879Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8306399Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8306890Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8307128Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8307521Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8307757Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8307766Z 2022-11-23T01:08:10.8308089Z  Previous write of size 2 at 0x7b840000b34e by main thread: 2022-11-23T01:08:10.8312222Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8312699Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8313092Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8313627Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8314143Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8314527Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8314908Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8315314Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.8315678Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8316990Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8317410Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8317807Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8318495Z #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+0x6562cde) 2022-11-23T01:08:10.8319200Z #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+0x20cf997) 2022-11-23T01:08:10.8319582Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8319935Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8321295Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8321693Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8322062Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8323382Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8323778Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8324567Z #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+0xca56e8) 2022-11-23T01:08:10.8325258Z #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+0x2974180) 2022-11-23T01:08:10.8325687Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8327269Z #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+0x57a0418) 2022-11-23T01:08:10.8327646Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8328107Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8328411Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8328704Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8329159Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8329402Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8329611Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8329818Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8330099Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8330668Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8330880Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8331041Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8331050Z 2022-11-23T01:08:10.8331446Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.8331735Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8331953Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8332234Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8332605Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8333418Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8333900Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8334375Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8334860Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8336811Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8338006Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8338708Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8340604Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8341110Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8341438Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8341926Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8343964Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8344523Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8346537Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8347069Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8347559Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8349716Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8350303Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8352352Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8352926Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8353268Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8353801Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8355826Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8356386Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8358349Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8358840Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8359361Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8361435Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8362063Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8364080Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8364605Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8364947Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8365210Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8366423Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8366689Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8367026Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8367414Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8367831Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8368228Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8368931Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8369627Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8370010Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8370372Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8371753Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8372113Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8372489Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8373778Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8374212Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8374994Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8375720Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8376153Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8377744Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8378120Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8378678Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8378991Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8379283Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8379727Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8379925Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8380131Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8380346Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8380608Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8381182Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8381396Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8381556Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8381566Z 2022-11-23T01:08:10.8381956Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.8382249Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8382635Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8383274Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8383617Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8384142Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8384411Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8384755Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8385525Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8385918Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8386252Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8386597Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8387616Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8387911Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8388320Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8389542Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8389996Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8391440Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8391750Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8392058Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8393109Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8393366Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8393627Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8394086Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8394291Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8394503Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8394702Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8394962Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8395535Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8395746Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8395906Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8395915Z 2022-11-23T01:08:10.8399080Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8399200Z ================== 2022-11-23T01:08:10.8399309Z ================== 2022-11-23T01:08:10.8399605Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8399909Z  Write of size 2 at 0x7b840000ae62 by thread T2: 2022-11-23T01:08:10.8403936Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8404437Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8404832Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8405351Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8405864Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8406345Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8406589Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8406983Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8407223Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8407232Z 2022-11-23T01:08:10.8407561Z  Previous write of size 2 at 0x7b840000ae62 by main thread: 2022-11-23T01:08:10.8411568Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:10.8412078Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8412462Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8412996Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8413517Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8413848Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8414217Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8414624Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:10.8414999Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8416330Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8416750Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8417140Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8417840Z #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+0x6562cde) 2022-11-23T01:08:10.8418655Z #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+0x20cf997) 2022-11-23T01:08:10.8419041Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8419393Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8420825Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8421246Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8421609Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8422908Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8423319Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8424124Z #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+0xca56e8) 2022-11-23T01:08:10.8424825Z #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+0x2974180) 2022-11-23T01:08:10.8425261Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8426859Z #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+0x57a0418) 2022-11-23T01:08:10.8427235Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8427731Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8428043Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8428367Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8428826Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8429025Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8429233Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8429430Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8429752Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8430335Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8430544Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8430708Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8430717Z 2022-11-23T01:08:10.8431121Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2022-11-23T01:08:10.8431414Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8431629Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8431913Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8432276Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8433087Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8433568Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8434041Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8434523Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8436522Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8437727Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8438272Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8440170Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8440671Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8441002Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8441498Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8443590Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8444178Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8446168Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8446663Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8447149Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8449236Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8449831Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8451887Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8452448Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8452798Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8453330Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8455240Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8455554Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8456674Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8456987Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8457254Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8458386Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8458885Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8459977Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8460268Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8460460Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8460654Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8461301Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8461490Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8461684Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8461887Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8462121Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8462345Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8462734Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8463125Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8463340Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8463542Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8464305Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8464511Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8464716Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8465453Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8465702Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8466130Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8466517Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8466757Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8467692Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8467918Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8468179Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8468345Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8468507Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8468762Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8468880Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8468999Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8469119Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8469267Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8469689Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8469812Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8469904Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8469912Z 2022-11-23T01:08:10.8470147Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8470332Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8470552Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8470866Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8471038Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8471333Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8471489Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8471679Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8472083Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8472299Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8472486Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8472676Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8473232Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8473399Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8473627Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8474285Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8474496Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8475306Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8475512Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8475654Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8476230Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8476376Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8476526Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8476779Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8476883Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8477006Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8477127Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8477272Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8477586Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8477704Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8477796Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8477801Z 2022-11-23T01:08:10.8479469Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:10.8479541Z ================== 2022-11-23T01:08:10.8637348Z ================== 2022-11-23T01:08:10.8639159Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8639596Z  Write of size 4 at 0x7b9400021180 by main thread: 2022-11-23T01:08:10.8643013Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:10.8643519Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8643826Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8644266Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8644671Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8644954Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8645227Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8645530Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:10.8645856Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8646788Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8647165Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8647428Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8647916Z #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+0x6562cde) 2022-11-23T01:08:10.8648450Z #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+0x20cf997) 2022-11-23T01:08:10.8648724Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8648962Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8649861Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8650136Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8650379Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8651402Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8651771Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8652470Z #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+0xca56e8) 2022-11-23T01:08:10.8653215Z #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+0x2974180) 2022-11-23T01:08:10.8653538Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8655026Z #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+0x57a0418) 2022-11-23T01:08:10.8655419Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8655898Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8656226Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8656519Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8657001Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8657145Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8657268Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8657390Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8657536Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8657850Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8657967Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8658048Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8658055Z 2022-11-23T01:08:10.8658262Z  Previous write of size 4 at 0x7b9400021180 by thread T2: 2022-11-23T01:08:10.8660660Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:10.8660960Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8661183Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8661497Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8661788Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8662060Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8662202Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8662429Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8662567Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8662573Z 2022-11-23T01:08:10.8662797Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2022-11-23T01:08:10.8662965Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8663075Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8663238Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8663448Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8663890Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8664164Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8664433Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8664730Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8666182Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8667300Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8667612Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8668667Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8668944Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8669137Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8669410Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8670658Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8671000Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8672052Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8672345Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8672617Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8673777Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8674104Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8675247Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8675539Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8675733Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8676033Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8677135Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8677443Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8678526Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8678828Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8679099Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8680253Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8680575Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8681707Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8681996Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8682215Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8682361Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8683006Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8683161Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8683361Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8683560Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8683793Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8684016Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8684399Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8684788Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8685032Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8685232Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8686005Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8686207Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8686412Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8687164Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8687387Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8687818Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8688203Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8688443Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8689303Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8689516Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8689779Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8689955Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8690117Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8690397Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8690513Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8690632Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8690751Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8690925Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8691237Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8691354Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8691449Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8691454Z 2022-11-23T01:08:10.8691667Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8691833Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8692058Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8692376Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8692550Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8692844Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8692995Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8693189Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8693596Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8693887Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8694112Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8694414Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8695267Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8695537Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8695906Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8697066Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8697453Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8698754Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8699085Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8699293Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8700196Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8700358Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8700552Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8700810Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8700913Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8701033Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8701154Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8701300Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8701614Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8701733Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8701827Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8701833Z 2022-11-23T01:08:10.8703591Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:10.8703699Z ================== 2022-11-23T01:08:10.8703790Z ================== 2022-11-23T01:08:10.8703963Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8704141Z  Write of size 4 at 0x7b9400021188 by main thread: 2022-11-23T01:08:10.8706288Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:10.8706553Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8706780Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8707063Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8707366Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8707669Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8707947Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8708317Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:10.8708658Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8709927Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8710370Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8710726Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8711350Z #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+0x6562cde) 2022-11-23T01:08:10.8711966Z #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+0x20cf997) 2022-11-23T01:08:10.8712325Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8712659Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8713881Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8714209Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8714534Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8715695Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8716065Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8716828Z #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+0xca56e8) 2022-11-23T01:08:10.8717488Z #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+0x2974180) 2022-11-23T01:08:10.8717792Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8719024Z #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+0x57a0418) 2022-11-23T01:08:10.8719300Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8719712Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8720046Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8720266Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8720657Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8720841Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8721007Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8721187Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8721428Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8721838Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8722036Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8722166Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8722175Z 2022-11-23T01:08:10.8722404Z  Previous write of size 4 at 0x7b9400021188 by thread T2: 2022-11-23T01:08:10.8724626Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:10.8724946Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8725161Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8725447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8725738Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8726020Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8726148Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8726380Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8726516Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8726521Z 2022-11-23T01:08:10.8726742Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2022-11-23T01:08:10.8726912Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8727032Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8727194Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8727400Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8727849Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8728117Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8728416Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8728684Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8729777Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8730419Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8730725Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8731750Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8732038Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8732253Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8732526Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8733659Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8733968Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8735029Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8735309Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8735579Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8736760Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8737106Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8738203Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8738611Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8738807Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8739110Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8740261Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8740571Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8741671Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8741948Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8742219Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8743360Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8743682Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8744798Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8745139Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8745333Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8745469Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8746122Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8746274Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8746469Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8746656Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8746891Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8747110Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8747496Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8747894Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8748108Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8748309Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8749085Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8749313Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8749516Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8750301Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8750529Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8750960Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8751349Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8751591Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8752466Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8752681Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8752971Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8753147Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8753339Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8753593Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8753699Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8753818Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8753939Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8754089Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8754410Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8754597Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8754696Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8754702Z 2022-11-23T01:08:10.8755018Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8755217Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8755550Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8756050Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8756332Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8756700Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8756922Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8757223Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8757786Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8758113Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8758376Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8758628Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8759386Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8759666Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8759964Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8760735Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8761017Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8761956Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8762195Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8762344Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8763106Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8763259Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8763457Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8763803Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8763923Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8764047Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8764195Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8764383Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8764712Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8764877Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8765002Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8765010Z 2022-11-23T01:08:10.8767677Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:10.8767814Z ================== 2022-11-23T01:08:10.8767918Z ================== 2022-11-23T01:08:10.8768215Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8768526Z  Write of size 4 at 0x7b940002118c by main thread: 2022-11-23T01:08:10.8772322Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:10.8772799Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8773198Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8773614Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8774106Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8774414Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8774706Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8775086Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:10.8775403Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8776567Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8776956Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8777298Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8777887Z #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+0x6562cde) 2022-11-23T01:08:10.8778601Z #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+0x20cf997) 2022-11-23T01:08:10.8778840Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8779141Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8780221Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8780535Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8780817Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8781675Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8781973Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8782418Z #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+0xca56e8) 2022-11-23T01:08:10.8782973Z #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+0x2974180) 2022-11-23T01:08:10.8783411Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8784830Z #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+0x57a0418) 2022-11-23T01:08:10.8785213Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8785689Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8785995Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8786167Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8786420Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8786537Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8786657Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8786776Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8786923Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8787223Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8787341Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8787475Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8787482Z 2022-11-23T01:08:10.8787696Z  Previous write of size 4 at 0x7b940002118c by thread T2: 2022-11-23T01:08:10.8789946Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:10.8790274Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8790497Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8790782Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8791075Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8791344Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8791485Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8791711Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8791838Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8791844Z 2022-11-23T01:08:10.8792068Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2022-11-23T01:08:10.8792238Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8792361Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8792520Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8792724Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8793193Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8793461Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8793752Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8794018Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8795102Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8795722Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8796032Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8797095Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8797368Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8797580Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8797851Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8798950Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8799259Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8800329Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8800602Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8800897Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8802034Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8802388Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8803482Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8803784Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8803978Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8804275Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8805389Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8805720Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8806778Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8807052Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8807325Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8808466Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8808815Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8809903Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8810229Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8810427Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8810573Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8811210Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8811364Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8811561Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8811761Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8811995Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8812317Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8812952Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8813718Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8814086Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8814518Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8815631Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8815969Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8816363Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8817633Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8818049Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8818768Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8819372Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8819781Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8820863Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8821251Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8821646Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8821907Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8822175Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8822570Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8822770Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8822967Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8823134Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8823377Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8823876Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8824072Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8824227Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8824239Z 2022-11-23T01:08:10.8824606Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8824880Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8825243Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8825844Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8826160Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8826695Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8826930Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8827222Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8827866Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8828197Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8828465Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8828798Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8829668Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8829989Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8830346Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8831359Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8831714Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8832946Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8833150Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8833328Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8834274Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8834499Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8834755Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8835153Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8835344Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8835542Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8835806Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8836051Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8836528Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8836779Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8836904Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8836911Z 2022-11-23T01:08:10.8839702Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:10.8839781Z ================== 2022-11-23T01:08:10.8839848Z ================== 2022-11-23T01:08:10.8840043Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8840298Z  Write of size 4 at 0x7b9400021190 by main thread: 2022-11-23T01:08:10.8843272Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:10.8843546Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8843772Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8844058Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8844401Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8844594Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8844829Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8845059Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:10.8845274Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8845991Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8846232Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8846452Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8846838Z #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+0x6562cde) 2022-11-23T01:08:10.8847239Z #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+0x20cf997) 2022-11-23T01:08:10.8847451Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8847643Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8848403Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8848633Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8848840Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8849575Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8849801Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8850229Z #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+0xca56e8) 2022-11-23T01:08:10.8850613Z #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+0x2974180) 2022-11-23T01:08:10.8850853Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8851729Z #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+0x57a0418) 2022-11-23T01:08:10.8851947Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8852207Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8852387Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8852553Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8852809Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8852914Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8853061Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8853185Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8853334Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8853676Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8853798Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8853891Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8853898Z 2022-11-23T01:08:10.8854096Z  Previous write of size 4 at 0x7b9400021190 by thread T2: 2022-11-23T01:08:10.8856261Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:10.8856523Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8856750Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8857031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8857322Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8857593Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8857740Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8857964Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8858102Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8858109Z 2022-11-23T01:08:10.8858332Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2022-11-23T01:08:10.8858606Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8858782Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8858944Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8859135Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8859634Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8859906Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8860174Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8860441Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8861513Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8862156Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8862462Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8863512Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8863828Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8864016Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8864291Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8865404Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8865714Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8866809Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8867089Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8867390Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8868518Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8868857Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8870035Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8870329Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8870526Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8870861Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8871965Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8872303Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8873665Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8874053Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8874491Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8876314Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8876845Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8878438Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8878926Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8879223Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8879461Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8880379Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8880614Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8880919Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8881188Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8881521Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8881871Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8882516Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8883150Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8883387Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8883629Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8884683Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8884950Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8885218Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8886340Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8886731Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8887383Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8887995Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8888404Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8889640Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8890018Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8890422Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8890699Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8890922Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8891315Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8891501Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8891687Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8891879Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8892107Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8892618Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8892784Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8892925Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8892936Z 2022-11-23T01:08:10.8893306Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8893505Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8893850Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8894268Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8894532Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8894989Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8895223Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8895622Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8896373Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8896692Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8897038Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8897335Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8898168Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8898349Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8898729Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8899678Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8900020Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8901169Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8901446Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8901629Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8902395Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8902612Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8902766Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8903023Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8903193Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8903313Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8903434Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8903581Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8903899Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8904018Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8904101Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8904108Z 2022-11-23T01:08:10.8905795Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:10.8905868Z ================== 2022-11-23T01:08:10.8905934Z ================== 2022-11-23T01:08:10.8906090Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.8906270Z  Write of size 4 at 0x7b9400021194 by main thread: 2022-11-23T01:08:10.8908397Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:10.8908717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8908942Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8909255Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8909543Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8909809Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.8910017Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.8910246Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:10.8910464Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.8911178Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:10.8911419Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:10.8911637Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8912023Z #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+0x6562cde) 2022-11-23T01:08:10.8912413Z #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+0x20cf997) 2022-11-23T01:08:10.8912631Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8912829Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8913607Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8913837Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8914043Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8914753Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8914990Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8915417Z #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+0xca56e8) 2022-11-23T01:08:10.8915799Z #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+0x2974180) 2022-11-23T01:08:10.8916039Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8916894Z #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+0x57a0418) 2022-11-23T01:08:10.8917106Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8917391Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8917565Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8917727Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8918009Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8918124Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8918242Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8918362Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8918509Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8918814Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8918932Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8919025Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8919033Z 2022-11-23T01:08:10.8919221Z  Previous write of size 4 at 0x7b9400021194 by thread T2: 2022-11-23T01:08:10.8921355Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:10.8921632Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.8921854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.8922134Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.8922425Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.8922691Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.8922859Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.8923082Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.8923243Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.8923248Z 2022-11-23T01:08:10.8923469Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2022-11-23T01:08:10.8923636Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.8923757Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.8923915Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.8924117Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.8924558Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.8924827Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.8925090Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.8925356Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.8926434Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.8927060Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.8927388Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.8928452Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.8928728Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.8928918Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:10.8929189Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:10.8930291Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:10.8930612Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8931693Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8932004Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8932276Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8933422Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8933743Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8934834Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8935163Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8935391Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8935687Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:10.8936778Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:10.8937086Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:10.8938144Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:10.8938418Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:10.8938820Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:10.8940001Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:10.8940357Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:10.8941440Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:10.8941742Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:10.8941935Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:10.8942086Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:10.8942729Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:10.8942886Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:10.8943082Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:10.8943310Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:10.8943545Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:10.8943788Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:10.8944170Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:10.8944557Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:10.8944771Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:10.8944973Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.8945722Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.8945926Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.8946130Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.8946838Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:10.8947065Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:10.8947517Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:10.8947904Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:10.8948173Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:10.8949074Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.8949289Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.8949551Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:10.8949797Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:10.8949961Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:10.8950218Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8950337Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8950458Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8950581Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8950717Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8951035Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8951154Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8951250Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8951256Z 2022-11-23T01:08:10.8951480Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.8951655Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.8951878Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.8952196Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.8952401Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.8952699Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.8952883Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.8953074Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.8953485Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.8953707Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.8953898Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.8954089Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.8954650Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.8954818Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.8955049Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.8955716Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.8955930Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.8956709Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.8956889Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.8957032Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.8957634Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.8957810Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.8957962Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.8958220Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.8958338Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.8958459Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.8958578Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.8958727Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.8959047Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.8959168Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.8959250Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.8959255Z 2022-11-23T01:08:10.8960940Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:10.8961013Z ================== 2022-11-23T01:08:10.9004725Z ================== 2022-11-23T01:08:10.9005086Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9005423Z  Write of size 8 at 0x7ba400016760 by thread T1: 2022-11-23T01:08:10.9009428Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9009940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9010319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9010804Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9011312Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9011782Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9012018Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9012398Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9012627Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9012636Z 2022-11-23T01:08:10.9012961Z  Previous write of size 8 at 0x7ba400016760 by main thread: 2022-11-23T01:08:10.9016753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9017203Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9017626Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9018115Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9018801Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9019143Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9019483Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9019871Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9020230Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9021606Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9021837Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9022108Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9022947Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9023151Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9023362Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9024209Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9024487Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9025348Z #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+0x57a0418) 2022-11-23T01:08:10.9025563Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9025730Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9025990Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9026109Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9026228Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9026353Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9026504Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9026817Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9026936Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9027030Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9027037Z 2022-11-23T01:08:10.9027281Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9027438Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9027565Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9027726Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9027932Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9028376Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9028674Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9028940Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9029235Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9030381Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9031010Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9031316Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9032360Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9032668Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9032846Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9033525Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9033736Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9033946Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9034734Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9034982Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9035844Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9036056Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9036222Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9036481Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9036600Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9036720Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9036840Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9036990Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9037330Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9037451Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9037583Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9037589Z 2022-11-23T01:08:10.9037807Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9037973Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9038193Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9038512Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9038685Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9038976Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9039131Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9039320Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9039723Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9039943Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9040132Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9040326Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9040882Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9041049Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9041277Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9041944Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9042182Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9042950Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9043158Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9043302Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9043877Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9044025Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9044173Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9044434Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9044550Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9044669Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9044794Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9044942Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9045255Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9045373Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9045466Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9045471Z 2022-11-23T01:08:10.9047845Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9047965Z ================== 2022-11-23T01:08:10.9048119Z ================== 2022-11-23T01:08:10.9048403Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9048667Z  Write of size 8 at 0x7ba400017b10 by thread T3: 2022-11-23T01:08:10.9051805Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9052187Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9052453Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9052751Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9053102Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9053496Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9053703Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9054020Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9054215Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9054226Z 2022-11-23T01:08:10.9054524Z  Previous write of size 8 at 0x7ba400017b10 by thread T1: 2022-11-23T01:08:10.9057731Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9058146Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9058438Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9058947Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9059380Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9059804Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9060027Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9060388Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9060598Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9060609Z 2022-11-23T01:08:10.9060962Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9061199Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9061357Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9061625Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9061960Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9062680Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9063114Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9063544Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9064049Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9065404Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9066353Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9066722Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9068028Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9068494Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9068817Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9069731Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9069947Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9070158Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9070975Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9071222Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9072091Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9072304Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9072472Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9072730Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9072848Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9072969Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9073078Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9073227Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9073542Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9073660Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9073754Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9073760Z 2022-11-23T01:08:10.9074019Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.9074189Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9074411Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9074758Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9074933Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9075228Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9075381Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9075570Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9075987Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9076209Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9076393Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9076572Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9077142Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9077308Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9077530Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9078192Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9078403Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9079203Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9079417Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9079559Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9080137Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9080283Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9080433Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9080688Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9080807Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9080927Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9081048Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9081198Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9081510Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9081630Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9081712Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9081718Z 2022-11-23T01:08:10.9081930Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9082097Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9082317Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9082635Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9082812Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9083108Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9083263Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9083457Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9083893Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9084115Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9084329Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9084523Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9085082Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9085246Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9085472Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9086132Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9086345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9087116Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9087297Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9087443Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9088021Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9088169Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9088347Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9088602Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9088748Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9088868Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9088988Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9089137Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9089449Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9089568Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9089664Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9089669Z 2022-11-23T01:08:10.9091644Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9091760Z ================== 2022-11-23T01:08:10.9092411Z ================== 2022-11-23T01:08:10.9092686Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9092943Z  Write of size 8 at 0x7ba4000153b0 by thread T2: 2022-11-23T01:08:10.9096541Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9096974Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9097453Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9097875Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9098421Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9098974Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9099192Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9099518Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9099741Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9099750Z 2022-11-23T01:08:10.9100055Z  Previous write of size 8 at 0x7ba4000153b0 by main thread: 2022-11-23T01:08:10.9103500Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:10.9103899Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9104258Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9104684Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9105114Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9105413Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9105786Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9106139Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9106473Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9107725Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9108106Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9108419Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9109653Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9109938Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9110257Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9111543Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9111914Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9113251Z #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+0x57a0418) 2022-11-23T01:08:10.9113636Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9113954Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9114357Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9114553Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9114738Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9114933Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9115146Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9115632Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9115822Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9115977Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9115988Z 2022-11-23T01:08:10.9116379Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9116658Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9116861Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9117115Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9117442Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9118151Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9118426Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9118708Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9119116Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9120806Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9121854Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9122338Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9123949Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9124401Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9124682Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9125471Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9125657Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9125970Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9127152Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9127514Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9128861Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9129214Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9129451Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9129862Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9130008Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9130200Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9130403Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9130646Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9131131Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9131326Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9131478Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9131488Z 2022-11-23T01:08:10.9131827Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.9132104Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9132427Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9132753Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9132959Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9133264Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9133492Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9133760Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9134386Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9134742Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9135037Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9135382Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9136373Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9136668Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9137092Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9137958Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9138304Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9139753Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9140097Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9140396Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9141453Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9141706Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9141977Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9142440Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9142640Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9142858Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9143063Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9143326Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9143903Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9144120Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9144287Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9144298Z 2022-11-23T01:08:10.9147309Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9147439Z ================== 2022-11-23T01:08:10.9147623Z ================== 2022-11-23T01:08:10.9147941Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9148263Z  Write of size 8 at 0x7ba400016768 by thread T1: 2022-11-23T01:08:10.9152374Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9152958Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9153354Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9153868Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9154403Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9154900Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9155156Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9155508Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9155638Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9155645Z 2022-11-23T01:08:10.9155837Z  Previous write of size 8 at 0x7ba400016768 by main thread: 2022-11-23T01:08:10.9158031Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9158295Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9158544Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9158824Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9159111Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9159307Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9159510Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9159740Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9159952Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9160731Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9160950Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9161149Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9161897Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9162103Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9162310Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9163122Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9163396Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9164249Z #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+0x57a0418) 2022-11-23T01:08:10.9164464Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9164628Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9164886Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9165003Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9165123Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9165243Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9165392Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9165711Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9165819Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9165912Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9165918Z 2022-11-23T01:08:10.9166139Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9166310Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9166434Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9166596Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9166802Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9167275Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9167548Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9167859Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9168123Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9169194Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9169830Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9170137Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9171194Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9171520Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9171694Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9172344Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9172525Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9172733Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9173511Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9173753Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9174629Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9174842Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9175006Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9175307Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9175486Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9175674Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9175861Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9176132Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9176690Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9176910Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9177057Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9177066Z 2022-11-23T01:08:10.9177391Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9177706Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9178042Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9178621Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9178895Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9179342Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9179628Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9179962Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9180718Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9181102Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9181412Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9181755Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9182792Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9183073Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9183474Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9184485Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9184871Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9186111Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9186418Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9186563Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9187418Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9187624Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9187874Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9188228Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9188409Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9188609Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9188782Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9189002Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9189507Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9189783Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9189897Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9189903Z 2022-11-23T01:08:10.9192551Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9192720Z ================== 2022-11-23T01:08:10.9192828Z ================== 2022-11-23T01:08:10.9193090Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9193341Z  Write of size 8 at 0x7ba400017b18 by thread T3: 2022-11-23T01:08:10.9196792Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9197119Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9197350Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9197635Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9197988Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9198262Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9198408Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9198636Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9198774Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9198781Z 2022-11-23T01:08:10.9198975Z  Previous write of size 8 at 0x7ba400017b18 by thread T1: 2022-11-23T01:08:10.9201227Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9201530Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9201759Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9202043Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9202336Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9202605Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9202751Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9202962Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9203101Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9203107Z 2022-11-23T01:08:10.9203330Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9203501Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9203631Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9203790Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9203997Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9204447Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9204745Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9205010Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9205301Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9206367Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9207009Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9207313Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9208356Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9208660Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9208837Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9209479Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9209685Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9209894Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9210671Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9210916Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9211791Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9212004Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9212173Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9212429Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9212534Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9212654Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9212772Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9212919Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9213259Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9213378Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9213509Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9213514Z 2022-11-23T01:08:10.9213725Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.9213890Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9214110Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9214429Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9214601Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9214894Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9215046Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9215225Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9215631Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9215853Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9216038Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9216232Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9216789Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9216955Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9217179Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9217968Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9218279Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9219453Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9219801Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9220019Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9220956Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9221210Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9221446Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9221880Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9222069Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9222260Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9222465Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9222672Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9223100Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9223295Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9223409Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9223415Z 2022-11-23T01:08:10.9223775Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9223988Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9224285Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9224755Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9225030Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9225485Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9225789Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9226098Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9226782Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9227137Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9227407Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9227705Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9228552Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9228825Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9229103Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9230134Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9230466Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9231689Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9231960Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9232187Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9233131Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9233406Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9233648Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9234018Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9234142Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9234262Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9234383Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9234538Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9234966Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9235108Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9235195Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9235216Z 2022-11-23T01:08:10.9237189Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9237300Z ================== 2022-11-23T01:08:10.9237468Z ================== 2022-11-23T01:08:10.9237708Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9238032Z  Write of size 8 at 0x7ba4000153b8 by thread T2: 2022-11-23T01:08:10.9240480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9240747Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9241010Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9241295Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9241589Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9241858Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9242002Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9242229Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9242366Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9242373Z 2022-11-23T01:08:10.9242563Z  Previous write of size 8 at 0x7ba4000153b8 by main thread: 2022-11-23T01:08:10.9244670Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:10.9244929Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9245152Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9245429Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9245744Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9245964Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9246166Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9246395Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9246605Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9247387Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9247606Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9247810Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9248572Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9248780Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9248985Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9249793Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9250036Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9250923Z #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+0x57a0418) 2022-11-23T01:08:10.9251146Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9251303Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9251558Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9251675Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9251795Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9251916Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9252065Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9252373Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9252494Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9252586Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9252591Z 2022-11-23T01:08:10.9252812Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9252978Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9253090Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9253250Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9253455Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9253900Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9254170Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9254431Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9254722Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9255797Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9256461Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9256765Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9257812Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9258144Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9258392Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9259570Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9259895Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9260227Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9261386Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9261690Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9262748Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9263066Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9263333Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9263701Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9263832Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9263951Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9264078Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9264291Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9264611Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9264718Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9264874Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9264881Z 2022-11-23T01:08:10.9265116Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.9265285Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9265538Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9265854Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9266029Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9266325Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9266478Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9266670Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9267073Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9267293Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9267479Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9267672Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9268225Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9268393Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9268622Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9269282Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9269494Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9270366Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9270571Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9270749Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9271340Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9271488Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9271626Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9271883Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9272000Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9272119Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9272243Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9272390Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9272703Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9272827Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9272922Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9272928Z 2022-11-23T01:08:10.9274618Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9274730Z ================== 2022-11-23T01:08:10.9274827Z ================== 2022-11-23T01:08:10.9275098Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9275381Z  Write of size 8 at 0x7ba400016770 by thread T1: 2022-11-23T01:08:10.9278895Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9279202Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9279427Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9279712Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9280051Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9280322Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9280465Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9280690Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9280827Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9280833Z 2022-11-23T01:08:10.9281028Z  Previous write of size 8 at 0x7ba400016770 by main thread: 2022-11-23T01:08:10.9283189Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9283478Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9283700Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9283984Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9284271Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9284465Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9284664Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9284890Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9285108Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9285888Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9286108Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9286308Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9287097Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9287298Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9287562Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9288338Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9288580Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9289456Z #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+0x57a0418) 2022-11-23T01:08:10.9289668Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9289834Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9290089Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9290204Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9290324Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9290435Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9290585Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9290896Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9291019Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9291114Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9291119Z 2022-11-23T01:08:10.9291343Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9291510Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9291635Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9291821Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9292028Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9292472Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9292779Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9293044Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9293307Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9294383Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9295022Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9295328Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9296385Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9296686Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9296869Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9297528Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9297712Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9297927Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9298816Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9299060Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9300222Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9300592Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9300834Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9301279Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9301522Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9301738Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9301960Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9302233Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9302816Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9303034Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9303203Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9303214Z 2022-11-23T01:08:10.9303613Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9303816Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9304042Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9304363Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9304542Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9304836Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9304992Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9305184Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9305589Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9305812Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9306000Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9306194Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9306753Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9306919Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9307180Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9307845Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9308081Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9308863Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9309041Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9309187Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9309850Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9310002Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9310152Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9310405Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9310511Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9310631Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9310755Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9310902Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9311218Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9311337Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9311432Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9311438Z 2022-11-23T01:08:10.9313124Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9313220Z ================== 2022-11-23T01:08:10.9313300Z ================== 2022-11-23T01:08:10.9313472Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9313654Z  Write of size 8 at 0x7ba400017b20 by thread T3: 2022-11-23T01:08:10.9317260Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9317688Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9318027Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9318494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9318970Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9319397Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9319676Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9319972Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9320169Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9320177Z 2022-11-23T01:08:10.9320378Z  Previous write of size 8 at 0x7ba400017b20 by thread T1: 2022-11-23T01:08:10.9322784Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9323190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9323518Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9323965Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9324446Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9324922Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9325156Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9325571Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9325806Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9325817Z 2022-11-23T01:08:10.9326089Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9326264Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9326390Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9326551Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9326760Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9327258Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9327527Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9327826Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9328092Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9329181Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9329807Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9330119Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9331196Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9331507Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9331684Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9332333Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9332512Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9332719Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9333501Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9333749Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9334620Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9334833Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9334999Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9335253Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9335398Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9335520Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9335630Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9335807Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9336118Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9336236Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9336329Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9336334Z 2022-11-23T01:08:10.9336546Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.9336711Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9336934Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9337251Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9337427Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9337722Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9337873Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9338065Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9338577Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9338802Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9338977Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9339168Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9339742Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9339907Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9340118Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9340841Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9341099Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9341926Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9342108Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9342252Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9342833Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9342980Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9343134Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9343389Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9343505Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9343626Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9343748Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9343897Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9344212Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9344320Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9344415Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9344421Z 2022-11-23T01:08:10.9344637Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9344803Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9345074Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9345517Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9345827Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9346235Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9346568Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9346880Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9347547Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9347911Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9348200Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9348509Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9349382Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9349702Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9350082Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9351068Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9351356Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9352502Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9352765Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9353069Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9353998Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9354313Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9354530Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9354919Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9355090Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9355225Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9355409Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9355634Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9356015Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9356144Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9356247Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9356257Z 2022-11-23T01:08:10.9358707Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9358836Z ================== 2022-11-23T01:08:10.9358943Z ================== 2022-11-23T01:08:10.9359240Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9359522Z  Write of size 8 at 0x7ba4000153c0 by thread T2: 2022-11-23T01:08:10.9363339Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9363919Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9375914Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9376283Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9376588Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9376861Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9377005Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9377236Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9377375Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9377383Z 2022-11-23T01:08:10.9377599Z  Previous write of size 8 at 0x7ba4000153c0 by main thread: 2022-11-23T01:08:10.9379916Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:10.9380178Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9380516Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9380806Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9381137Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9381330Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9381534Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9381766Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9381980Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9382764Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9382979Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9383180Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9383929Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9384135Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9384344Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9385160Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9385445Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9386306Z #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+0x57a0418) 2022-11-23T01:08:10.9386520Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9386685Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9386943Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9387062Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9387179Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9387300Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9387446Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9387759Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9387877Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9387957Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9387964Z 2022-11-23T01:08:10.9388196Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9388366Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9388491Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9388652Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9388861Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9389302Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9389667Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9389939Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9390233Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9391325Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9391953Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9392257Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9393300Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9393605Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9393784Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9394462Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9394641Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9394850Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9395636Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9395879Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9396756Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9396969Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9397137Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9397392Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9397507Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9397614Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9397734Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9397909Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9398225Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9398372Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9398465Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9398471Z 2022-11-23T01:08:10.9398687Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:10.9398855Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9399075Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9399395Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9399819Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9400331Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9400969Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9401399Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9402228Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9402649Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9402996Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9403347Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9404496Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9404798Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9405210Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9406543Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9406927Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9408392Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9408711Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9408967Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9410040Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9410304Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9410583Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9411045Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9411253Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9411465Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9411668Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9411930Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9412516Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9412727Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9412897Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9412909Z 2022-11-23T01:08:10.9416124Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9416251Z ================== 2022-11-23T01:08:10.9463813Z ================== 2022-11-23T01:08:10.9464378Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9465076Z  Write of size 8 at 0x7ba400017b08 by thread T1: 2022-11-23T01:08:10.9468957Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:10.9469341Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9469761Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9470195Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9470707Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9471081Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9471287Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9471644Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9471874Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9471885Z 2022-11-23T01:08:10.9472209Z  Previous write of size 8 at 0x7ba400017b08 by main thread: 2022-11-23T01:08:10.9475294Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:10.9475779Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9476154Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9476550Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9476953Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9477231Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:10.9477550Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:10.9477916Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:10.9478225Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:10.9479601Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:10.9480233Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:10.9481220Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:10.9483174Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:10.9483778Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:10.9484338Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:10.9486535Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9487114Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9488747Z #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+0x57a0418) 2022-11-23T01:08:10.9489132Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9489435Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9489900Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9490109Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9490305Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9490520Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9490793Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9491377Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9491585Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9491790Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9491802Z 2022-11-23T01:08:10.9492243Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9492552Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9492810Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9493096Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9493457Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9494290Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9494793Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9495285Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9495769Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9497778Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9499140Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9499702Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9501726Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9502273Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9502593Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9503804Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9504136Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9504502Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9505970Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9506425Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9508079Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9508495Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9508792Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9509261Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9509472Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9509758Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9509974Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9510251Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9510832Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9511046Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9511211Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9511220Z 2022-11-23T01:08:10.9511600Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9511896Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9512299Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9512882Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9513199Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9513740Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9514019Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9514366Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9515143Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9515556Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9515893Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9516235Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9517322Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9517648Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9518068Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9519314Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9519691Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9521194Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9521507Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9521773Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9522846Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9523108Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9523379Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9523848Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9524041Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9524253Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9524471Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9524741Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9525362Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9525581Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9525748Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9525757Z 2022-11-23T01:08:10.9528977Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9529135Z ================== 2022-11-23T01:08:10.9625183Z ================== 2022-11-23T01:08:10.9625537Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:10.9625841Z  Write of size 8 at 0x7ba400018eb8 by thread T3: 2022-11-23T01:08:10.9629637Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:10.9630088Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9630466Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9630934Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9631450Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9632015Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9632252Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9632626Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9632922Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9632933Z 2022-11-23T01:08:10.9633245Z  Previous write of size 8 at 0x7ba400018eb8 by thread T1: 2022-11-23T01:08:10.9636857Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:10.9637287Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:10.9637660Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:10.9638131Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:10.9638626Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:10.9639078Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:10.9639296Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:10.9639661Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:10.9639878Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:10.9639886Z 2022-11-23T01:08:10.9640259Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2022-11-23T01:08:10.9640530Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:10.9640730Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:10.9641040Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:10.9641379Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:10.9642106Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:10.9642632Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:10.9643072Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:10.9643519Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:10.9645332Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:10.9646377Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:10.9646895Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:10.9648680Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:10.9649169Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:10.9649461Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:10.9650566Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:10.9650900Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:10.9651279Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:10.9652740Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:10.9653198Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:10.9654818Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:10.9655245Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:10.9655547Z #21 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca09c) 2022-11-23T01:08:10.9656061Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9656264Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9656480Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9656698Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9656949Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9657533Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9657744Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9657912Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9657921Z 2022-11-23T01:08:10.9658324Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:10.9658785Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9659189Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9659778Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9660091Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9660627Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9660914Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9661265Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9662033Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9662441Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9662787Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9663142Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9664193Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9664487Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9664969Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9666208Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9666638Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9668084Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9668409Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9668664Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9669819Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9670086Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9670350Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9670813Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9671021Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9671228Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9671448Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9671758Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9672356Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9672576Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9672741Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9672751Z 2022-11-23T01:08:10.9673137Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:10.9673423Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:10.9673884Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:10.9674473Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:10.9674831Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:10.9675377Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:10.9675658Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:10.9676010Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:10.9676788Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:10.9677204Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:10.9677540Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:10.9677888Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:10.9678936Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:10.9679244Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:10.9679667Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:10.9680915Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:10.9681303Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:10.9682814Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:10.9683167Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:10.9683428Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:10.9684520Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:10.9684786Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:10.9685061Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:10.9685535Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:10.9685728Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:10.9685942Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:10.9686164Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:10.9686439Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:10.9687026Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:10.9687240Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:10.9687402Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:10.9687416Z 2022-11-23T01:08:10.9690601Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:10.9690727Z ================== 2022-11-23T01:08:11.1714062Z ================== 2022-11-23T01:08:11.1714469Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.1714662Z  Write of size 8 at 0x7ba40001b760 by thread T3: 2022-11-23T01:08:11.1718051Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:11.1718502Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1718854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1719334Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1719795Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1720267Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.1720499Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.1720869Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.1721096Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.1721147Z 2022-11-23T01:08:11.1721502Z  Previous write of size 8 at 0x7ba40001b760 by main thread: 2022-11-23T01:08:11.1724786Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:11.1725195Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1725477Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1725837Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1726300Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1726499Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.1726771Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.1727042Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.1727283Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.1728173Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.1728477Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.1728760Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1729333Z #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+0x6562cde) 2022-11-23T01:08:11.1729821Z #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+0x20cf997) 2022-11-23T01:08:11.1730079Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1730341Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1731290Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1731527Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1731843Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1732907Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1733158Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1733722Z #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+0xca56e8) 2022-11-23T01:08:11.1734222Z #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+0x2974180) 2022-11-23T01:08:11.1734532Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1735575Z #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+0x57a0418) 2022-11-23T01:08:11.1735888Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1736274Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1736600Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1736773Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1737034Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1737150Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1737278Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1737473Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1737704Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1738145Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1738271Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1738390Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1738416Z 2022-11-23T01:08:11.1738892Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.1739125Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.1739333Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.1739575Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.1739832Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.1740389Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.1740770Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.1741109Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.1741549Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.1743246Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.1744014Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.1744326Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.1745370Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.1745649Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.1745839Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.1746115Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.1747248Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.1747597Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1749253Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1749807Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1750197Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1751503Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1751970Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1753232Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1753556Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1753753Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1754048Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.1755154Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.1755480Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1756577Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1756890Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1757161Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1758303Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1758625Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1759734Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1760020Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1760238Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1760387Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.1761054Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.1761208Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.1761405Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.1761609Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.1761844Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.1762061Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1762447Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.1762838Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.1763056Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1763255Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1764039Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1764244Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1764449Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1765183Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1765451Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1765884Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.1766274Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.1766515Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1767381Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.1767595Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1767856Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1768032Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1768195Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1768452Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1768566Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1768683Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1768803Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1768949Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1769276Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1769396Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1769517Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1769524Z 2022-11-23T01:08:11.1769763Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.1769933Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.1770155Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.1770476Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.1770651Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.1770948Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.1771104Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.1771297Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.1771708Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.1771932Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.1772118Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.1772311Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.1772866Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.1773030Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.1773255Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.1773910Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.1774147Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.1774920Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.1775128Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.1775273Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.1775848Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.1775998Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.1776148Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.1776406Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1776520Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1776637Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1776759Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1776905Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1777216Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1777333Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1777425Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1777431Z 2022-11-23T01:08:11.1779217Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.1779293Z ================== 2022-11-23T01:08:11.1784745Z ================== 2022-11-23T01:08:11.1785349Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.1785648Z  Write of size 8 at 0x7ba40001a3b0 by thread T2: 2022-11-23T01:08:11.1789256Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:11.1789973Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1790376Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1790832Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1791349Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1791748Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.1792012Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.1792404Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.1792638Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.1792647Z 2022-11-23T01:08:11.1792998Z  Previous write of size 8 at 0x7ba40001a3b0 by main thread: 2022-11-23T01:08:11.1796968Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:11.1797485Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1797893Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1798385Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1798897Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1799247Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.1799605Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.1799996Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.1800350Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.1801501Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.1801906Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.1802264Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1802894Z #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+0x6562cde) 2022-11-23T01:08:11.1803622Z #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+0x20cf997) 2022-11-23T01:08:11.1803995Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1804426Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1805768Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1806168Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1806540Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1807839Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1808197Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1808892Z #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+0xca56e8) 2022-11-23T01:08:11.1809592Z #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+0x2974180) 2022-11-23T01:08:11.1809965Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1811394Z #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+0x57a0418) 2022-11-23T01:08:11.1811791Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1812263Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1812570Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1812841Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1813276Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1813459Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1813614Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1813797Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1814029Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1814543Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1814745Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1814898Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1814907Z 2022-11-23T01:08:11.1815301Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.1815576Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.1815778Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.1816043Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.1816360Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.1817037Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.1817442Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.1817853Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.1818267Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.1820197Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.1821186Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.1821658Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.1823134Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.1823535Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.1823818Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.1824226Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.1825856Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.1826357Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1827621Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1828032Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1828430Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1830174Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1830710Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1832290Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1832732Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1833005Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1833335Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.1834939Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.1835395Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1836980Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1837439Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1837855Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1839493Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1840007Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1841602Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1842078Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1842379Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1842628Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.1843585Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.1843848Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.1844147Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.1844457Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.1844821Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.1845176Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1845774Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.1846386Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.1846718Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1847043Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1848070Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1848279Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1848519Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1849411Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1849750Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1850457Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.1851160Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.1851458Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1852706Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.1852983Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1853383Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1853562Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1853815Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1854284Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1854506Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1854758Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1854886Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1855038Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1855528Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1855706Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1855854Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1855864Z 2022-11-23T01:08:11.1856273Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.1856531Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.1856890Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.1857306Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.1857570Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.1857928Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.1858090Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.1858357Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.1858998Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.1859286Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.1859481Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.1859729Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.1860367Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.1860570Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.1860852Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.1861775Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.1862166Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.1863259Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.1863501Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.1863678Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.1864470Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.1864684Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.1864838Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.1865138Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1865289Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1865471Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1865652Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1865896Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1866380Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1866589Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1866738Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1866747Z 2022-11-23T01:08:11.1869310Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.1869421Z ================== 2022-11-23T01:08:11.1869489Z ================== 2022-11-23T01:08:11.1869818Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.1870003Z  Write of size 8 at 0x7ba40001b768 by thread T3: 2022-11-23T01:08:11.1872720Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:11.1873067Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1873418Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1873739Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1874163Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1874518Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.1874693Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.1874992Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.1875151Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.1875159Z 2022-11-23T01:08:11.1875456Z  Previous write of size 8 at 0x7ba40001b768 by main thread: 2022-11-23T01:08:11.1878790Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:11.1879253Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1879525Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1879832Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1880169Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1880419Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.1880687Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.1880973Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.1881256Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.1882219Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.1882467Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.1882805Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1883294Z #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+0x6562cde) 2022-11-23T01:08:11.1883935Z #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+0x20cf997) 2022-11-23T01:08:11.1884280Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1884596Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1885836Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1886158Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1886464Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1887500Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1887833Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1888460Z #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+0xca56e8) 2022-11-23T01:08:11.1889005Z #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+0x2974180) 2022-11-23T01:08:11.1889411Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1890694Z #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+0x57a0418) 2022-11-23T01:08:11.1891073Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1891474Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1891732Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1891966Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1892345Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1892526Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1892685Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1892879Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1893125Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1893625Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1893801Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1893937Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1893947Z 2022-11-23T01:08:11.1894333Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.1894593Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.1894791Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.1895034Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.1895340Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.1895982Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.1896420Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.1896801Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.1897271Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.1898950Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.1899902Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.1900385Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.1901948Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.1902443Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.1902728Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.1903123Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.1904789Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.1905263Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1906815Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1907206Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1907597Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1909299Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1910011Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1911642Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1912086Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1912372Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1912796Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.1914428Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.1915004Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.1916860Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.1917326Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.1917773Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.1919710Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.1920249Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.1922138Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.1922747Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.1923078Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.1923328Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.1924409Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.1924657Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.1924981Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.1925310Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.1925685Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.1926043Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1926676Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.1927323Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.1927685Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1928051Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1929335Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1929739Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1930083Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1931297Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1931688Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1932411Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.1933068Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.1933464Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1934936Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.1935382Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1935824Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1936152Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1936418Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1936845Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1937030Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1937225Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1937432Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1937672Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1938195Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1938379Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1938620Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1938633Z 2022-11-23T01:08:11.1939038Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.1939317Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.1939676Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.1940206Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.1940500Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.1940991Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.1941251Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.1941563Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.1942263Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.1942626Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.1942929Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.1943244Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.1944243Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.1944520Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.1944943Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.1946047Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.1946411Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.1947701Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.1949266Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.1949887Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.1951149Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.1952430Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.1952988Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.1953745Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1954429Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.1954773Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.1955045Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.1955337Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.1955809Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.1956312Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.1956555Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.1956686Z 2022-11-23T01:08:11.1958394Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.1959466Z ================== 2022-11-23T01:08:11.1959636Z ================== 2022-11-23T01:08:11.1959913Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.1960227Z  Write of size 8 at 0x7ba40001a3b8 by thread T2: 2022-11-23T01:08:11.1963353Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:11.1964995Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1965483Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1966011Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1966612Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1967221Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.1967643Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.1968020Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.1968417Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.1968585Z 2022-11-23T01:08:11.1968783Z  Previous write of size 8 at 0x7ba40001a3b8 by main thread: 2022-11-23T01:08:11.1971412Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:11.1973443Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.1973914Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.1974438Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.1975024Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.1975514Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.1975926Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.1976371Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.1976810Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.1977781Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.1978867Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.1979322Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.1979939Z #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+0x6562cde) 2022-11-23T01:08:11.1981139Z #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+0x20cf997) 2022-11-23T01:08:11.1982063Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.1982492Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.1983841Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.1985338Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.1986021Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.1987427Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.1988891Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.1989817Z #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+0xca56e8) 2022-11-23T01:08:11.1991710Z #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+0x2974180) 2022-11-23T01:08:11.1992403Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.1994377Z #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+0x57a0418) 2022-11-23T01:08:11.1996175Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.1997034Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.1997808Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.1998419Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.1999229Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.1999889Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2000362Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2000957Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2001563Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2002406Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2003194Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2003595Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2003829Z 2022-11-23T01:08:11.2004260Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.2004872Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.2005341Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.2005879Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.2006578Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.2007831Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.2009131Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.2010095Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.2011079Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.2013465Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.2016614Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.2018262Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.2020101Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.2021513Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.2021981Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.2022457Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.2023843Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.2025313Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2026697Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2028117Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2028694Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2030161Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2031720Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2033133Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2034588Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2035074Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2035565Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.2036999Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.2038494Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2039870Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2041281Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2041830Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2043289Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2044802Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2046266Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2047715Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2048199Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2048556Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.2049364Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.2050140Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.2050507Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.2050923Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.2051358Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.2051818Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2052438Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.2053244Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.2053870Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2054295Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2055670Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2057284Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2057983Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2059723Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2061182Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2062225Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.2063435Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.2064474Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2066421Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.2068021Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2068801Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2069366Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2069950Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2070607Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2071101Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2071457Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2071859Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2072314Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2073133Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2073731Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2074122Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2074260Z 2022-11-23T01:08:11.2074639Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.2075156Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.2075619Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.2076513Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.2077324Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.2078101Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.2078848Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.2079470Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.2080540Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.2081326Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.2082039Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.2082679Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.2083934Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.2085100Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.2085778Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.2087346Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.2088763Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.2090374Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.2091777Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.2092174Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.2093012Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.2093800Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.2094126Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.2094612Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2095078Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2095337Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2095605Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2095885Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2096406Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2096851Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2097090Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2097222Z 2022-11-23T01:08:11.2099021Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.2100058Z ================== 2022-11-23T01:08:11.2100368Z ================== 2022-11-23T01:08:11.2100642Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.2100970Z  Write of size 8 at 0x7ba40001b770 by thread T3: 2022-11-23T01:08:11.2103274Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:11.2104915Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2105387Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2105959Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2106539Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2107151Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.2107571Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.2107957Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.2108316Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.2108479Z 2022-11-23T01:08:11.2108671Z  Previous write of size 8 at 0x7ba40001b770 by main thread: 2022-11-23T01:08:11.2111034Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:11.2112659Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2113144Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2113662Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2114244Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2114713Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.2115123Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.2115605Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.2116057Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.2116989Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.2117947Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.2118409Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2119027Z #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+0x6562cde) 2022-11-23T01:08:11.2119799Z #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+0x20cf997) 2022-11-23T01:08:11.2120392Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2120806Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2121789Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2122707Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2123121Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2124091Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2125028Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2125674Z #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+0xca56e8) 2022-11-23T01:08:11.2126500Z #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+0x2974180) 2022-11-23T01:08:11.2127119Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2128248Z #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+0x57a0418) 2022-11-23T01:08:11.2129271Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2129747Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2130171Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2130518Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2130960Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2131337Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2131583Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2131841Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2132128Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2132609Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2133035Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2133267Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2133394Z 2022-11-23T01:08:11.2133647Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.2133984Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.2134239Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.2134573Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.2134959Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.2135624Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.2136327Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.2136874Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.2137397Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.2138845Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.2140624Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.2141529Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.2142916Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.2144321Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.2144786Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.2145244Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.2146642Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.2148115Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2149530Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2151035Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2151590Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2153017Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2154547Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2155978Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2157416Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2157899Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2158445Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.2159888Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.2161361Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2162743Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2164145Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2164697Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2166130Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2167678Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2169112Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2170566Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2171049Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2171402Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.2172210Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.2172982Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.2173347Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.2173744Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.2174187Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.2174670Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2175283Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.2176082Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.2176683Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2177106Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2178071Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2179076Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2179494Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2180425Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2181326Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2181993Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.2182843Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.2183469Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2184619Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.2185642Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2186130Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2186571Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2186910Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2187354Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2187740Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2188000Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2188252Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2188550Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2189034Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2189479Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2189793Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2189925Z 2022-11-23T01:08:11.2190153Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.2190497Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.2190865Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.2191398Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.2191896Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.2192382Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.2192839Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.2193239Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.2193854Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.2194377Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.2194792Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.2195189Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.2195952Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.2196664Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.2197074Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.2197980Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.2198821Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.2199814Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.2200735Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.2201070Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.2201831Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.2202536Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.2202872Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.2203296Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2203673Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2203928Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2204176Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2204466Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2204946Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2205389Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2205612Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2205739Z 2022-11-23T01:08:11.2207404Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.2208446Z ================== 2022-11-23T01:08:11.2208601Z ================== 2022-11-23T01:08:11.2208863Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.2209181Z  Write of size 8 at 0x7ba40001a3c0 by thread T2: 2022-11-23T01:08:11.2211512Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:11.2213106Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2213619Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2214131Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2214710Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2215273Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.2215692Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.2216066Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.2216431Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.2216596Z 2022-11-23T01:08:11.2216784Z  Previous write of size 8 at 0x7ba40001a3c0 by main thread: 2022-11-23T01:08:11.2219192Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:11.2220806Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2221292Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2221791Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2222544Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2223037Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.2223481Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.2223924Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.2224366Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.2225317Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.2226232Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.2226681Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2227299Z #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+0x6562cde) 2022-11-23T01:08:11.2228068Z #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+0x20cf997) 2022-11-23T01:08:11.2228666Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2229095Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2230140Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2231068Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2231521Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2232455Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2233397Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2234059Z #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+0xca56e8) 2022-11-23T01:08:11.2234874Z #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+0x2974180) 2022-11-23T01:08:11.2235504Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2236604Z #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+0x57a0418) 2022-11-23T01:08:11.2237641Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2238120Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2238560Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2238914Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2239346Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2239714Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2239970Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2240257Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2240548Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2241019Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2241485Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2241717Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2241846Z 2022-11-23T01:08:11.2242078Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.2242399Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.2242663Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.2242969Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.2243359Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.2244083Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.2244792Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.2245331Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.2245863Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.2247220Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.2249017Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.2249933Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.2251295Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.2252649Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.2253115Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.2253585Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.2254982Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.2256432Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2257869Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2259397Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2259947Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2261364Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2262896Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2264380Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2265825Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2266343Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2266848Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.2268258Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.2269878Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2271258Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2272684Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2273270Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2274679Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2276235Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2277653Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2279119Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2279609Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2279967Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.2280774Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.2281587Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.2281946Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.2282357Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.2282840Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.2283303Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2283923Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.2284698Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.2285281Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2285708Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2286672Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2287612Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2288020Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2288950Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2289861Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2290548Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.2291385Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.2292012Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2293129Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.2294165Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2294643Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2295071Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2295423Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2295858Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2296233Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2296476Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2296739Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2297028Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2297513Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2297947Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2298179Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2298307Z 2022-11-23T01:08:11.2298632Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.2298971Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.2299320Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.2299918Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.2300411Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.2300895Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.2301378Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.2301729Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.2302348Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.2302842Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.2303256Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.2303651Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.2304410Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.2305119Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.2305513Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.2306407Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.2307258Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.2308255Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.2309189Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.2309513Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.2310323Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.2311062Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.2311376Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.2311810Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2312196Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2312441Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2312703Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2312991Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2313474Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2313901Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2314140Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2314271Z 2022-11-23T01:08:11.2315929Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.2316928Z ================== 2022-11-23T01:08:11.2372905Z ================== 2022-11-23T01:08:11.2373503Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.2374064Z  Write of size 8 at 0x7ba40001cb08 by thread T1: 2022-11-23T01:08:11.2378734Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:11.2381772Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2382620Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2383534Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2384571Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2385573Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.2386316Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.2386994Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.2387648Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.2387941Z 2022-11-23T01:08:11.2388279Z  Previous write of size 8 at 0x7ba40001cb08 by main thread: 2022-11-23T01:08:11.2392628Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:11.2395605Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2396475Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2397370Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2398425Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2399296Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.2400024Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.2400812Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.2401604Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.2403285Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.2404937Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.2405771Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2406884Z #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+0x6562cde) 2022-11-23T01:08:11.2408268Z #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+0x20cf997) 2022-11-23T01:08:11.2409343Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2410108Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2411887Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2412286Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2412654Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2413984Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2414385Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2415165Z #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+0xca56e8) 2022-11-23T01:08:11.2415863Z #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+0x2974180) 2022-11-23T01:08:11.2416299Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2417898Z #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+0x57a0418) 2022-11-23T01:08:11.2418280Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2419079Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2419472Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2419759Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2420224Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2420476Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2420691Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2420907Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2421245Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2421824Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2422034Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2422197Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2422206Z 2022-11-23T01:08:11.2422627Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.2422930Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.2423133Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.2423415Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.2423777Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.2424589Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.2425075Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.2425556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.2426033Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.2428045Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.2429194Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.2429851Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.2431783Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.2432282Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.2432610Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.2433093Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.2435193Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.2435751Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2437744Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2438271Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2438773Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2440865Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2441453Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2443537Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2444090Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2444429Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2444967Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.2447011Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.2447583Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2449591Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2450096Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2450612Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2452676Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2453270Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2455290Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2455810Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2456154Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2456412Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.2457607Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.2457917Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.2458264Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.2458716Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.2459134Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.2459523Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2460216Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.2460933Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.2461309Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2461662Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2463031Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2463395Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2463761Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2465161Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2465606Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2466382Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.2467082Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.2467515Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2469098Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.2469474Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2469995Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2470302Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2470591Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2471046Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2471247Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2471464Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2471675Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2471940Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2472522Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2472729Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2472889Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2472935Z 2022-11-23T01:08:11.2473309Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.2473602Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.2473988Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.2474585Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.2474889Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.2475411Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.2475680Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.2476021Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.2476785Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.2477177Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.2477509Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.2477855Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.2478857Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.2479141Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.2479539Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.2480749Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.2481126Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.2482556Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.2482921Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.2483157Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.2484236Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.2484494Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.2484766Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.2485215Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2485418Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2485626Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2485844Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2486109Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2486681Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2486896Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2487061Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2487069Z 2022-11-23T01:08:11.2490264Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.2490388Z ================== 2022-11-23T01:08:11.2490611Z ================== 2022-11-23T01:08:11.2490910Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.2491234Z  Write of size 8 at 0x7ba40001cb08 by thread T3: 2022-11-23T01:08:11.2495397Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:11.2495906Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2496299Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2496809Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2497337Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2497826Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.2498078Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.2498582Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.2498811Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.2498820Z 2022-11-23T01:08:11.2499157Z  Previous write of size 8 at 0x7ba40001cb08 by main thread: 2022-11-23T01:08:11.2503327Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:11.2503836Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.2504233Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.2504743Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.2505276Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.2505618Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.2505978Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.2506382Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:11.2506761Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.2508050Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.2508480Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.2508907Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2509679Z #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+0x6562cde) 2022-11-23T01:08:11.2510390Z #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+0x20cf997) 2022-11-23T01:08:11.2510813Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2511171Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2512603Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2512972Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2513344Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2514652Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2515047Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2515840Z #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+0xca56e8) 2022-11-23T01:08:11.2516557Z #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+0x2974180) 2022-11-23T01:08:11.2516991Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2518609Z #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+0x57a0418) 2022-11-23T01:08:11.2518987Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2519482Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2519797Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2520081Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2520542Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2520746Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2520957Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2521169Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2521433Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2522006Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2522214Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2522364Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2522374Z 2022-11-23T01:08:11.2522773Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2022-11-23T01:08:11.2523084Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.2523291Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.2523573Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.2523939Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.2524743Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.2525224Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.2525699Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.2526180Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.2528174Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.2529359Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.2529910Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.2531845Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.2532349Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.2532676Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.2533167Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.2535246Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.2535830Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2537841Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2538337Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2538923Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2541027Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2541675Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2543694Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2544277Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2544631Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2545174Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.2547201Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.2547765Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.2549831Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.2550374Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.2550864Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.2552976Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.2553553Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.2575385Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.2576171Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.2576578Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.2576843Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.2578011Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.2578282Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.2578809Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.2579174Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.2579598Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.2579993Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.2580697Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.2581402Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.2581781Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.2582142Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.2583536Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.2583982Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.2584350Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.2585662Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:11.2586111Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:11.2586909Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:11.2587621Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:11.2588055Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:11.2589703Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:11.2590088Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.2590570Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e0f20) 2022-11-23T01:08:11.2590884Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.2591175Z #59 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2ca251) 2022-11-23T01:08:11.2591633Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2591835Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2592045Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2592299Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2592570Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2593143Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2593393Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2593541Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2593567Z 2022-11-23T01:08:11.2593980Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.2594278Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.2594675Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.2595241Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.2595554Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.2596081Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.2596353Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.2596695Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.2597461Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.2597857Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.2598198Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.2598541Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.2599555Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.2599845Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.2600259Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.2601524Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.2601904Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.2603343Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.2603672Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.2603914Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.2605011Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.2605274Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.2605523Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.2605980Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.2606182Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.2606396Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.2606608Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.2606869Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.2607437Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.2607652Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.2607813Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.2607823Z 2022-11-23T01:08:11.2611047Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:11.2611171Z ================== 2022-11-23T01:08:11.5379483Z [ OK ] LazyOpsTest.TestOneIndexPut (1366 ms) 2022-11-23T01:08:11.5379685Z [ RUN ] LazyOpsTest.TestOneIndexPutInPlace 2022-11-23T01:08:11.5414508Z ================== 2022-11-23T01:08:11.5415054Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5415353Z  Write of size 4 at 0x7b9400015358 by thread T3: 2022-11-23T01:08:11.5419743Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5420199Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5420546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5421010Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5421480Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5421954Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5422181Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5422487Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5422627Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5422636Z 2022-11-23T01:08:11.5422848Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2022-11-23T01:08:11.5426492Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5426993Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5427349Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5427783Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5428257Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5428551Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5428886Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5429275Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5429682Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5430925Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5431272Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5431700Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5432723Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5433033Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5434137Z #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+0x634d148) 2022-11-23T01:08:11.5434478Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5435610Z #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+0x50edd3b) 2022-11-23T01:08:11.5435917Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5436309Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5436594Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5436803Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5437160Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5437300Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5437479Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5437721Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5438092Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5438659Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5438815Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5438910Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5438917Z 2022-11-23T01:08:11.5439173Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5439341Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5439466Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5439629Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5439874Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5440144Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5440416Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5440753Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5441863Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5442532Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5442878Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5443985Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5444287Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5444475Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5444739Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5444973Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5445264Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5446216Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5446813Z #17 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+0x20f8728) 2022-11-23T01:08:11.5447097Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5448094Z #19 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+0x29fb792) 2022-11-23T01:08:11.5448337Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5448486Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5448639Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5448914Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5449088Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5449266Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5449521Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5449635Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5449754Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5449862Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5450011Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5450328Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5450449Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5450542Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5450547Z 2022-11-23T01:08:11.5450762Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.5450929Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5451149Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5451493Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5451667Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5451960Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5452141Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5452332Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5452739Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5452961Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5453135Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5453329Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5453896Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5454061Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5454276Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5454950Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5455162Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5455926Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5456131Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5456276Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5456854Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5457041Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5457192Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5457448Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5457563Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5457685Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5457810Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5458027Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5458644Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5458794Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5458941Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5458950Z 2022-11-23T01:08:11.5461967Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5462072Z ================== 2022-11-23T01:08:11.5462179Z ================== 2022-11-23T01:08:11.5462358Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5462597Z  Write of size 4 at 0x7b9400015358 by thread T2: 2022-11-23T01:08:11.5465452Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5465768Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5465997Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5466280Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5466569Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5466834Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5466975Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5467212Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5467336Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5467356Z 2022-11-23T01:08:11.5467534Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2022-11-23T01:08:11.5469789Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5470084Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5470306Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5470706Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5471161Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5471417Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5471736Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5472078Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5472415Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5473665Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5474033Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5474392Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5475722Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5476123Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5477614Z #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+0x634d148) 2022-11-23T01:08:11.5478075Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5479519Z #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+0x50edd3b) 2022-11-23T01:08:11.5479909Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5480339Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5480631Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5480879Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5481296Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5481498Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5481704Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5481916Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5482162Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5482741Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5482959Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5483115Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5483124Z 2022-11-23T01:08:11.5483374Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5483547Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5483675Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5483826Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5484070Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5484386Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5484656Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5485019Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5486154Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5486813Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5487151Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5488256Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5488545Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5488776Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5489039Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5489276Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5489566Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5490541Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5491101Z #17 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+0x20f8728) 2022-11-23T01:08:11.5491373Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5492325Z #19 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+0x29fb792) 2022-11-23T01:08:11.5492581Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5492756Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5492908Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5493169Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5493344Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5493524Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5493779Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5493895Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5494017Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5494137Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5494283Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5494598Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5494718Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5494812Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5494818Z 2022-11-23T01:08:11.5495032Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.5495184Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5495407Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5495724Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5495899Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5496193Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5496346Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5496537Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5496946Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5497168Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5497359Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5497578Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5498131Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5498325Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5498658Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5499323Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5499538Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5500325Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5500503Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5500647Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5501221Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5501370Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5501521Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5501777Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5501881Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5501999Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5502169Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5502319Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5502647Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5502807Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5502900Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5502906Z 2022-11-23T01:08:11.5504587Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5504658Z ================== 2022-11-23T01:08:11.5507327Z ================== 2022-11-23T01:08:11.5507717Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5507937Z  Write of size 4 at 0x7b9400015360 by thread T2: 2022-11-23T01:08:11.5511540Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:11.5511988Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5512371Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5512822Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5513395Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5513926Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5514152Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5514509Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5514729Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5514739Z 2022-11-23T01:08:11.5515062Z  Previous write of size 4 at 0x7b9400015360 by main thread: 2022-11-23T01:08:11.5518350Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:11.5518641Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5518865Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5519219Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5519556Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5519741Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5519951Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5520278Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5520549Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5521418Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5521779Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5522093Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5523400Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5523787Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5525124Z #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+0x634d148) 2022-11-23T01:08:11.5525478Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5526576Z #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+0x50edd3b) 2022-11-23T01:08:11.5526901Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5527362Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5527626Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5527904Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5528371Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5528579Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5528797Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5529025Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5529302Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5529887Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5530092Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5530187Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5530195Z 2022-11-23T01:08:11.5530449Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5530621Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5530746Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5530909Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5531153Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5531425Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5531695Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5532031Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5533199Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5533896Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5534212Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5535313Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5535603Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5535795Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5536055Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5536290Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5536577Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5537571Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5538175Z #17 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+0x20f8728) 2022-11-23T01:08:11.5538449Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5539541Z #19 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+0x29fb792) 2022-11-23T01:08:11.5539786Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5539936Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5540086Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5540360Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5540537Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5540712Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5540970Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5541087Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5541270Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5541379Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5541526Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5541838Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5541994Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5542086Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5542093Z 2022-11-23T01:08:11.5542311Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.5542475Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5542699Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5543017Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5543192Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5543484Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5543634Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5543821Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5544228Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5544449Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5544637Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5544816Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5545382Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5545546Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5545772Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5546469Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5546679Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5547496Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5547689Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5547835Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5548414Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5548619Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5548772Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5549124Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5549276Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5549443Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5549655Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5549898Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5550284Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5550450Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5550554Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5550572Z 2022-11-23T01:08:11.5552374Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5552451Z ================== 2022-11-23T01:08:11.5552567Z ================== 2022-11-23T01:08:11.5552732Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5552907Z  Write of size 4 at 0x7b9400015360 by thread T3: 2022-11-23T01:08:11.5555090Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:11.5555356Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5555579Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5556912Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5557423Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5557869Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5558103Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5558486Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5558716Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5558725Z 2022-11-23T01:08:11.5559092Z  Previous write of size 4 at 0x7b9400015360 by main thread: 2022-11-23T01:08:11.5562865Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:11.5563366Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5563752Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5564275Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5564761Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5565106Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5565438Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5565869Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5566260Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5567670Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5568061Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5568434Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5569886Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5570370Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5571803Z #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+0x634d148) 2022-11-23T01:08:11.5572045Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5572943Z #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+0x50edd3b) 2022-11-23T01:08:11.5573149Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5573424Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5573599Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5573778Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5574031Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5574145Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5574252Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5574371Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5574551Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5574867Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5575015Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5575107Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5575113Z 2022-11-23T01:08:11.5575351Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5575518Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5575640Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5575799Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5576032Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5576305Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5576575Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5576926Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5578051Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5578812Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5579198Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5580280Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5580611Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5580803Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5581065Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5581304Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5581595Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5582563Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5583151Z #17 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+0x20f8728) 2022-11-23T01:08:11.5583422Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5584378Z #19 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+0x29fb792) 2022-11-23T01:08:11.5584619Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5584767Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5584917Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5585187Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5585352Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5585533Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5585790Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5585903Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5586020Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5586144Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5586288Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5586605Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5586724Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5586819Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5586828Z 2022-11-23T01:08:11.5587043Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.5587198Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5587436Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5587751Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5587953Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5588246Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5588428Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5588620Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5589030Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5589253Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5589441Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5589695Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5590316Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5590487Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5590781Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5591783Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5592179Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5593502Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5593799Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5594077Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5595149Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5595475Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5595747Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5596209Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5596378Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5596549Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5596718Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5596952Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5597458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5597646Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5597791Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5597800Z 2022-11-23T01:08:11.5600707Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5600840Z ================== 2022-11-23T01:08:11.5600983Z ================== 2022-11-23T01:08:11.5601281Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5601597Z  Write of size 4 at 0x7b9400015358 by thread T1: 2022-11-23T01:08:11.5605495Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5606004Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5606345Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5606833Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5607344Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5607818Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5608036Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5608373Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5608602Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5608613Z 2022-11-23T01:08:11.5608915Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2022-11-23T01:08:11.5612276Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:11.5612564Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5612854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5613138Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5613462Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5613656Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5613858Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5614086Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5614286Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5615078Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5615291Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5615493Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5616240Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5616477Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5617360Z #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+0x634d148) 2022-11-23T01:08:11.5617623Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5618455Z #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+0x50edd3b) 2022-11-23T01:08:11.5618758Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5619032Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5619209Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5619389Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5619642Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5619758Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5619877Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5619997Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5620134Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5620448Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5620565Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5620659Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5620666Z 2022-11-23T01:08:11.5620899Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5621066Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5621192Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5621351Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5621592Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5621862Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5622223Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5622557Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5623711Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5624376Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5624694Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5625790Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5626104Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5626295Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5626580Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5626816Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5627106Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5628059Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5628621Z #17 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+0x20f8728) 2022-11-23T01:08:11.5628907Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5629879Z #19 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+0x29fb792) 2022-11-23T01:08:11.5630155Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5630304Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5630485Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5630759Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5630931Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5631107Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5631365Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5631479Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5631597Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5631707Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5631855Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5632166Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5632284Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5632375Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5632381Z 2022-11-23T01:08:11.5632600Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.5632767Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5632985Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5633305Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5633478Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5633882Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5634114Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5634410Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5634995Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5635317Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5635520Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5635814Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5636761Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5637063Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5637411Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5638442Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5638777Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5640096Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5640404Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5640638Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5641525Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5641753Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5641991Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5642329Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5642498Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5642683Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5642875Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5643088Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5643589Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5643813Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5643897Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5643903Z 2022-11-23T01:08:11.5646406Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5646527Z ================== 2022-11-23T01:08:11.5646700Z ================== 2022-11-23T01:08:11.5646988Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5647291Z  Write of size 4 at 0x7b9400015364 by thread T2: 2022-11-23T01:08:11.5651094Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5651596Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5651997Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5652447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5653015Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5653440Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5653726Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5654005Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5654162Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5654172Z 2022-11-23T01:08:11.5654457Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2022-11-23T01:08:11.5657802Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5658202Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5658647Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5659072Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5659483Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5659739Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5660057Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5660371Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5660686Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5661929Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5662321Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5662616Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5663749Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5664146Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5665390Z #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+0x634d148) 2022-11-23T01:08:11.5665741Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5667041Z #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+0x50edd3b) 2022-11-23T01:08:11.5667357Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5667753Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5668055Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5668324Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5668704Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5668858Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5669033Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5669230Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5669441Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5669958Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5670154Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5670306Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5670315Z 2022-11-23T01:08:11.5670728Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5671022Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5671238Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5671484Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5671854Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5672266Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5672680Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5673178Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5674908Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5675899Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5676373Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5677983Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5678429Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5678736Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5679192Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5679601Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5680087Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5681779Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5682801Z #17 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+0x20f8728) 2022-11-23T01:08:11.5683267Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5684841Z #19 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+0x29fb792) 2022-11-23T01:08:11.5685347Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5685600Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5685861Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5686321Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5686600Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5686894Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5687323Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5687501Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5687699Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5687898Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5688188Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5688721Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5688979Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5689129Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5689138Z 2022-11-23T01:08:11.5689539Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.5689835Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5690208Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5690746Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5691043Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5691555Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5691824Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5692136Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5692829Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5693196Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5693510Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5693834Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5694781Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5695053Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5695444Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5696646Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5697010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5698383Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5698795Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5699043Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5700029Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5700274Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5700529Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5700975Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5701163Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5701373Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5701583Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5701841Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5702410Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5702606Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5702769Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5702779Z 2022-11-23T01:08:11.5704796Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5704882Z ================== 2022-11-23T01:08:11.5704934Z ================== 2022-11-23T01:08:11.5705105Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5705323Z  Write of size 4 at 0x7b9400015364 by thread T3: 2022-11-23T01:08:11.5707751Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5708035Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5708260Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5708544Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5708835Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5709105Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5709247Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5709470Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5709669Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5709676Z 2022-11-23T01:08:11.5709867Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2022-11-23T01:08:11.5712070Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5712363Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5712584Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5712867Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5713197Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5713388Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5713592Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5713818Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5714033Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5714808Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5715026Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5715226Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5716021Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5716284Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5717117Z #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+0x634d148) 2022-11-23T01:08:11.5717358Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5718185Z #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+0x50edd3b) 2022-11-23T01:08:11.5718391Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5718666Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5718840Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5719018Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5719274Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5719389Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5719508Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5719630Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5719777Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5720117Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5720239Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5720331Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5720363Z 2022-11-23T01:08:11.5720582Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5720736Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5720859Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5721020Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5721261Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5721531Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5721800Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5722136Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5723263Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5723914Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5724232Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5725866Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5726335Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5726587Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5726873Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5727111Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5727398Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5728354Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5728932Z #17 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+0x20f8728) 2022-11-23T01:08:11.5729238Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5730154Z #19 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+0x29fb792) 2022-11-23T01:08:11.5730435Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5730588Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5730740Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5731013Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5731189Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5731368Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5731623Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5731740Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5731859Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5731979Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5732130Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5732444Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5732564Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5732647Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5732652Z 2022-11-23T01:08:11.5732877Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.5733045Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5733267Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5733586Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5733757Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5734085Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5734237Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5734457Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5734863Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5735082Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5735297Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5735624Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5736417Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5736685Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5737064Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5738168Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5738652Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5740095Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5740421Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5740675Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5741449Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5741701Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5741900Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5742215Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5742382Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5742570Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5742753Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5742985Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5743418Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5743600Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5743745Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5743755Z 2022-11-23T01:08:11.5745989Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5746065Z ================== 2022-11-23T01:08:11.5746172Z ================== 2022-11-23T01:08:11.5746399Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5746577Z  Write of size 4 at 0x7b9400015364 by thread T1: 2022-11-23T01:08:11.5749523Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5749909Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5750142Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5750431Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5750720Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5750989Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5751131Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5751356Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5751493Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5751500Z 2022-11-23T01:08:11.5751695Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2022-11-23T01:08:11.5753863Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:11.5754125Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5754346Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5754660Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5754947Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5755166Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5755367Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5755595Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5755807Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5756588Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5756818Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5757020Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5757772Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5758007Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5758856Z #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+0x634d148) 2022-11-23T01:08:11.5759092Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5759952Z #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+0x50edd3b) 2022-11-23T01:08:11.5760155Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5760428Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5760604Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5760782Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5761036Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5761140Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5761259Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5761381Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5761529Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5761839Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5761957Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5762049Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5762055Z 2022-11-23T01:08:11.5762277Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5762444Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5762568Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5762719Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5762964Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5763234Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5763531Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5763862Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5765019Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5765672Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5766000Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5767377Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5767892Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5768211Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5768662Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5769115Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5769647Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5771277Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5772188Z #17 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+0x20f8728) 2022-11-23T01:08:11.5772682Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5773810Z #19 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+0x29fb792) 2022-11-23T01:08:11.5774067Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5774361Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5774536Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5774939Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5775173Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5775366Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5775798Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5776002Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5776220Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5776436Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5776705Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5777295Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5777566Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5777731Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5777741Z 2022-11-23T01:08:11.5778023Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.5778191Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5778598Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5779109Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5779389Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5779856Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5780087Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5780392Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5781049Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5781391Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5781638Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5781985Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5783103Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5783420Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5783713Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5784561Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5784865Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5785747Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5786012Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5786225Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5786900Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5787051Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5787274Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5787670Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5787789Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5787910Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5788033Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5788183Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5788536Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5788658Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5788739Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5788774Z 2022-11-23T01:08:11.5791059Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5791167Z ================== 2022-11-23T01:08:11.5791265Z ================== 2022-11-23T01:08:11.5791539Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5791811Z  Write of size 4 at 0x7b9400015368 by thread T2: 2022-11-23T01:08:11.5794703Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5794970Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5795200Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5795488Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5795780Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5796091Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5796239Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5796495Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5796632Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5796638Z 2022-11-23T01:08:11.5796825Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2022-11-23T01:08:11.5798955Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5799215Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5799439Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5799719Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5800008Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5800201Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5800405Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5800640Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5800853Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5801660Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5801904Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5802106Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5802857Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5803110Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5803941Z #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+0x634d148) 2022-11-23T01:08:11.5804179Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5805004Z #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+0x50edd3b) 2022-11-23T01:08:11.5805240Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5805518Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5805720Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5805962Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5806215Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5806317Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5806437Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5806559Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5806711Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5807024Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5807147Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5807243Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5807249Z 2022-11-23T01:08:11.5807470Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5807636Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5807762Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5807909Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5808157Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5808427Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5808790Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5809328Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5811285Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5812421Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5812806Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5813885Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5814178Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5814371Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5814635Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5814872Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5815162Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5816153Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5816744Z #17 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+0x20f8728) 2022-11-23T01:08:11.5817017Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5817935Z #19 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+0x29fb792) 2022-11-23T01:08:11.5818188Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5818337Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5818586Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5818976Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5819239Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5819418Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5819729Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5819910Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5820110Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5820267Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5820503Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5821119Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5821304Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5821501Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5821513Z 2022-11-23T01:08:11.5821855Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.5822095Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5822465Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5823043Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5823359Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5823886Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5824042Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5824232Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5824640Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5824864Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5825049Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5825242Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5825809Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5826060Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5826409Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5827555Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5827979Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5829145Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5829354Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5829500Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5830157Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5830306Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5830456Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5830714Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5830818Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5830936Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5831058Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5831205Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5831519Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5831637Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5831732Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5831738Z 2022-11-23T01:08:11.5833410Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5833482Z ================== 2022-11-23T01:08:11.5833640Z ================== 2022-11-23T01:08:11.5833809Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5833984Z  Write of size 4 at 0x7b9400015368 by thread T3: 2022-11-23T01:08:11.5836147Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5836438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5836660Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5836943Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5837233Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5837502Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5837642Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5837870Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5838006Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5838011Z 2022-11-23T01:08:11.5838197Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2022-11-23T01:08:11.5840371Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5840667Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5840890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5841170Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5841460Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5841651Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5841853Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5842071Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5842282Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5843082Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5843295Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5843498Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5844273Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5844543Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5845371Z #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+0x634d148) 2022-11-23T01:08:11.5845613Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5846441Z #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+0x50edd3b) 2022-11-23T01:08:11.5846648Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5846922Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5847098Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5847275Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5847532Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5847648Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5847766Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5847875Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5848024Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5848385Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5848538Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5848664Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5848671Z 2022-11-23T01:08:11.5848956Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5849230Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5849422Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5849675Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5850062Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5850521Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5851030Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5851569Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5853396Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5854655Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5855197Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5856332Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5856666Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5856858Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5857105Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5857340Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5857629Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5858694Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5859456Z #17 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+0x20f8728) 2022-11-23T01:08:11.5859833Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5861366Z #19 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+0x29fb792) 2022-11-23T01:08:11.5861817Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5862047Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5862265Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5862697Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5862965Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5863151Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5863460Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5863643Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5863776Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5863922Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5864114Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5864507Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5864633Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5864747Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5864757Z 2022-11-23T01:08:11.5865039Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.5865244Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5865502Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5865875Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5866080Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5866476Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5866652Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5866872Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5867420Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5867726Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5867975Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5868200Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5868778Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5868948Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5869172Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5869940Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5870269Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5871363Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5871624Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5871820Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5872686Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5872976Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5873251Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5873717Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5873846Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5873982Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5874161Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5874367Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5874815Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5874999Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5875119Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5875130Z 2022-11-23T01:08:11.5877691Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5877811Z ================== 2022-11-23T01:08:11.5878002Z ================== 2022-11-23T01:08:11.5878265Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5878521Z  Write of size 4 at 0x7b9400015368 by thread T1: 2022-11-23T01:08:11.5881868Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5882293Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5882626Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5883031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5883448Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5883864Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5884103Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5884486Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5884726Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5884738Z 2022-11-23T01:08:11.5885051Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2022-11-23T01:08:11.5888350Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:11.5888732Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5889056Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5889543Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5889960Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5890298Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5890594Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5890938Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5891244Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5892484Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5892860Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5893204Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5894498Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5894894Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5896362Z #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+0x634d148) 2022-11-23T01:08:11.5896754Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5898191Z #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+0x50edd3b) 2022-11-23T01:08:11.5898690Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5899165Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5899463Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5899778Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5900210Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5900408Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5900607Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5900809Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5901062Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5901598Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5901793Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5901927Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5901954Z 2022-11-23T01:08:11.5902317Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5902597Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5902812Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5903088Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5903511Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5903981Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5904461Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5905106Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5907073Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5908248Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5908775Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5910710Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5911213Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5911589Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5912038Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5912490Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5912977Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5914652Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5915678Z #17 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+0x20f8728) 2022-11-23T01:08:11.5916180Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5917889Z #19 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+0x29fb792) 2022-11-23T01:08:11.5918344Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5918590Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5918910Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5919396Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5919741Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5920054Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5920516Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5920718Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5920928Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5921146Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5921406Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5921972Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5922185Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5922332Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5922356Z 2022-11-23T01:08:11.5922735Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.5923036Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5923423Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5923996Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5924306Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5924842Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5925110Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5925452Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5926207Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5926604Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5926951Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5927296Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5928336Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5928629Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5929084Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5930304Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5930702Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5932153Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5932487Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5932731Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.5933813Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.5934074Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.5934326Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.5934790Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5934994Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5935204Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5935416Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5935674Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5936241Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5936488Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5936651Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5936660Z 2022-11-23T01:08:11.5939904Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.5940111Z ================== 2022-11-23T01:08:11.5940305Z ================== 2022-11-23T01:08:11.5940620Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.5940922Z  Write of size 4 at 0x7b940001536c by thread T2: 2022-11-23T01:08:11.5944992Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.5945458Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5945852Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5946368Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5946881Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5947408Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.5947654Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.5948045Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.5948315Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.5948325Z 2022-11-23T01:08:11.5948638Z  Previous write of size 4 at 0x7b940001536c by main thread: 2022-11-23T01:08:11.5952848Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.5953341Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.5953718Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.5954232Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.5954754Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.5955102Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.5955469Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.5955876Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.5956269Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.5957776Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.5958215Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.5958578Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.5959972Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.5960403Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5961929Z #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+0x634d148) 2022-11-23T01:08:11.5962372Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.5963924Z #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+0x50edd3b) 2022-11-23T01:08:11.5964296Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.5964823Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.5965141Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5965491Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5965948Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5966145Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5966353Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5966564Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5966814Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5967408Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5967618Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5967783Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5967792Z 2022-11-23T01:08:11.5968191Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.5968484Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.5968701Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.5968986Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.5969430Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.5969919Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.5970403Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.5971010Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.5973091Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.5974302Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.5974913Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.5976915Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.5977464Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.5977805Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.5978272Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.5978909Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.5979446Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.5981251Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.5982325Z #17 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+0x20f8728) 2022-11-23T01:08:11.5982822Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.5984540Z #19 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+0x29fb792) 2022-11-23T01:08:11.5984980Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.5985242Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.5985513Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.5986002Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.5986316Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.5986630Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.5987087Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.5987276Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.5987486Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.5987702Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.5987964Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.5988569Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.5988779Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.5988940Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.5988949Z 2022-11-23T01:08:11.5989332Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.5989775Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.5990171Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.5990740Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.5991044Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.5991576Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.5991859Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.5992186Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.5992935Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.5993331Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.5993671Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.5994025Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.5995036Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.5995326Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.5995738Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.5996965Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.5997349Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.5998818Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.5999165Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.5999417Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6000492Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6000753Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6001019Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6001478Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6001684Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6001901Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6002115Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6002365Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6002937Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6003148Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6003313Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6003322Z 2022-11-23T01:08:11.6006439Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.6006559Z ================== 2022-11-23T01:08:11.6006670Z ================== 2022-11-23T01:08:11.6006963Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6007306Z  Write of size 4 at 0x7b940001536c by thread T3: 2022-11-23T01:08:11.6011334Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.6011835Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6012234Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6012752Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6013345Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6013831Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6014081Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6014473Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6014717Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6014724Z 2022-11-23T01:08:11.6015039Z  Previous write of size 4 at 0x7b940001536c by main thread: 2022-11-23T01:08:11.6019356Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.6019880Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6020279Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6020787Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6021315Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6021661Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6022021Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6022427Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.6022803Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6024231Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.6024615Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.6024971Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6026385Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6026808Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6028373Z #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+0x634d148) 2022-11-23T01:08:11.6028797Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6030403Z #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+0x50edd3b) 2022-11-23T01:08:11.6030778Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6031267Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.6031572Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6031890Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6032350Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6032554Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6032769Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6032984Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6033247Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6033806Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6034013Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6034156Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6034165Z 2022-11-23T01:08:11.6034607Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.6034912Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6035125Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6035448Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6035873Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.6036356Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.6036846Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.6037455Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.6039526Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.6040721Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.6041300Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.6043329Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.6043895Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.6044236Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.6044714Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.6045138Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.6045669Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.6047417Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.6048462Z #17 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+0x20f8728) 2022-11-23T01:08:11.6048957Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.6050707Z #19 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+0x29fb792) 2022-11-23T01:08:11.6051184Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.6051445Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.6051721Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.6052210Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.6052519Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6052836Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6053298Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6053499Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6053715Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6053928Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6054196Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6054766Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6054975Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6055122Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6055131Z 2022-11-23T01:08:11.6055517Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.6055826Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6056216Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6056782Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6057096Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6057627Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6057908Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6058298Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6059181Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6059637Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6059970Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6060324Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6061342Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6061636Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6062042Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6063256Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6063640Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6065068Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6065384Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6065634Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6066750Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6067010Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6067307Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6067763Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6067962Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6068180Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6068392Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6068656Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6069231Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6069441Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6069655Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6069665Z 2022-11-23T01:08:11.6072802Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.6072922Z ================== 2022-11-23T01:08:11.6073034Z ================== 2022-11-23T01:08:11.6073332Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6073624Z  Write of size 4 at 0x7b940001536c by thread T1: 2022-11-23T01:08:11.6077844Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.6078314Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6078760Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6079267Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6079792Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6080272Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6080534Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6080930Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6081163Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6081172Z 2022-11-23T01:08:11.6081497Z  Previous write of size 4 at 0x7b940001536c by main thread: 2022-11-23T01:08:11.6085520Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:11.6085979Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6086376Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6086889Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6087442Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6087787Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6088180Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6088589Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:11.6088971Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6090394Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.6090804Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.6091164Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6092540Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6092982Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6094752Z #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+0x634d148) 2022-11-23T01:08:11.6095218Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6096769Z #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+0x50edd3b) 2022-11-23T01:08:11.6097178Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6097663Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.6097977Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6098291Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6098860Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6099055Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6099268Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6099486Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6099751Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6100323Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6100537Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6100702Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6100711Z 2022-11-23T01:08:11.6101120Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2022-11-23T01:08:11.6101420Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6101638Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6101914Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6102347Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.6102839Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.6103328Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.6103998Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.6106160Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.6107413Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.6108001Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.6110078Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.6110603Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.6110946Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.6111469Z #13 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5270) 2022-11-23T01:08:11.6111889Z #14 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d513e) 2022-11-23T01:08:11.6112447Z #15 at::(anonymous namespace)::(anonymous namespace)::wrapper__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d767b4) 2022-11-23T01:08:11.6114224Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e524d6) 2022-11-23T01:08:11.6115273Z #17 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+0x20f8728) 2022-11-23T01:08:11.6115774Z #18 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a5a09) 2022-11-23T01:08:11.6117469Z #19 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+0x29fb792) 2022-11-23T01:08:11.6117919Z #20 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a54ed) 2022-11-23T01:08:11.6118173Z #21 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x2128b1) 2022-11-23T01:08:11.6118435Z #22 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x210aff) 2022-11-23T01:08:11.6118939Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1b5d) 2022-11-23T01:08:11.6119249Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6119613Z #25 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6120069Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6120267Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6120477Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6120687Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6120950Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6121531Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6121746Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6121904Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6121913Z 2022-11-23T01:08:11.6122295Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.6122577Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6122963Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6123538Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6123848Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6124367Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6124641Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6124980Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6125733Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6126130Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6126460Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6126807Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6127877Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6128171Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6128583Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6129834Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6130211Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6131638Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6131963Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6132212Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6133266Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6133526Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6133799Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6134256Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6134443Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6134655Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6134869Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6135133Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6135706Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6135926Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6136090Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6136099Z 2022-11-23T01:08:11.6139457Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:11.6139642Z ================== 2022-11-23T01:08:11.6292127Z ================== 2022-11-23T01:08:11.6292573Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6296216Z  Write of size 1 at 0x7b740002d276 by main thread: 2022-11-23T01:08:11.6301709Z  #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+0x8718da5) 2022-11-23T01:08:11.6302191Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6302719Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6303351Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6303997Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6304350Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6304821Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6305387Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6305896Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6307521Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.6307917Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.6308254Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6309811Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6310249Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6311776Z #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+0x634d148) 2022-11-23T01:08:11.6312276Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6313969Z #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+0x50edd3b) 2022-11-23T01:08:11.6314413Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6314911Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.6315216Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6315539Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6315998Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6316204Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6316417Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6316615Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6316881Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6317452Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6317670Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6317834Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6317844Z 2022-11-23T01:08:11.6318182Z  Previous write of size 1 at 0x7b740002d276 by thread T1: 2022-11-23T01:08:11.6322444Z  #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+0x8718da5) 2022-11-23T01:08:11.6322927Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6323364Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6323862Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6324410Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6324896Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6325146Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6325548Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6325786Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6325800Z 2022-11-23T01:08:11.6326191Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2022-11-23T01:08:11.6326485Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6326702Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6326986Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6327420Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.6327910Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.6328391Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.6329003Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.6331057Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.6332301Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.6332908Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.6335039Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.6335577Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.6335923Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.6336408Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.6336895Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.6337327Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.6337856Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.6339785Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.6340887Z #18 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+0x25cf944) 2022-11-23T01:08:11.6341400Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.6343128Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.6343586Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.6343868Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.6344153Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.6344634Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.6344942Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6345265Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6345717Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6345920Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6346131Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6346316Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6346613Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6347180Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6347427Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6347589Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6347599Z 2022-11-23T01:08:11.6347986Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.6348281Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6348675Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6349258Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6349634Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6350194Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6350464Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6350807Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6351556Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6351950Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6352266Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6352621Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6353632Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6353918Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6354322Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6355583Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6355962Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6357372Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6357731Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6357983Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6359035Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6359294Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6359781Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6360277Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6360478Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6360682Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6360895Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6361158Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6361718Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6361917Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6362081Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6362093Z 2022-11-23T01:08:11.6365310Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:11.6365448Z ================== 2022-11-23T01:08:11.6376261Z ================== 2022-11-23T01:08:11.6377923Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6378241Z  Write of size 1 at 0x7b740002d761 by main thread: 2022-11-23T01:08:11.6382646Z  #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+0x8718ed1) 2022-11-23T01:08:11.6383147Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6383782Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6384432Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6385267Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6385910Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6386276Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6386681Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6387060Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6388574Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.6388965Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.6389369Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6390834Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6391259Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6392791Z #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+0x634d148) 2022-11-23T01:08:11.6393217Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6394729Z #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+0x50edd3b) 2022-11-23T01:08:11.6395092Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6395579Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.6395933Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6396256Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6396717Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6396960Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6397167Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6397387Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6397652Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6398213Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6398430Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6398573Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6398585Z 2022-11-23T01:08:11.6398929Z  Previous write of size 1 at 0x7b740002d761 by thread T1: 2022-11-23T01:08:11.6403089Z  #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+0x8718ed1) 2022-11-23T01:08:11.6403554Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6403962Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6404470Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6405047Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6405532Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6405784Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6406229Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6406471Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6406534Z 2022-11-23T01:08:11.6406936Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2022-11-23T01:08:11.6407237Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6407456Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6407742Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6408171Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.6408663Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.6409155Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.6409768Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.6411811Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.6413030Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.6413613Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.6415632Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.6416224Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.6416562Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.6417056Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.6417547Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.6417978Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.6418638Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.6420438Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.6421539Z #18 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+0x25cf944) 2022-11-23T01:08:11.6421894Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.6422843Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.6423099Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.6423259Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.6423424Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.6423699Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.6423879Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6424058Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6424316Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6424432Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6424550Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6424660Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6424810Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6425127Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6425246Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6425339Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6425347Z 2022-11-23T01:08:11.6425575Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.6425746Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6425965Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6426313Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6426491Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6426822Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6426977Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6427169Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6427580Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6427804Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6427979Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6428173Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6428743Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6428908Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6429121Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6429877Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6430091Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6430897Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6431079Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6431227Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6431833Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6431981Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6432135Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6432391Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6432510Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6432628Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6432749Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6432898Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6433210Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6433315Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6433409Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6433415Z 2022-11-23T01:08:11.6435083Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:11.6435177Z ================== 2022-11-23T01:08:11.6644207Z ================== 2022-11-23T01:08:11.6645707Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6646027Z  Write of size 1 at 0x7b7400035476 by thread T2: 2022-11-23T01:08:11.6650138Z  #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+0x8718da5) 2022-11-23T01:08:11.6650656Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6651032Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6651511Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6652015Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6652491Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6652741Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6653126Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6653359Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6653370Z 2022-11-23T01:08:11.6653688Z  Previous write of size 1 at 0x7b7400035476 by main thread: 2022-11-23T01:08:11.6657534Z  #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+0x8718da5) 2022-11-23T01:08:11.6658046Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6658437Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6659241Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6659744Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6660072Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6660407Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6660788Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6661152Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6662439Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.6662859Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.6663236Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6663913Z #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+0x6562cde) 2022-11-23T01:08:11.6664564Z #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+0x20cf997) 2022-11-23T01:08:11.6664928Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6665266Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6666601Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6667001Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6667357Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6668694Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6669064Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6669470Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6670914Z #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+0x35a2a44) 2022-11-23T01:08:11.6671320Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6672725Z #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+0x634d148) 2022-11-23T01:08:11.6673029Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6674027Z #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+0x50edd3b) 2022-11-23T01:08:11.6674272Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6674552Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6674729Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6674908Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6675166Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6675271Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6675393Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6675512Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6675662Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6675978Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6676098Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6676193Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6676200Z 2022-11-23T01:08:11.6676444Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.6676613Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6676741Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6676890Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6677098Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.6677547Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.6677818Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.6678117Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.6678412Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.6679496Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.6680127Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.6680446Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.6681476Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.6681779Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.6681971Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.6682243Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.6683390Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.6683701Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6684756Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6685045Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6685321Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6686473Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6686839Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6687948Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6688243Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6688439Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6688741Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.6689877Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.6690190Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6691275Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6691571Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6691843Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6692966Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6693292Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6694426Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6694742Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6694939Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6695093Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.6695735Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.6695887Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.6696082Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.6696287Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.6696522Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.6696739Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6697123Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.6697546Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.6697762Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6697959Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6698864Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6699117Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6699324Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6700100Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6700315Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6700553Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6701352Z #53 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+0x35a2a44) 2022-11-23T01:08:11.6701590Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6702608Z #55 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+0x634d148) 2022-11-23T01:08:11.6703008Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6704426Z #57 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+0x50edd3b) 2022-11-23T01:08:11.6704762Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6705268Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6705566Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6705830Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6706822Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6707055Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6707283Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6707507Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6707754Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6708324Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6708513Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6708685Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6708696Z 2022-11-23T01:08:11.6709133Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.6709356Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6709683Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6710253Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6710574Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6711076Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6711317Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6711567Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6712301Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6712669Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6712959Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6713267Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6714174Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6714464Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6714835Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6716036Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6716412Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6717812Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6718135Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6718382Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6719484Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6719818Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6720074Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6720554Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6720745Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6720972Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6721200Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6721475Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6722066Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6722296Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6722447Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6722457Z 2022-11-23T01:08:11.6725582Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:11.6725702Z ================== 2022-11-23T01:08:11.6725893Z ================== 2022-11-23T01:08:11.6726188Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6726496Z  Write of size 1 at 0x7b7400035476 by thread T1: 2022-11-23T01:08:11.6730503Z  #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+0x8718da5) 2022-11-23T01:08:11.6731001Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6731392Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6731890Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6732426Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6732903Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6733152Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6733547Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6733794Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6733804Z 2022-11-23T01:08:11.6734148Z  Previous write of size 1 at 0x7b7400035476 by main thread: 2022-11-23T01:08:11.6736918Z  #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+0x8718da5) 2022-11-23T01:08:11.6737183Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6737406Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6737723Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6738016Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6738237Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6738438Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6738764Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6738983Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6739696Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.6739958Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.6740166Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6740569Z #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+0x6562cde) 2022-11-23T01:08:11.6740962Z #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+0x20cf997) 2022-11-23T01:08:11.6741180Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6741382Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6742198Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6742410Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6742617Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6743428Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6743640Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6743884Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6744709Z #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+0x35a2a44) 2022-11-23T01:08:11.6744949Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6745779Z #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+0x634d148) 2022-11-23T01:08:11.6746014Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6746874Z #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+0x50edd3b) 2022-11-23T01:08:11.6747122Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6747387Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6747565Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6747741Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6747997Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6748114Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6748232Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6748352Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6748500Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6748818Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6748933Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6761889Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6761909Z 2022-11-23T01:08:11.6762386Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.6762689Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6762914Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6763197Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6763545Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.6764310Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.6764769Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.6765216Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.6765656Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.6767589Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.6768733Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.6769270Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.6771080Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.6771583Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.6771901Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.6772356Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.6774292Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.6774852Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6776713Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6777188Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6777663Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6779921Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6780538Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6782478Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6782975Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6783304Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6783814Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.6785713Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.6786250Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6788115Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6788638Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6789098Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6791115Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6791688Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6793612Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6794145Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6794482Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6794723Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.6795797Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.6796036Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.6796314Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.6796614Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.6796957Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.6797283Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6797836Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.6798407Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.6798718Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6799024Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6800243Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6800591Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6800889Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6802002Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6802317Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6802662Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6803854Z #53 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+0x35a2a44) 2022-11-23T01:08:11.6804351Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6805584Z #55 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+0x634d148) 2022-11-23T01:08:11.6805919Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6807326Z #57 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+0x50edd3b) 2022-11-23T01:08:11.6807687Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6808098Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6808366Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6808641Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6809021Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6809170Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6809316Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6809507Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6809725Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6810180Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6810355Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6810505Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6810516Z 2022-11-23T01:08:11.6810855Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.6811112Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6811431Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6811907Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6812160Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6812589Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6812818Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6813117Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6813806Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6814142Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6814430Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6814765Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6815603Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6815849Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6816176Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6817193Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6817502Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6818773Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6819048Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6819262Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6820113Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6820329Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6820550Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6820983Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6821127Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6821366Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6821539Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6821753Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6822212Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6822386Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6822510Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6822519Z 2022-11-23T01:08:11.6824993Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:11.6825092Z ================== 2022-11-23T01:08:11.6825196Z ================== 2022-11-23T01:08:11.6825451Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6825698Z  Write of size 1 at 0x7b7400035476 by thread T3: 2022-11-23T01:08:11.6829110Z  #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+0x8718da5) 2022-11-23T01:08:11.6829550Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6830037Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6830515Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6831057Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6831516Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6831748Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6832135Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6832360Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6832376Z 2022-11-23T01:08:11.6832693Z  Previous write of size 1 at 0x7b7400035476 by main thread: 2022-11-23T01:08:11.6836512Z  #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+0x8718da5) 2022-11-23T01:08:11.6836982Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6837355Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6837835Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6838321Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6838640Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6839019Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6839400Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6839768Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6840991Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.6841395Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.6841778Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6842444Z #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+0x6562cde) 2022-11-23T01:08:11.6843111Z #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+0x20cf997) 2022-11-23T01:08:11.6843477Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6843822Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6845129Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6845482Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6845835Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6847228Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6847647Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6848051Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6849423Z #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+0x35a2a44) 2022-11-23T01:08:11.6849817Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6851232Z #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+0x634d148) 2022-11-23T01:08:11.6851637Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6853123Z #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+0x50edd3b) 2022-11-23T01:08:11.6853466Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6853928Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6854267Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6854580Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6855006Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6855190Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6855375Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6855575Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6855824Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6856360Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6856566Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6856727Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6856737Z 2022-11-23T01:08:11.6857115Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.6857414Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6857626Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6857899Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6858235Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.6859166Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.6859622Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.6860075Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.6860542Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.6862546Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.6863740Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.6864227Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.6865265Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.6865540Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.6865732Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.6866002Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.6867157Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.6867494Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6868570Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6868846Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6869115Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6870315Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6870685Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6871778Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6872099Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6872295Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6872595Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.6873706Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.6874012Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6875107Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6875410Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6875681Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6876806Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6877143Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6878242Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6878558Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6878751Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6878925Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.6879571Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.6879728Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.6879926Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.6880128Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.6880368Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.6880590Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6880978Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.6881365Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.6881582Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6881787Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6882553Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6882759Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6882997Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6883774Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6884012Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6884249Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6885055Z #53 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+0x35a2a44) 2022-11-23T01:08:11.6885292Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6886140Z #55 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+0x634d148) 2022-11-23T01:08:11.6886377Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6887251Z #57 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+0x50edd3b) 2022-11-23T01:08:11.6887483Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6887758Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6887937Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6888118Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6888380Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6888500Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6888621Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6888744Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6888894Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6889207Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6889314Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6889409Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6889416Z 2022-11-23T01:08:11.6889655Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.6889827Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6890050Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6890372Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6890547Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6890843Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6891001Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6891193Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6891833Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6892171Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6892466Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6892763Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6893711Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6894028Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6894383Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6895488Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6895847Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.6897136Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.6897410Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.6897635Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.6898665Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.6898914Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.6899141Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.6899581Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6899788Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6899980Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6900173Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6900516Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6901041Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6901286Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6901435Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6901443Z 2022-11-23T01:08:11.6904239Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:11.6904362Z ================== 2022-11-23T01:08:11.6904634Z ================== 2022-11-23T01:08:11.6904932Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.6905240Z  Write of size 1 at 0x7b7400035477 by thread T3: 2022-11-23T01:08:11.6909099Z  #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+0x8718e1d) 2022-11-23T01:08:11.6909519Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6909987Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6910441Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6911077Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6911551Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.6911841Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.6912238Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.6912455Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.6912466Z 2022-11-23T01:08:11.6912825Z  Previous write of size 1 at 0x7b7400035477 by main thread: 2022-11-23T01:08:11.6916594Z  #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+0x8718e1d) 2022-11-23T01:08:11.6917049Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.6917432Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.6917874Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.6918365Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.6918703Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.6919038Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.6919377Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.6919719Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.6920983Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.6921422Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.6921755Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6922311Z #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+0x6562cde) 2022-11-23T01:08:11.6922914Z #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+0x20cf997) 2022-11-23T01:08:11.6923244Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6923562Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6924693Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6925023Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6925339Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6926624Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6926959Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6927378Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6928644Z #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+0x35a2a44) 2022-11-23T01:08:11.6929020Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6930296Z #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+0x634d148) 2022-11-23T01:08:11.6930673Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6931686Z #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+0x50edd3b) 2022-11-23T01:08:11.6932012Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6932432Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6932748Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6933028Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6933423Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6933662Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6933839Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6934031Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6934277Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6934759Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6934953Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6935107Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6935118Z 2022-11-23T01:08:11.6935492Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.6935768Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.6935968Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.6936220Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.6936530Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.6937232Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.6937615Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.6937943Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.6938330Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.6940178Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.6941188Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.6941727Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.6943320Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.6943764Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.6944061Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.6944473Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.6946218Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.6946696Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6948401Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6948838Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6949254Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6951075Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6951615Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6953336Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6953671Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6953865Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6954164Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.6955731Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.6956235Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.6957922Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.6958404Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.6958912Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.6960741Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.6961258Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.6963119Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.6963579Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.6963906Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.6964134Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.6965177Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.6965368Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.6965566Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.6965799Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.6966171Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.6966522Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.6967154Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.6967778Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.6968099Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.6968348Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.6969477Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.6969728Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6969991Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.6971250Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.6971637Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.6972471Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.6974180Z #53 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+0x35a2a44) 2022-11-23T01:08:11.6975473Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6977290Z #55 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+0x634d148) 2022-11-23T01:08:11.6978976Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.6980576Z #57 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+0x50edd3b) 2022-11-23T01:08:11.6982309Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.6983052Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.6983748Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.6984196Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.6984732Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.6985122Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.6985382Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.6985629Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.6985925Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.6986417Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.6986863Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.6987086Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.6987216Z 2022-11-23T01:08:11.6987462Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.6987827Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.6988194Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.6988736Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.6989232Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.6989785Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.6990245Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.6990746Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.6991629Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.6992362Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.6992984Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.6993557Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.6994774Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.6995959Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.6996564Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.6997912Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.6999177Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7000693Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7002079Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7002573Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7003660Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7004696Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7005138Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7005807Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7006371Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7006749Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7007117Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7007545Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7008248Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7008889Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7009205Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7009404Z 2022-11-23T01:08:11.7011962Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:11.7013515Z ================== 2022-11-23T01:08:11.7013737Z ================== 2022-11-23T01:08:11.7014129Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.7014586Z  Write of size 1 at 0x7b7400035477 by thread T1: 2022-11-23T01:08:11.7018725Z  #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+0x8718e1d) 2022-11-23T01:08:11.7021493Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7022304Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7023174Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7024168Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7025130Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.7025822Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.7026530Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.7027166Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.7027496Z 2022-11-23T01:08:11.7027825Z  Previous write of size 1 at 0x7b7400035477 by main thread: 2022-11-23T01:08:11.7032043Z  #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+0x8718e1d) 2022-11-23T01:08:11.7034877Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7035697Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7036537Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7037510Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7038336Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.7039030Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.7039798Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.7040559Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.7042217Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.7043788Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.7044618Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7045649Z #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+0x6562cde) 2022-11-23T01:08:11.7046939Z #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+0x20cf997) 2022-11-23T01:08:11.7047955Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7048685Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7050436Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7052122Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7052888Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7054732Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7056481Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7057307Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7059409Z #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+0x35a2a44) 2022-11-23T01:08:11.7061306Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7063258Z #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+0x634d148) 2022-11-23T01:08:11.7065135Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7067100Z #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+0x50edd3b) 2022-11-23T01:08:11.7068920Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7069833Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7070645Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7071308Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7072117Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7072800Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7073301Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7073769Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7074274Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7075161Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7076013Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7076430Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7076657Z 2022-11-23T01:08:11.7077066Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.7077659Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.7078124Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.7078678Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.7079343Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.7080528Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.7081797Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.7082765Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.7083719Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.7086164Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.7089394Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.7091036Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.7093501Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.7095981Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.7096830Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.7097679Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.7100326Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.7102998Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7105981Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7108601Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7109653Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7112270Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7115041Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7117722Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7120423Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7121344Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7122257Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.7124896Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.7127607Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7130178Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7132778Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7133828Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7136469Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7139383Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7142036Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7144666Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7145560Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7146193Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.7147667Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.7149152Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.7149852Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.7150650Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.7151435Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.7152262Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7153365Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.7154741Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.7155819Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7156578Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7158335Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7160044Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7160791Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7162575Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7164339Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7165154Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7167102Z #53 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+0x35a2a44) 2022-11-23T01:08:11.7168894Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7170883Z #55 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+0x634d148) 2022-11-23T01:08:11.7172769Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7174744Z #57 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+0x50edd3b) 2022-11-23T01:08:11.7176528Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7177400Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7178195Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7178938Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7179825Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7180501Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7180942Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7181431Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7181947Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7182817Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7183613Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7184017Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7184269Z 2022-11-23T01:08:11.7184703Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.7185314Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.7185954Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.7186937Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.7187828Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.7188698Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.7189656Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.7190316Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.7191449Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.7192345Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.7193097Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.7193829Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.7195251Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.7196565Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.7197295Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.7199004Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.7200607Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7202441Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7204132Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7204727Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7206109Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7207388Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7207931Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7208740Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7209421Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7209871Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7210325Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7210845Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7211756Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7212562Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7212962Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7213187Z 2022-11-23T01:08:11.7216472Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:11.7218415Z ================== 2022-11-23T01:08:11.7218796Z ================== 2022-11-23T01:08:11.7219272Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.7219824Z  Write of size 1 at 0x7b7400035477 by thread T2: 2022-11-23T01:08:11.7224287Z  #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+0x8718e1d) 2022-11-23T01:08:11.7227237Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7228105Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7229026Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7230163Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7231175Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.7231918Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.7232591Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.7233241Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.7233540Z 2022-11-23T01:08:11.7233878Z  Previous write of size 1 at 0x7b7400035477 by main thread: 2022-11-23T01:08:11.7238378Z  #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+0x8718e1d) 2022-11-23T01:08:11.7241428Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7242278Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7243191Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7244243Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7245129Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.7245872Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.7246658Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.7247453Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.7249171Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.7250849Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.7251710Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7252821Z #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+0x6562cde) 2022-11-23T01:08:11.7254276Z #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+0x20cf997) 2022-11-23T01:08:11.7255361Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7256133Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7257888Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7259675Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7260423Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7262270Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7264040Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7264864Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7266863Z #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+0x35a2a44) 2022-11-23T01:08:11.7268737Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7270796Z #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+0x634d148) 2022-11-23T01:08:11.7272648Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7274610Z #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+0x50edd3b) 2022-11-23T01:08:11.7276458Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7277333Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7278152Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7278799Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7279626Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7280311Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7280761Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7281209Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7281723Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7282602Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7283451Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7283897Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7284143Z 2022-11-23T01:08:11.7284555Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.7285204Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.7285660Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.7286187Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.7286874Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.7288072Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.7289340Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.7290304Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.7291277Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.7293745Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.7296971Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.7298731Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.7301242Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.7303790Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.7304622Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.7305465Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.7308012Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.7310763Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7313370Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7315922Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7316915Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7319560Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7322356Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7324947Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7327560Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7328480Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7329400Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.7331996Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.7334665Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7337216Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7339920Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7340913Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7343634Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7346515Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7349160Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7351870Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7352721Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7353350Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.7354831Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.7356245Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.7356897Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.7357618Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.7358454Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.7359298Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7360440Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.7361843Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.7362960Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7363769Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7365555Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7367213Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7367973Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7369842Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7371629Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7372450Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7374403Z #53 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+0x35a2a44) 2022-11-23T01:08:11.7376245Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7378257Z #55 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+0x634d148) 2022-11-23T01:08:11.7380214Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7382176Z #57 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+0x50edd3b) 2022-11-23T01:08:11.7383975Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7384841Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7385644Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7386285Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7387105Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7387788Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7388247Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7388685Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7389201Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7390204Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7391001Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7391450Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7391676Z 2022-11-23T01:08:11.7392080Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.7392679Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.7393323Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.7394297Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.7395189Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.7396073Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.7396882Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.7397527Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.7398644Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.7399519Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.7400261Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.7400961Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.7402352Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.7403623Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.7404359Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.7406015Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.7407605Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7409437Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7411151Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7411752Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7413108Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7414395Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7414954Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7415724Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7416414Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7416866Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7417327Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7417876Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7418858Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7419656Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7420067Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7420295Z 2022-11-23T01:08:11.7423510Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:11.7425368Z ================== 2022-11-23T01:08:11.7425722Z ================== 2022-11-23T01:08:11.7426193Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.7426755Z  Write of size 1 at 0x7b7400035478 by thread T3: 2022-11-23T01:08:11.7431342Z  #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+0x8718e64) 2022-11-23T01:08:11.7434393Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7435251Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7436176Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7437231Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7438236Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.7438971Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.7439659Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.7440313Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.7440604Z 2022-11-23T01:08:11.7440942Z  Previous write of size 1 at 0x7b7400035478 by main thread: 2022-11-23T01:08:11.7445468Z  #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+0x8718e64) 2022-11-23T01:08:11.7448431Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7449311Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7450212Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7451245Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7452124Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.7452860Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.7453650Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.7454451Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.7456154Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.7457818Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.7458761Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7459855Z #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+0x6562cde) 2022-11-23T01:08:11.7461318Z #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+0x20cf997) 2022-11-23T01:08:11.7462443Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7463207Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7464981Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7466657Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7467404Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7469242Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7471075Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7471891Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7473816Z #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+0x35a2a44) 2022-11-23T01:08:11.7475621Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7477648Z #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+0x634d148) 2022-11-23T01:08:11.7479545Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7481494Z #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+0x50edd3b) 2022-11-23T01:08:11.7483293Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7484163Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7484980Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7485641Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7486452Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7487133Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7487586Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7488054Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7488561Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7489437Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7490235Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7490648Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7490862Z 2022-11-23T01:08:11.7491276Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.7491866Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.7492337Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.7492864Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.7493606Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.7494805Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.7496107Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.7497076Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.7498046Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.7500622Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.7503844Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.7505480Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.7508024Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.7510623Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.7511469Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.7512322Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.7514874Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.7517577Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7520111Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7522740Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7523749Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7526411Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7529183Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7531819Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7534480Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7535362Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7536280Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.7539478Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.7541183Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7542563Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7543984Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7544529Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7545974Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7547525Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7548944Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7550457Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7550927Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7551286Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.7552101Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.7552860Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.7553227Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.7553638Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.7554087Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.7554535Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7555183Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.7555958Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.7556580Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7557007Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7557969Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7558898Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7559317Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7560314Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7561272Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7561734Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7562810Z #53 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+0x35a2a44) 2022-11-23T01:08:11.7563811Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7564896Z #55 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+0x634d148) 2022-11-23T01:08:11.7565933Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7567003Z #57 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+0x50edd3b) 2022-11-23T01:08:11.7567996Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7568484Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7568941Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7569292Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7569744Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7570123Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7570378Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7570626Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7570915Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7571394Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7571830Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7572114Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7572243Z 2022-11-23T01:08:11.7572497Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.7572887Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.7573245Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.7573795Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.7574308Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.7574800Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.7575252Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.7575617Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.7576237Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.7576716Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.7577128Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.7577518Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.7578284Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.7579154Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.7579560Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.7580230Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.7580443Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7581268Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7581501Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7581644Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7582223Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7582374Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7582528Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7582781Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7582898Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7583024Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7583143Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7583291Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7583602Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7583722Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7583818Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7583824Z 2022-11-23T01:08:11.7585500Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:11.7585577Z ================== 2022-11-23T01:08:11.7585643Z ================== 2022-11-23T01:08:11.7585801Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.7585977Z  Write of size 1 at 0x7b7400035478 by thread T1: 2022-11-23T01:08:11.7588207Z  #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+0x8718e64) 2022-11-23T01:08:11.7588496Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7588720Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7589005Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7589297Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7589662Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.7589810Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.7590036Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.7590173Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.7590179Z 2022-11-23T01:08:11.7590368Z  Previous write of size 1 at 0x7b7400035478 by main thread: 2022-11-23T01:08:11.7592573Z  #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+0x8718e64) 2022-11-23T01:08:11.7592862Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7593081Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7593366Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7593655Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7593850Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.7594058Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.7594285Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.7594499Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.7595212Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.7595457Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.7595679Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7596068Z #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+0x6562cde) 2022-11-23T01:08:11.7596454Z #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+0x20cf997) 2022-11-23T01:08:11.7596669Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7596898Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7597654Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7597899Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7598103Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7598880Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7599092Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7599335Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7600146Z #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+0x35a2a44) 2022-11-23T01:08:11.7600387Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7601263Z #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+0x634d148) 2022-11-23T01:08:11.7601529Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7602368Z #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+0x50edd3b) 2022-11-23T01:08:11.7602577Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7602850Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7603027Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7603210Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7603466Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7603585Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7603703Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7603823Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7603972Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7604272Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7604396Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7604491Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7604497Z 2022-11-23T01:08:11.7604725Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.7604893Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.7605020Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.7605182Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.7605392Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.7605930Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.7606201Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.7606496Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.7606762Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.7607839Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.7608477Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.7608783Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.7609843Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.7610134Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.7610348Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.7610620Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.7611721Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.7612034Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7613097Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7613379Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7613650Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7614833Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7615186Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7616277Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7616579Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7616774Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7617073Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.7618194Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.7618624Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7619690Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7619970Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7620243Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7621375Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7621736Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7622826Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7623163Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7623344Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7623492Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.7624145Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.7624303Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.7624500Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.7624688Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.7624924Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.7625141Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7625527Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.7625930Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.7626172Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7626362Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7627154Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7627360Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7627566Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7628347Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7628560Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7628797Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7629674Z #53 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+0x35a2a44) 2022-11-23T01:08:11.7629929Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7630906Z #55 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+0x634d148) 2022-11-23T01:08:11.7631168Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7631999Z #57 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+0x50edd3b) 2022-11-23T01:08:11.7632210Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7632646Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7632822Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7633002Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7633261Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7633377Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7633496Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7633605Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7633757Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7634069Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7634187Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7634281Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7634289Z 2022-11-23T01:08:11.7634515Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.7634683Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.7634903Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.7635222Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.7635427Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.7635726Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.7635913Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.7636109Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.7636521Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.7636744Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.7636929Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.7637109Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.7637680Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.7637848Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.7638074Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.7638740Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.7638954Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7639729Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7639913Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7640098Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7640677Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7640852Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7641004Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7641262Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7641376Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7641496Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7641615Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7641766Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7642077Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7642184Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7642277Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7642283Z 2022-11-23T01:08:11.7643943Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:11.7644027Z ================== 2022-11-23T01:08:11.7644080Z ================== 2022-11-23T01:08:11.7644249Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.7644423Z  Write of size 1 at 0x7b7400035478 by thread T2: 2022-11-23T01:08:11.7646649Z  #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+0x8718e64) 2022-11-23T01:08:11.7646979Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7647201Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7647485Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7647775Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7648044Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.7648184Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.7648412Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.7648537Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.7648543Z 2022-11-23T01:08:11.7648728Z  Previous write of size 1 at 0x7b7400035478 by main thread: 2022-11-23T01:08:11.7650930Z  #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+0x8718e64) 2022-11-23T01:08:11.7651190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.7651440Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.7651725Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.7652043Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.7652239Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.7652444Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.7652673Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:11.7652887Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.7653602Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:11.7653839Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:11.7654061Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7654448Z #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+0x6562cde) 2022-11-23T01:08:11.7654836Z #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+0x20cf997) 2022-11-23T01:08:11.7655051Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7655252Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7656034Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7656266Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7656472Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7657260Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7657472Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7657709Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7658596Z #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+0x35a2a44) 2022-11-23T01:08:11.7658835Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7659661Z #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+0x634d148) 2022-11-23T01:08:11.7659913Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7660797Z #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+0x50edd3b) 2022-11-23T01:08:11.7661036Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7661311Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7661488Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7661664Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7661921Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7662035Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7662154Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7662264Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7662415Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7662729Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7662851Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7662943Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7662950Z 2022-11-23T01:08:11.7663173Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2022-11-23T01:08:11.7663338Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.7663464Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.7663626Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.7663834Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:11.7664280Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:11.7664553Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:11.7664852Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:11.7665120Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:11.7666220Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:11.7666858Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:11.7667161Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:11.7668189Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:11.7668466Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:11.7668652Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:11.7668953Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:11.7670154Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:11.7670464Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7671549Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7671830Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7672101Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7673272Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7673635Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7674724Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7675015Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7675209Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7675506Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:11.7676612Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:11.7676951Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:11.7678048Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:11.7678326Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:11.7678596Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:11.7679721Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:11.7680057Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:11.7681175Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:11.7681487Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:11.7681681Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:11.7681826Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:11.7682469Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:11.7682622Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:11.7682820Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:11.7683020Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:11.7683256Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:11.7683473Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:11.7683863Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:11.7684250Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:11.7684464Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:11.7684665Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.7685453Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.7685686Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7685892Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:11.7686676Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:11.7686885Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:11.7687127Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:11.7687929Z #53 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+0x35a2a44) 2022-11-23T01:08:11.7688169Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7689037Z #55 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+0x634d148) 2022-11-23T01:08:11.7689274Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.7690135Z #57 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+0x50edd3b) 2022-11-23T01:08:11.7690340Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.7690618Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:11.7690791Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.7690969Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.7691226Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7691342Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7691459Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7691579Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7691729Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7692041Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7692159Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7692240Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7692247Z 2022-11-23T01:08:11.7692469Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.7692636Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.7692861Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.7693180Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.7693358Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.7693654Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.7693806Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.7694027Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.7694435Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.7694685Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.7694869Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.7695061Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.7695736Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.7695903Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.7696127Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.7696786Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.7696998Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.7697767Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.7697952Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.7698095Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.7698801Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.7698952Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.7699104Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.7699397Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.7699512Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.7699630Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.7699751Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.7699900Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.7700214Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.7700335Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.7700430Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.7700438Z 2022-11-23T01:08:11.7702114Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:11.7702185Z ================== 2022-11-23T01:08:11.8897093Z ================== 2022-11-23T01:08:11.8897583Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.8897891Z  Write of size 2 at 0x7b840000f96c by thread T3: 2022-11-23T01:08:11.8902254Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.8902717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.8903190Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.8903676Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.8904165Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.8904636Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.8904878Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.8905268Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.8905495Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.8905510Z 2022-11-23T01:08:11.8905830Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2022-11-23T01:08:11.8909651Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.8910093Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.8910490Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.8910971Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.8911543Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.8911884Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.8912266Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.8912730Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.8913103Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.8914512Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.8914848Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.8915053Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.8915806Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.8916048Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.8916876Z #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+0x634d148) 2022-11-23T01:08:11.8917177Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.8918007Z #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+0x50edd3b) 2022-11-23T01:08:11.8918250Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.8918524Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.8918702Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.8918881Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.8919140Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8919257Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8919378Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8919489Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8919637Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8919952Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8920073Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.8920166Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.8920173Z 2022-11-23T01:08:11.8920425Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.8920593Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.8920719Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.8920881Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.8921126Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.8921395Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.8921668Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.8921999Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.8923144Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.8923834Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.8924156Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.8925229Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.8925532Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.8925725Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.8926025Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.8926294Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.8926565Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.8926860Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.8927835Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.8928413Z #18 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+0x25cf944) 2022-11-23T01:08:11.8928695Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.8929646Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.8929927Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.8930085Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.8930250Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.8930551Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.8930724Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.8930902Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.8931155Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8931271Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8931378Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8931498Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8931650Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8931962Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8932082Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.8932174Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.8932180Z 2022-11-23T01:08:11.8932393Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.8932560Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.8932780Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.8933097Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.8933273Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.8933566Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.8933719Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.8933911Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.8934304Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.8934526Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.8934710Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.8934901Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.8935482Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.8935673Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.8935897Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.8936711Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.8937034Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.8938286Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.8938691Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.8938926Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.8939831Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.8940103Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.8940323Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.8940730Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8940917Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8941122Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8941310Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8941547Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8942183Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8942360Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.8942568Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.8942577Z 2022-11-23T01:08:11.8945203Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.8945331Z ================== 2022-11-23T01:08:11.8945418Z ================== 2022-11-23T01:08:11.8945700Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.8945923Z  Write of size 2 at 0x7b840000f96c by thread T2: 2022-11-23T01:08:11.8949362Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.8949803Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.8950095Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.8950494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.8950950Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.8951408Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.8951636Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.8952037Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.8952242Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.8952251Z 2022-11-23T01:08:11.8952586Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2022-11-23T01:08:11.8955913Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.8956336Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.8956665Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.8957172Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.8957631Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.8957902Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.8958126Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.8958420Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.8958706Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.8959836Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.8960139Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.8960427Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.8961525Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.8961883Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.8963079Z #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+0x634d148) 2022-11-23T01:08:11.8963415Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.8964603Z #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+0x50edd3b) 2022-11-23T01:08:11.8964963Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.8965349Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.8965644Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.8965906Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.8966287Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8966437Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8966630Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8966823Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8967056Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8967539Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8967727Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.8967862Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.8967871Z 2022-11-23T01:08:11.8968240Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.8968486Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.8968674Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.8968915Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.8969287Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.8969695Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.8970106Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.8970604Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.8972287Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.8973253Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.8973796Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.8975447Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.8975879Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.8976168Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.8976583Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.8976972Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.8977318Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.8977759Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.8979375Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.8980306Z #18 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+0x25cf944) 2022-11-23T01:08:11.8980727Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.8982332Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.8982766Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.8983025Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.8983289Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.8983755Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.8984047Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.8984346Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.8984769Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8985005Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8985214Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8985411Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8985704Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8986232Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8986434Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.8986568Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.8986589Z 2022-11-23T01:08:11.8986973Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.8987249Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.8987631Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.8988177Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.8988473Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.8988975Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.8989231Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.8989628Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.8990346Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.8990715Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.8991029Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.8991349Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.8992291Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.8992572Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.8992958Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.8994148Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.8994539Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.8995880Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.8996195Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.8996418Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.8997419Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.8997652Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.8997896Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.8998303Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.8998496Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.8998696Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.8998959Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.8999207Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.8999740Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.8999937Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9000094Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9000105Z 2022-11-23T01:08:11.9003093Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9003290Z ================== 2022-11-23T01:08:11.9003391Z ================== 2022-11-23T01:08:11.9003696Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9003979Z  Write of size 2 at 0x7b840000f96c by thread T1: 2022-11-23T01:08:11.9006865Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.9007129Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9007356Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9007638Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9007926Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9008195Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9008338Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9008563Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9008699Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9008706Z 2022-11-23T01:08:11.9008895Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2022-11-23T01:08:11.9011074Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:11.9011379Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9011605Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9011891Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9012181Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9012374Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9012566Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9012793Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9013006Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9013802Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9014020Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9014221Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9015001Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9015269Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9016092Z #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+0x634d148) 2022-11-23T01:08:11.9016343Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9017172Z #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+0x50edd3b) 2022-11-23T01:08:11.9017379Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9017653Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9017832Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9018010Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9018265Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9018380Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9018634Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9018795Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9018948Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9019261Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9019417Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9019511Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9019517Z 2022-11-23T01:08:11.9019741Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9019909Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9020034Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9020195Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9020442Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9020715Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9020990Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9021326Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9022442Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9023107Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9023455Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9024530Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9044623Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9045033Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9045485Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9045943Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9046391Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9046889Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9048441Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9049124Z #18 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+0x25cf944) 2022-11-23T01:08:11.9049445Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9050406Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9050665Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9050826Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9050990Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9051268Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9051448Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9051625Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9051867Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9051983Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9052101Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9052221Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9052370Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9052686Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9052804Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9052898Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9052905Z 2022-11-23T01:08:11.9053154Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.9053392Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9053647Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9053968Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9054176Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9054473Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9054629Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9054824Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9055233Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9055453Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9055639Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9055831Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9056387Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9056553Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9056780Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9057450Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9057664Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9058630Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9058869Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9059015Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9059599Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9059750Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9059908Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9060162Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9060278Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9060400Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9060521Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9060671Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9060991Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9061112Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9061209Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9061215Z 2022-11-23T01:08:11.9062885Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9062958Z ================== 2022-11-23T01:08:11.9063023Z ================== 2022-11-23T01:08:11.9063190Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9063352Z  Write of size 2 at 0x7b840000f970 by thread T3: 2022-11-23T01:08:11.9065571Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9065859Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9066086Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9066375Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9066665Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9066937Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9067083Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9067310Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9067448Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9067454Z 2022-11-23T01:08:11.9067643Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2022-11-23T01:08:11.9069887Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9070154Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9070417Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9070700Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9070988Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9071179Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9071479Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9071823Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9072158Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9073327Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9073677Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9073990Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9075239Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9075662Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9076971Z #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+0x634d148) 2022-11-23T01:08:11.9077426Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9078781Z #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+0x50edd3b) 2022-11-23T01:08:11.9079094Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9079450Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9079680Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9079954Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9080382Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9080546Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9080693Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9080884Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9081137Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9081549Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9081727Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9081822Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9081829Z 2022-11-23T01:08:11.9082186Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9082354Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9082480Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9082669Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9083087Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9083365Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9083705Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9084214Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9085916Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9087051Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9087547Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9089471Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9089943Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9090253Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9090692Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9091130Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9091467Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9091873Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9093429Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9094310Z #18 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+0x25cf944) 2022-11-23T01:08:11.9094745Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9096225Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9096635Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9096860Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9097108Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9097502Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9097768Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9098032Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9098390Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9098651Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9098846Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9099021Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9099244Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9099676Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9099880Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9100036Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9100048Z 2022-11-23T01:08:11.9100430Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.9100688Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9101028Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9101511Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9101759Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9102188Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9102397Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9102786Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9103390Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9103768Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9104038Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9104329Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9105144Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9105387Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9105711Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9106719Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9107049Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9108203Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9108464Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9108674Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9109622Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9109820Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9110071Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9110451Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9110630Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9110817Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9110992Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9111210Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9111656Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9111836Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9111958Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9111967Z 2022-11-23T01:08:11.9114637Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9114757Z ================== 2022-11-23T01:08:11.9114946Z ================== 2022-11-23T01:08:11.9115229Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9115529Z  Write of size 2 at 0x7b840000f970 by thread T2: 2022-11-23T01:08:11.9119355Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9119809Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9120221Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9120713Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9121215Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9121669Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9121909Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9122273Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9122479Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9122490Z 2022-11-23T01:08:11.9122808Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2022-11-23T01:08:11.9126580Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9127035Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9127412Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9127891Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9128426Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9128754Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9129137Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9129529Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9129882Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9131208Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9131565Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9131898Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9133215Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9133624Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9135038Z #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+0x634d148) 2022-11-23T01:08:11.9135479Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9136904Z #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+0x50edd3b) 2022-11-23T01:08:11.9137166Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9137507Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9137688Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9137867Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9138120Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9138236Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9138343Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9138465Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9138753Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9139066Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9139188Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9139281Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9139288Z 2022-11-23T01:08:11.9139530Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9139698Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9139822Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9139986Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9140218Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9140492Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9140766Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9141175Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9142291Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9142980Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9143311Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9144392Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9144679Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9144871Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9145185Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9145455Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9145730Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9146026Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9147012Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9147593Z #18 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+0x25cf944) 2022-11-23T01:08:11.9147872Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9148819Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9149107Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9149267Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9149426Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9149799Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9149976Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9150153Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9150398Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9150513Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9150632Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9150753Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9150902Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9151217Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9151336Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9151426Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9151432Z 2022-11-23T01:08:11.9151649Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.9151819Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9152036Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9152351Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9152514Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9152806Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9152956Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9153150Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9153558Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9153780Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9153962Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9154151Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9154736Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9154925Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9155149Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9155811Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9156030Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9156803Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9156980Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9157123Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9157792Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9158019Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9158223Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9158552Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9158716Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9158911Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9159095Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9159321Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9159845Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9160040Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9160225Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9160232Z 2022-11-23T01:08:11.9163085Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9163206Z ================== 2022-11-23T01:08:11.9163419Z ================== 2022-11-23T01:08:11.9163743Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9164048Z  Write of size 2 at 0x7b840000f970 by thread T1: 2022-11-23T01:08:11.9167975Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9168423Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9168829Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9169347Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9169916Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9170375Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9170674Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9171046Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9171294Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9171303Z 2022-11-23T01:08:11.9171621Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2022-11-23T01:08:11.9175543Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:11.9175977Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9176348Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9176836Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9177342Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9177673Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9178048Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9178442Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9179081Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9180626Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9181092Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9181429Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9182205Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9182442Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9183275Z #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+0x634d148) 2022-11-23T01:08:11.9183514Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9184358Z #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+0x50edd3b) 2022-11-23T01:08:11.9184595Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9184870Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9185078Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9185255Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9185496Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9185612Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9185730Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9185853Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9186001Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9186312Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9186433Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9186525Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9186531Z 2022-11-23T01:08:11.9186764Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9186932Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9187044Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9187207Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9187452Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9187725Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9187995Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9188329Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9189481Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9190243Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9190577Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9191657Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9191946Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9192139Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9192415Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9192682Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9192927Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9193224Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9194248Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9194853Z #18 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+0x25cf944) 2022-11-23T01:08:11.9195130Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9196089Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9196341Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9196492Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9196650Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9196925Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9197089Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9197291Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9197728Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9197868Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9197989Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9198119Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9198408Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9198929Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9199133Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9199289Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9199298Z 2022-11-23T01:08:11.9199650Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.9199919Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9200271Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9200771Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9201054Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9201524Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9201754Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9202057Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9202762Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9203136Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9203445Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9203757Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9204743Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9205016Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9205369Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9206462Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9206821Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9208091Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9208392Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9208637Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9209546Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9209784Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9210050Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9210367Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9210537Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9210706Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9210903Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9211154Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9211689Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9211903Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9212075Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9212088Z 2022-11-23T01:08:11.9214864Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9214998Z ================== 2022-11-23T01:08:11.9215098Z ================== 2022-11-23T01:08:11.9215382Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9215679Z  Write of size 2 at 0x7b840000f972 by thread T3: 2022-11-23T01:08:11.9219529Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9220041Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9220320Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9220608Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9220899Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9221172Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9221315Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9221539Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9221675Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9221682Z 2022-11-23T01:08:11.9221883Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2022-11-23T01:08:11.9224124Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9224422Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9224648Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9224928Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9225220Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9225414Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9225620Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9225845Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9226057Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9226853Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9227073Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9227304Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9228057Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9228322Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9229151Z #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+0x634d148) 2022-11-23T01:08:11.9229483Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9230401Z #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+0x50edd3b) 2022-11-23T01:08:11.9230613Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9230885Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9231065Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9231241Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9231496Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9231611Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9231731Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9231884Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9232036Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9232351Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9232499Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9232592Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9232598Z 2022-11-23T01:08:11.9232811Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9232975Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9233095Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9233259Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9233500Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9233773Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9234043Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9234380Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9235508Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9236161Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9236520Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9237639Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9237932Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9238122Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9238399Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9238669Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9238912Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9239208Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9240188Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9240809Z #18 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+0x25cf944) 2022-11-23T01:08:11.9241150Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9242498Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9242885Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9243127Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9243370Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9243789Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9244075Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9244338Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9244735Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9244916Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9245102Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9245297Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9245534Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9246035Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9246222Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9246362Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9246372Z 2022-11-23T01:08:11.9246728Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.9247060Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9247415Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9247920Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9248284Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9248768Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9249056Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9249404Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9250113Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9250443Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9250737Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9251038Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9251844Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9252108Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9252481Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9253561Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9253891Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9255109Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9255473Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9255716Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9256694Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9256948Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9257214Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9257647Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9257861Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9258082Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9258268Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9258646Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9259184Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9259391Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9259554Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9259565Z 2022-11-23T01:08:11.9262428Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9262527Z ================== 2022-11-23T01:08:11.9262624Z ================== 2022-11-23T01:08:11.9262854Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9263118Z  Write of size 2 at 0x7b840000f972 by thread T2: 2022-11-23T01:08:11.9266581Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9267040Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9267376Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9267811Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9268255Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9268648Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9268891Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9269264Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9269478Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9269490Z 2022-11-23T01:08:11.9269871Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2022-11-23T01:08:11.9273334Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9273742Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9274145Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9274572Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9275044Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9275351Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9275672Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9276036Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9276368Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9277485Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9277799Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9278100Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9279216Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9279623Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9280826Z #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+0x634d148) 2022-11-23T01:08:11.9281219Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9282492Z #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+0x50edd3b) 2022-11-23T01:08:11.9282857Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9283333Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9283622Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9283923Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9284354Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9284544Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9284741Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9284945Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9285196Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9285721Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9285930Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9286091Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9286100Z 2022-11-23T01:08:11.9286473Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9286743Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9286946Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9287285Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9287708Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9288216Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9288675Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9289255Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9291169Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9292281Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9292822Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9294743Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9295292Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9295618Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9296100Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9296555Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9296977Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9297480Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9299260Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9300259Z #18 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+0x25cf944) 2022-11-23T01:08:11.9300744Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9302470Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9302967Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9303223Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9303485Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9303946Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9304236Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9304543Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9305002Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9305202Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9305380Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9305504Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9305654Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9306031Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9306152Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9306245Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9306252Z 2022-11-23T01:08:11.9306490Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.9306647Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9306868Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9307187Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9307363Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9307658Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9307856Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9308047Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9308453Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9308710Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9308897Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9309088Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9309716Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9309886Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9310112Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9310770Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9310982Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9311762Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9311939Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9312083Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9312693Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9312841Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9313020Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9313274Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9313378Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9313497Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9313620Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9313768Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9314083Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9314204Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9314300Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9314306Z 2022-11-23T01:08:11.9315982Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9316056Z ================== 2022-11-23T01:08:11.9316229Z ================== 2022-11-23T01:08:11.9316385Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9316560Z  Write of size 2 at 0x7b840000f972 by thread T1: 2022-11-23T01:08:11.9318753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9319031Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9319284Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9319571Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9319862Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9320132Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9320275Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9320500Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9320624Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9320642Z 2022-11-23T01:08:11.9320818Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2022-11-23T01:08:11.9322954Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:11.9323212Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9323436Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9323718Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9324033Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9324227Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9324459Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9324688Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9324898Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9325684Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9325901Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9326105Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9326920Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9327186Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9328558Z #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+0x634d148) 2022-11-23T01:08:11.9329028Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9330217Z #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+0x50edd3b) 2022-11-23T01:08:11.9330575Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9331011Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9331305Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9331549Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9331934Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9332120Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9332327Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9332529Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9332785Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9333218Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9333434Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9333557Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9333569Z 2022-11-23T01:08:11.9333957Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9334239Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9334441Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9334708Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9335120Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9335582Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9336022Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9336674Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9338666Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9339408Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9339725Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9340820Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9341112Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9341304Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9341617Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9341887Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9342158Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9342457Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9343432Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9344027Z #18 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+0x25cf944) 2022-11-23T01:08:11.9344311Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9345243Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9345560Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9345796Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9345961Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9346358Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9346638Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9346933Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9347383Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9347596Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9347815Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9347991Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9348143Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9348443Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9348562Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9348655Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9348662Z 2022-11-23T01:08:11.9348886Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.9349059Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9349280Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9349656Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9349833Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9350130Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9350285Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9350478Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9350887Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9351108Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9351294Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9351486Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9352085Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9352279Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9352504Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9353164Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9353375Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9354148Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9354328Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9354470Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9355056Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9355203Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9355358Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9355612Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9355727Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9355849Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9355972Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9356117Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9356454Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9356573Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9356693Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9356698Z 2022-11-23T01:08:11.9358367Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9358439Z ================== 2022-11-23T01:08:11.9358504Z ================== 2022-11-23T01:08:11.9358660Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9358833Z  Write of size 2 at 0x7b840000f974 by thread T3: 2022-11-23T01:08:11.9360994Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9361254Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9361482Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9361765Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9362079Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9362348Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9362518Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9362741Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9362878Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9362884Z 2022-11-23T01:08:11.9363059Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2022-11-23T01:08:11.9365223Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9365552Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9365901Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9366326Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9366729Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9367023Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9367292Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9367636Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9367998Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9369488Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9369788Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9370091Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9371267Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9371726Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9373141Z #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+0x634d148) 2022-11-23T01:08:11.9373518Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9374924Z #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+0x50edd3b) 2022-11-23T01:08:11.9375372Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9375867Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9376230Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9376561Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9377033Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9377242Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9377456Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9377677Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9377949Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9378621Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9378826Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9378994Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9379005Z 2022-11-23T01:08:11.9379438Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9379735Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9379964Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9380260Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9380709Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9381219Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9381720Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9382347Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9384555Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9385835Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9386426Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9388444Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9388934Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9389243Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9389775Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9390221Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9390674Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9391221Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9392755Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9393376Z #18 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+0x25cf944) 2022-11-23T01:08:11.9393659Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9394603Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9394861Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9395019Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9395183Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9395457Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9395632Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9395806Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9396088Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9396205Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9396322Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9396470Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9396619Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9396934Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9397052Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9397134Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9397153Z 2022-11-23T01:08:11.9397359Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.9397528Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9397750Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9398068Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9398244Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9398542Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9398698Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9398890Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9399295Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9399516Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9399700Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9399891Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9400446Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9400613Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9400837Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9401534Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9401774Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9402544Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9402723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9402866Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9403456Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9403603Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9403744Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9403999Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9404114Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9404232Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9404352Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9404504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9404816Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9404935Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9405032Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9405037Z 2022-11-23T01:08:11.9406718Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9406830Z ================== 2022-11-23T01:08:11.9406981Z ================== 2022-11-23T01:08:11.9407151Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9407328Z  Write of size 2 at 0x7b840000f974 by thread T2: 2022-11-23T01:08:11.9409487Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9409764Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9409992Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9410275Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9410568Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9410836Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9410969Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9411194Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9411329Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9411334Z 2022-11-23T01:08:11.9411555Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2022-11-23T01:08:11.9415221Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9415684Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9415963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9416374Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9416835Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9417167Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9417499Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9417878Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9418245Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9419769Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9420127Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9420555Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9421837Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9422291Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9423314Z #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+0x634d148) 2022-11-23T01:08:11.9423605Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9424795Z #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+0x50edd3b) 2022-11-23T01:08:11.9425165Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9425617Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9425946Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9426239Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9426666Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9426879Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9427143Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9427351Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9427608Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9428149Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9428418Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9428566Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9428576Z 2022-11-23T01:08:11.9429007Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9429323Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9429616Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9429879Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9430308Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9430799Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9431297Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9431915Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9433567Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9434237Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9434598Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9435716Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9436003Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9436194Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9436473Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9436744Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9436987Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9437286Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9438273Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9438890Z #18 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+0x25cf944) 2022-11-23T01:08:11.9439198Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9440135Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9440394Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9440552Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9440717Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9440993Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9441169Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9441348Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9441606Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9441723Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9441844Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9441968Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9442115Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9442417Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9442534Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9442629Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9442636Z 2022-11-23T01:08:11.9442856Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.9443052Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9443279Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9443622Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9443797Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9444090Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9444246Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9444440Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9444846Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9445070Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9445257Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9445450Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9446009Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9446174Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9446398Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9447054Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9447263Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9448060Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9448261Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9448404Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9448982Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9449129Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9449282Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9449538Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9449653Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9449772Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9449892Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9450042Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9450356Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9450476Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9450568Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9450573Z 2022-11-23T01:08:11.9452227Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9452298Z ================== 2022-11-23T01:08:11.9452367Z ================== 2022-11-23T01:08:11.9452523Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9452698Z  Write of size 2 at 0x7b840000f974 by thread T1: 2022-11-23T01:08:11.9454877Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9455245Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9455490Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9455908Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9456350Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9456789Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9457047Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9457430Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9457672Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9457683Z 2022-11-23T01:08:11.9458008Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2022-11-23T01:08:11.9461891Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:11.9462347Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9462724Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9463209Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9463701Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9464026Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9464342Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9464715Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9465085Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9466446Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9466824Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9467174Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9468543Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9469044Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9470493Z #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+0x634d148) 2022-11-23T01:08:11.9470961Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9472448Z #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+0x50edd3b) 2022-11-23T01:08:11.9472818Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9473306Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9473613Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9473921Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9474381Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9474588Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9474812Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9475028Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9475301Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9475875Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9476091Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9476258Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9476269Z 2022-11-23T01:08:11.9476661Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9476963Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9477181Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9477510Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9477963Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9478506Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9479007Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9479632Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9481723Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9482450Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9482769Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9483897Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9484211Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9484404Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9484680Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9484950Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9485194Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9485490Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9486464Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9487060Z #18 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+0x25cf944) 2022-11-23T01:08:11.9487341Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9488303Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9488584Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9488742Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9488904Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9489178Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9489352Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9489529Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9489787Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9489901Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9490019Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9490142Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9490289Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9490600Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9490717Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9490799Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9490806Z 2022-11-23T01:08:11.9491023Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.9491193Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9491410Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9491727Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9491899Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9492193Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9492378Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9492568Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9492975Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9493224Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9493412Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9493602Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9494160Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9494325Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9494551Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9495212Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9495423Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9496194Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9496377Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9496519Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9497126Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9497274Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9497453Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9497708Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9497823Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9497945Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9498065Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9498213Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9498637Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9498760Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9498857Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9498863Z 2022-11-23T01:08:11.9500537Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9500611Z ================== 2022-11-23T01:08:11.9500775Z ================== 2022-11-23T01:08:11.9500946Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9501122Z  Write of size 2 at 0x7b840000f976 by thread T3: 2022-11-23T01:08:11.9504480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9504957Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9505454Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9505957Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9506460Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9506925Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9507154Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9507541Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9507781Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9507791Z 2022-11-23T01:08:11.9508127Z  Previous write of size 2 at 0x7b840000f976 by main thread: 2022-11-23T01:08:11.9512238Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9512728Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9513140Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9513656Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9514249Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9514600Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9514997Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9515415Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9515802Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9517232Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9517609Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9517966Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9519372Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9519806Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9521180Z #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+0x634d148) 2022-11-23T01:08:11.9521612Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9522977Z #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+0x50edd3b) 2022-11-23T01:08:11.9523384Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9523852Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9524134Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9524422Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9524820Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9525012Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9525213Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9525406Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9525653Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9526143Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9526339Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9526488Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9526497Z 2022-11-23T01:08:11.9526907Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9527211Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9527438Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9527736Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9528180Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9528675Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9529158Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9529553Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9530678Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9531379Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9531696Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9532782Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9533089Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9533281Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9533586Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9533857Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9534127Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9534424Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9535394Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9535973Z #18 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+0x25cf944) 2022-11-23T01:08:11.9536268Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9537197Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9537481Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9537685Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9537874Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9538148Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9538324Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9538600Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9538859Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9538975Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9539094Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9539205Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9539355Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9539669Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9539788Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9539881Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9539888Z 2022-11-23T01:08:11.9540107Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:11.9540275Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9540495Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9540813Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9540987Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9541281Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9541440Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9541631Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9542035Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9542258Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9542443Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9542622Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9543251Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9543450Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9543677Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9544338Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9544551Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9545322Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9545502Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9545645Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9546228Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9546375Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9546529Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9546781Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9546898Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9547017Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9547138Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9547285Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9547623Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9547771Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9547852Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9547858Z 2022-11-23T01:08:11.9549531Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9549680Z ================== 2022-11-23T01:08:11.9549734Z ================== 2022-11-23T01:08:11.9549905Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9550083Z  Write of size 2 at 0x7b840000f976 by thread T2: 2022-11-23T01:08:11.9552232Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9552509Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9552736Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9553015Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9553342Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9553612Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9553784Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9554007Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9554132Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9554137Z 2022-11-23T01:08:11.9554324Z  Previous write of size 2 at 0x7b840000f976 by main thread: 2022-11-23T01:08:11.9556480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9556741Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9556965Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9557244Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9557534Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9557726Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9557929Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9558158Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9558372Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9559182Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9559428Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9559630Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9560380Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9560624Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9561459Z #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+0x634d148) 2022-11-23T01:08:11.9561700Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9562530Z #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+0x50edd3b) 2022-11-23T01:08:11.9562763Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9563040Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9563242Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9563422Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9563677Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9563794Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9563916Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9564037Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9564186Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9564501Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9564608Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9564701Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9564706Z 2022-11-23T01:08:11.9564927Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9565091Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9565216Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9565378Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9565622Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9565895Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9566164Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9566498Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9567638Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9568335Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9568652Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9569730Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9570033Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9570226Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9570500Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9570771Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9571016Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9571310Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9572314Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9572930Z #18 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+0x25cf944) 2022-11-23T01:08:11.9573212Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9574145Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9574403Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9574560Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9574724Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9574998Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9575174Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9575350Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9575644Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9575763Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9575883Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9576032Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9576169Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9576482Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9576602Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9576695Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9576700Z 2022-11-23T01:08:11.9576913Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:11.9577082Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9577302Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9577620Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9577798Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9578090Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9578248Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9578441Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9578945Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9579169Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9579355Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9579546Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9580108Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9580271Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9580496Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9581202Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9581446Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9582214Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9582395Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9582541Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9583122Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9583267Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9583422Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9583675Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9583790Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9583911Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9584033Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9584181Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9584495Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9584616Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9584697Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9584702Z 2022-11-23T01:08:11.9586406Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9586517Z ================== 2022-11-23T01:08:11.9586636Z ================== 2022-11-23T01:08:11.9586806Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:11.9586981Z  Write of size 2 at 0x7b840000f976 by thread T1: 2022-11-23T01:08:11.9589109Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9589370Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9589662Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9589946Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9590240Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9590509Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:11.9590654Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:11.9590880Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:11.9591016Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:11.9591021Z 2022-11-23T01:08:11.9591210Z  Previous write of size 2 at 0x7b840000f976 by main thread: 2022-11-23T01:08:11.9593389Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:11.9593679Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:11.9593902Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:11.9594184Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:11.9594478Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:11.9594674Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:11.9594877Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:11.9595107Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:11.9595320Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:11.9596103Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:11.9596322Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:11.9596549Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:11.9597311Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:11.9597577Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9598400Z #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+0x634d148) 2022-11-23T01:08:11.9598640Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:11.9599469Z #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+0x50edd3b) 2022-11-23T01:08:11.9599688Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:11.9599962Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:11.9600129Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9600309Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9600562Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9600677Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9600820Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9600943Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9601091Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9601431Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9601550Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9601645Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9601651Z 2022-11-23T01:08:11.9601874Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2022-11-23T01:08:11.9602026Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:11.9602150Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:11.9602315Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:11.9602560Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:11.9602832Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:11.9603102Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:11.9603438Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:11.9604564Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:11.9605247Z #8 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+0x25b2d4d) 2022-11-23T01:08:11.9605565Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:11.9606679Z #10 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+0x29f1c3e) 2022-11-23T01:08:11.9606967Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:11.9607157Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:11.9607434Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:11.9607704Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:11.9607950Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:11.9608246Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:11.9609275Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:11.9609869Z #18 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+0x25cf944) 2022-11-23T01:08:11.9610178Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:11.9611125Z #20 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+0x29fc8a7) 2022-11-23T01:08:11.9611397Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:11.9611555Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:11.9611705Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:11.9611981Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:11.9612158Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:11.9612335Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:11.9612596Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9612714Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9612834Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9612957Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9613104Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9613414Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9613533Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9613626Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9613631Z 2022-11-23T01:08:11.9613867Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:11.9614035Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:11.9614255Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:11.9614598Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:11.9614773Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:11.9615071Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:11.9615226Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:11.9615418Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:11.9615826Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:11.9616048Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:11.9616235Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:11.9616426Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:11.9616983Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:11.9617147Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:11.9617372Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:11.9618035Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:11.9618247Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:11.9619166Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:11.9619392Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:11.9619525Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:11.9620114Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:11.9620259Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:11.9620412Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:11.9620655Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:11.9620771Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:11.9620890Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:11.9621010Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:11.9621161Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:11.9621474Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:11.9621594Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:11.9621687Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:11.9621693Z 2022-11-23T01:08:11.9623352Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:11.9623424Z ================== 2022-11-23T01:08:12.0399508Z ================== 2022-11-23T01:08:12.0400366Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.0400693Z  Write of size 8 at 0x7ba4000103b0 by main thread: 2022-11-23T01:08:12.0404692Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.0405209Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.0405584Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.0406077Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.0406567Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.0406887Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.0407221Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.0407597Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.0407945Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.0409240Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.0409606Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.0409961Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.0411287Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.0411727Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.0413160Z #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+0x634d148) 2022-11-23T01:08:12.0413568Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.0414967Z #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+0x50edd3b) 2022-11-23T01:08:12.0415317Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.0415771Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:12.0420854Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.0421502Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.0421993Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0422197Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0422464Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0422835Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0423104Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0423696Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0423974Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0424137Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0424148Z 2022-11-23T01:08:12.0424535Z  Previous write of size 8 at 0x7ba4000103b0 by thread T2: 2022-11-23T01:08:12.0429862Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.0430348Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.0430756Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.0431270Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.0431806Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.0432291Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.0432543Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.0432950Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.0433194Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.0433208Z 2022-11-23T01:08:12.0433613Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2022-11-23T01:08:12.0433919Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.0434142Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.0434489Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.0434940Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:12.0435461Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:12.0435964Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:12.0436575Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:12.0438672Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:12.0439934Z #8 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+0x25b2d4d) 2022-11-23T01:08:12.0440522Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:12.0442601Z #10 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+0x29f1c3e) 2022-11-23T01:08:12.0443177Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:12.0443527Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:12.0444029Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:12.0444529Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:12.0444962Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:12.0445512Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:12.0447369Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:12.0448451Z #18 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+0x25cf944) 2022-11-23T01:08:12.0448977Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:12.0450806Z #20 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+0x29fc8a7) 2022-11-23T01:08:12.0451307Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:12.0451587Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:12.0451874Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:12.0452375Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:12.0452685Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.0453009Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.0453473Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0453676Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0453876Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0454099Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0454361Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0454945Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0455153Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0455316Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0455326Z 2022-11-23T01:08:12.0455711Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.0456020Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.0456419Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.0457006Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.0457317Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.0457856Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.0458181Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.0458703Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.0459543Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.0459954Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.0460299Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.0460645Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.0461683Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.0461984Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.0462393Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.0463638Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.0464056Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.0465491Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.0465820Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.0466076Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.0467205Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.0467472Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.0467797Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.0468256Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0468466Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0468676Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0468884Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0469152Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0469817Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0470015Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0470180Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0470189Z 2022-11-23T01:08:12.0473426Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.0473566Z ================== 2022-11-23T01:08:12.0777702Z ================== 2022-11-23T01:08:12.0778597Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.0778963Z  Write of size 8 at 0x7ba400011758 by main thread: 2022-11-23T01:08:12.0783401Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.0783875Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.0784344Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.0784853Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.0785381Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.0785734Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.0786116Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.0786518Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.0786903Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.0788343Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.0788731Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.0789122Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.0790599Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.0791026Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.0792624Z #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+0x634d148) 2022-11-23T01:08:12.0793088Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.0794641Z #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+0x50edd3b) 2022-11-23T01:08:12.0795017Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.0795519Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1cad) 2022-11-23T01:08:12.0795833Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.0796148Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.0796613Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0796817Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0797033Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0797248Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0797517Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0798104Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0798319Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0798465Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0798490Z 2022-11-23T01:08:12.0798822Z  Previous write of size 8 at 0x7ba400011758 by thread T2: 2022-11-23T01:08:12.0803005Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.0803519Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.0803925Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.0804440Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.0805001Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.0805481Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.0805741Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.0806155Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.0806396Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.0806406Z 2022-11-23T01:08:12.0806807Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2022-11-23T01:08:12.0807099Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.0807310Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.0807649Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.0808098Z #3 at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc8437c) 2022-11-23T01:08:12.0808612Z #4 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84b4f) 2022-11-23T01:08:12.0809111Z #5 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18cdee9) 2022-11-23T01:08:12.0809768Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a2748a) 2022-11-23T01:08:12.0811893Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x2b34a07) 2022-11-23T01:08:12.0813155Z #8 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+0x25b2d4d) 2022-11-23T01:08:12.0813755Z #9 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x248204f) 2022-11-23T01:08:12.0815783Z #10 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+0x29f1c3e) 2022-11-23T01:08:12.0816306Z #11 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2481b02) 2022-11-23T01:08:12.0816663Z #12 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xce2e7d) 2022-11-23T01:08:12.0817193Z #13 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d60b2) 2022-11-23T01:08:12.0817692Z #14 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5e11) 2022-11-23T01:08:12.0818180Z #15 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18d5d47) 2022-11-23T01:08:12.0818845Z #16 at::(anonymous namespace)::(anonymous namespace)::wrapper__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2d78a5a) 2022-11-23T01:08:12.0820697Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e53f75) 2022-11-23T01:08:12.0821781Z #18 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+0x25cf944) 2022-11-23T01:08:12.0822311Z #19 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a91f2) 2022-11-23T01:08:12.0824114Z #20 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+0x29fc8a7) 2022-11-23T01:08:12.0824654Z #21 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24a8c76) 2022-11-23T01:08:12.0824936Z #22 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x49df8d) 2022-11-23T01:08:12.0825266Z #23 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x48f119) 2022-11-23T01:08:12.0825769Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23a9) 2022-11-23T01:08:12.0826083Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.0826387Z #26 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.0826867Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0827094Z #28 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0827300Z #29 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0827520Z #30 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0827783Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0828362Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0828574Z #33 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0828737Z #34 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0828746Z 2022-11-23T01:08:12.0829156Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.0829494Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.0829949Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.0830531Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.0830840Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.0831381Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.0831664Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.0832052Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.0832828Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.0833232Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.0833567Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.0833925Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.0835015Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.0835366Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.0835777Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.0837008Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.0837409Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.0838890Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.0839211Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.0839467Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.0840540Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.0840812Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.0841101Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.0841561Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.0841766Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.0841969Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.0842188Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.0842507Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.0843104Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.0843359Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.0843523Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.0843532Z 2022-11-23T01:08:12.0846767Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.0846922Z ================== 2022-11-23T01:08:12.2375537Z ================== 2022-11-23T01:08:12.2376396Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.2377145Z  Write of size 8 at 0x7ba4000293b0 by thread T1: 2022-11-23T01:08:12.2383676Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2386562Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2387433Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2388341Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2389720Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2390705Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.2391535Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.2392214Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.2392871Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.2393163Z 2022-11-23T01:08:12.2393560Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2022-11-23T01:08:12.2397784Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2400356Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2401128Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2402005Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2403054Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2404078Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.2404498Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.2404947Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.2405405Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.2406411Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.2407378Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.2407844Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2408461Z #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+0x6562cde) 2022-11-23T01:08:12.2409238Z #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+0x20cf997) 2022-11-23T01:08:12.2409836Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2410266Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2411229Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2412154Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2412571Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2413597Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2414541Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2415023Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2416071Z #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+0x35a2a44) 2022-11-23T01:08:12.2417066Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2418133Z #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+0x634d148) 2022-11-23T01:08:12.2419275Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2420344Z #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+0x50edd3b) 2022-11-23T01:08:12.2421333Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2421823Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2422281Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2422686Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2423139Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2423556Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2423819Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2424066Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2424359Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2424843Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2425279Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2425505Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2425635Z 2022-11-23T01:08:12.2425889Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.2426227Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.2426480Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.2426789Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.2427179Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.2427849Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.2428551Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.2429092Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.2429691Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.2431071Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.2432842Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.2434013Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.2436170Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.2438384Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.2439100Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.2439866Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.2442247Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.2444468Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2446593Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2448997Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2449902Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2452094Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2454575Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2457229Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2459854Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2460572Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2461222Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.2463548Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.2465930Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2467970Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2469463Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2470128Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2471551Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2473053Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2474462Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2475894Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2476362Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2476717Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.2477555Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.2478352Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.2478718Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.2479126Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.2479577Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.2480028Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2480643Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.2481417Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.2482022Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2482447Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2483411Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2484320Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2484741Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2485773Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2486736Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2487193Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2488241Z #53 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+0x35a2a44) 2022-11-23T01:08:12.2489242Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2490323Z #55 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+0x634d148) 2022-11-23T01:08:12.2491339Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2492412Z #57 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+0x50edd3b) 2022-11-23T01:08:12.2493393Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2493909Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2494367Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2494746Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2495193Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2495569Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2495823Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2496069Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2496359Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2496843Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2497280Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2497505Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2497635Z 2022-11-23T01:08:12.2497894Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.2498231Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.2498697Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.2499511Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.2500115Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.2500669Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.2501282Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.2501748Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.2502557Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.2503141Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.2503651Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.2504122Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.2505102Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.2506107Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.2506635Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.2507807Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.2509017Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.2510762Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.2511674Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.2512013Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.2512753Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.2513459Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.2513767Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.2514200Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2514611Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2515082Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2515479Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2515950Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2516828Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2517595Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2517990Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2518194Z 2022-11-23T01:08:12.2520764Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.2521849Z ================== 2022-11-23T01:08:12.2522123Z ================== 2022-11-23T01:08:12.2522398Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.2522723Z  Write of size 8 at 0x7ba4000293b0 by thread T3: 2022-11-23T01:08:12.2525018Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2526639Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2527125Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2527799Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2528605Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2529424Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.2530001Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.2530627Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.2531196Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.2531466Z 2022-11-23T01:08:12.2531778Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2022-11-23T01:08:12.2535486Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2537700Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2556365Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2557206Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2558065Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2558833Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.2559442Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.2560140Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.2560840Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.2561899Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.2563014Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.2563911Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2564816Z #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+0x6562cde) 2022-11-23T01:08:12.2566006Z #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+0x20cf997) 2022-11-23T01:08:12.2566901Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2567493Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2568772Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2570035Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2570625Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2572129Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2573698Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2574451Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2576299Z #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+0x35a2a44) 2022-11-23T01:08:12.2578086Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2579825Z #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+0x634d148) 2022-11-23T01:08:12.2581558Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2583228Z #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+0x50edd3b) 2022-11-23T01:08:12.2584910Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2585682Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2586419Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2587013Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2587747Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2588403Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2588846Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2589410Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2589997Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2590798Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2591650Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2592001Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2592227Z 2022-11-23T01:08:12.2592634Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.2593225Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.2593694Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.2594246Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.2594951Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.2596151Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.2597153Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.2597695Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.2598227Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.2599573Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.2601395Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.2602292Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.2603659Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.2605039Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.2605502Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.2605973Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.2607354Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.2608833Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2610231Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2611680Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2612220Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2613634Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2615160Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2616598Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2618027Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2618630Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2619139Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.2620559Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.2622021Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2623618Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2625963Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2626923Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2629143Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2631934Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2634435Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2636829Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2637575Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2638089Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.2639301Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.2640535Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.2641205Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.2641865Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.2642633Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.2643368Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2644392Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.2645636Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.2646567Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2647252Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2648861Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2650361Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2651084Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2652444Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2653569Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2654095Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2655143Z #53 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+0x35a2a44) 2022-11-23T01:08:12.2656163Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2657284Z #55 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+0x634d148) 2022-11-23T01:08:12.2658292Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2659489Z #57 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+0x50edd3b) 2022-11-23T01:08:12.2660482Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2660973Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2661429Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2661782Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2662232Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2662669Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2662928Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2663176Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2663520Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2664004Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2664444Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2664665Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2664793Z 2022-11-23T01:08:12.2665041Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.2665379Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.2665738Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.2666287Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.2666772Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.2667251Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.2667701Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.2668066Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.2668676Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.2669152Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.2669633Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.2670023Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.2670783Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.2671478Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.2671881Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.2672813Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.2673688Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.2674682Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.2675595Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.2675925Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.2676664Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.2677367Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.2677669Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.2678095Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2678470Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2678722Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2678969Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2679257Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2679739Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2680179Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2680403Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2680530Z 2022-11-23T01:08:12.2682238Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.2683279Z ================== 2022-11-23T01:08:12.2683431Z ================== 2022-11-23T01:08:12.2683698Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.2684016Z  Write of size 8 at 0x7ba4000293b0 by thread T2: 2022-11-23T01:08:12.2687352Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2689368Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2689846Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2690357Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2690936Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2691501Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.2691917Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.2692303Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.2692654Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.2692819Z 2022-11-23T01:08:12.2693022Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2022-11-23T01:08:12.2695389Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:12.2697902Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2698651Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2699522Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2700476Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2701336Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.2702078Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.2702661Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.2703687Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.2705291Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.2706719Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.2707182Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2707874Z #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+0x6562cde) 2022-11-23T01:08:12.2708685Z #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+0x20cf997) 2022-11-23T01:08:12.2709286Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2709757Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2710722Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2711657Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2712069Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2713148Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2714975Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2715583Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2716760Z #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+0x35a2a44) 2022-11-23T01:08:12.2717939Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2719364Z #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+0x634d148) 2022-11-23T01:08:12.2721114Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2723108Z #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+0x50edd3b) 2022-11-23T01:08:12.2724940Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2725532Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2725983Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2726349Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2726796Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2727163Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2727420Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2727680Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2727969Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2728440Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2728880Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2729115Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2729244Z 2022-11-23T01:08:12.2729547Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.2729874Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.2730139Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.2730474Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.2730861Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.2731507Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.2732209Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.2732750Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.2733285Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.2734642Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.2736378Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.2737279Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.2738782Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.2740175Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.2740641Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.2741109Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.2742493Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.2744280Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2746742Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2749255Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2750287Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2752713Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2755420Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2757809Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2760336Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2761196Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2762135Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.2765889Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.2774441Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2778215Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2780038Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2780593Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2782096Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2783659Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2785067Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2786527Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2787013Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2787369Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.2788182Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.2788951Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.2789305Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.2789793Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.2790243Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.2790735Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2791354Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.2792159Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.2792753Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2793166Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2794129Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2795161Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2795566Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2796580Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2797527Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2797975Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2799064Z #53 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+0x35a2a44) 2022-11-23T01:08:12.2800077Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2801143Z #55 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+0x634d148) 2022-11-23T01:08:12.2802151Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2803221Z #57 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+0x50edd3b) 2022-11-23T01:08:12.2804218Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2804707Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2805598Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2805965Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2806415Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2806783Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2807038Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2807297Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2807708Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2808445Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2810414Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2810798Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2811008Z 2022-11-23T01:08:12.2812802Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.2813425Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.2816082Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.2817042Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.2819066Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.2819919Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.2820662Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.2822281Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.2823366Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.2850521Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.2851179Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.2851732Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.2852804Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.2853912Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.2854497Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.2855791Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.2856963Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.2858575Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.2859921Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.2860380Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.2861500Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.2862545Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.2862998Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.2863611Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2864121Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2864475Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2864856Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2865272Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2865902Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2866504Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2866838Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2867007Z 2022-11-23T01:08:12.2869447Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.2870916Z ================== 2022-11-23T01:08:12.2871120Z ================== 2022-11-23T01:08:12.2871517Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.2872043Z  Write of size 8 at 0x7ba4000293b8 by thread T1: 2022-11-23T01:08:12.2875314Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.2877627Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2878454Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2879337Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2880313Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2889517Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.2890212Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.2890847Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.2891460Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.2891771Z 2022-11-23T01:08:12.2892089Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2022-11-23T01:08:12.2896178Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.2925179Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2925687Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2926207Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2926799Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2927284Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.2927677Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.2928125Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.2928576Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.2929510Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.2930437Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.2930902Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2931519Z #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+0x6562cde) 2022-11-23T01:08:12.2932404Z #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+0x20cf997) 2022-11-23T01:08:12.2933011Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2933481Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2934446Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2935365Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2935784Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2936780Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2937717Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2937957Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2938860Z #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+0x35a2a44) 2022-11-23T01:08:12.2939097Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2939971Z #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+0x634d148) 2022-11-23T01:08:12.2940242Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2941071Z #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+0x50edd3b) 2022-11-23T01:08:12.2941276Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2941552Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2941731Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2941913Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2942171Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2942288Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2942413Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2942533Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2942681Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2942988Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2943110Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2943203Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2943210Z 2022-11-23T01:08:12.2943464Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.2943635Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.2943761Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.2943921Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.2944158Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.2944602Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.2944901Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.2945166Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.2945433Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.2946505Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.2947149Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.2947452Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.2948506Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.2948822Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.2949009Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.2949285Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.2950456Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.2950769Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2951836Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2952150Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2952419Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2953597Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2953918Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2955010Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2955312Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2955507Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2955806Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.2956925Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.2957262Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.2958320Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.2958600Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.2958871Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.2960055Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.2960378Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.2961493Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.2961796Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.2961976Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.2962123Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.2962775Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.2962931Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.2963127Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.2963319Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.2963554Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.2963774Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2964154Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.2964590Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.2964829Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2965016Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2965780Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2965986Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2966194Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2966965Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2967176Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2967418Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2968218Z #53 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+0x35a2a44) 2022-11-23T01:08:12.2968493Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2969315Z #55 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+0x634d148) 2022-11-23T01:08:12.2969581Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2970415Z #57 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+0x50edd3b) 2022-11-23T01:08:12.2970624Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2970897Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2971074Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.2971253Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.2971508Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2971627Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2971748Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2971870Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2972019Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2972335Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2972452Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2972545Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2972551Z 2022-11-23T01:08:12.2972758Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.2972926Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.2973176Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.2973496Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.2973694Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.2973993Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.2974147Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.2974339Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.2974745Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.2974968Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.2975151Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.2975343Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.2975899Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.2976066Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.2976294Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.2977091Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.2977306Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.2978110Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.2978301Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.2978460Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.2979141Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.2979288Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.2979440Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.2979683Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.2979802Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.2979921Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.2980040Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.2980190Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.2980506Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.2980624Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.2980721Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.2980726Z 2022-11-23T01:08:12.2982400Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.2982475Z ================== 2022-11-23T01:08:12.2982540Z ================== 2022-11-23T01:08:12.2982710Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.2982888Z  Write of size 8 at 0x7ba4000293b8 by thread T3: 2022-11-23T01:08:12.2985083Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.2985383Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2985607Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2985891Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2986181Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2986449Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.2986592Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.2986817Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.2986956Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.2986962Z 2022-11-23T01:08:12.2987153Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2022-11-23T01:08:12.2989325Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.2989649Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.2989908Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.2990188Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.2990480Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.2990676Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.2990877Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.2991106Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.2991321Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.2992035Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.2992276Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.2992496Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.2992886Z #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+0x6562cde) 2022-11-23T01:08:12.2993273Z #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+0x20cf997) 2022-11-23T01:08:12.2993493Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.2993694Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.2994486Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.2994719Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2994928Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.2995702Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.2995918Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.2996157Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.2996957Z #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+0x35a2a44) 2022-11-23T01:08:12.2997204Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2998072Z #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+0x634d148) 2022-11-23T01:08:12.2998309Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.2999176Z #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+0x50edd3b) 2022-11-23T01:08:12.2999380Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.2999656Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.2999833Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3000012Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3000269Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3000385Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3000505Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3000629Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3000777Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3001088Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3001207Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3001299Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3001305Z 2022-11-23T01:08:12.3001517Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3001686Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3001811Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3001972Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3002181Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3002625Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3002920Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3003188Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3003484Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3004568Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3005193Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3005503Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3006545Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3006847Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3007036Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3007335Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3008433Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3008758Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3009812Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3010090Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3010362Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3011528Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3011873Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3012977Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3013265Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3013458Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3013758Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3014886Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3015237Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3016288Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3016568Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3016838Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3017985Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3018306Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3019537Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3019877Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3020075Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3020223Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3020865Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3021022Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3021223Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3021425Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3021660Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3021882Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3022268Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3022657Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3022871Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3023098Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3023846Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3024082Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3024291Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3025072Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3025283Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3025523Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3026338Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3026577Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3027435Z #55 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+0x634d148) 2022-11-23T01:08:12.3027696Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3028537Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3028744Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3029020Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3029195Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3029373Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3029695Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3029815Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3029933Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3030054Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3030202Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3030516Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3030636Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3030730Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3030736Z 2022-11-23T01:08:12.3030956Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.3031122Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3031346Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3031662Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3031824Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3032157Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3032313Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3032531Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3032940Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3033159Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3033347Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3033542Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3034100Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3034266Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3034494Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3035157Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3035371Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3036158Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3036338Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3036482Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3037087Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3037261Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3037413Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3037673Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3037787Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3037908Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3038017Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3038165Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3038475Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3038595Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3038688Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3038693Z 2022-11-23T01:08:12.3040358Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3040434Z ================== 2022-11-23T01:08:12.3040498Z ================== 2022-11-23T01:08:12.3040667Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3040844Z  Write of size 8 at 0x7ba4000293b8 by thread T2: 2022-11-23T01:08:12.3043009Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.3043296Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3043519Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3043801Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3044090Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3044359Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3044501Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3044724Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3044864Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3044869Z 2022-11-23T01:08:12.3045059Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2022-11-23T01:08:12.3047196Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:12.3047458Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3047682Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3047990Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3048279Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3048498Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3048700Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3048928Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3049141Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3049864Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3050107Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3050327Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3050714Z #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+0x6562cde) 2022-11-23T01:08:12.3051099Z #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+0x20cf997) 2022-11-23T01:08:12.3051314Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3051512Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3052293Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3052498Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3052732Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3053506Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3053725Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3053964Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3054774Z #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+0x35a2a44) 2022-11-23T01:08:12.3055012Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3055836Z #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+0x634d148) 2022-11-23T01:08:12.3056074Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3056921Z #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+0x50edd3b) 2022-11-23T01:08:12.3057164Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3057440Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3057614Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3057781Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3058041Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3058156Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3058274Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3058393Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3058628Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3058945Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3059062Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3059156Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3059164Z 2022-11-23T01:08:12.3059389Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3059556Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3059668Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3059829Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3060033Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3060479Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3060754Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3061019Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3061339Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3062423Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3063083Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3063391Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3064439Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3064716Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3064904Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3065205Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3066335Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3066667Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3067720Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3068011Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3068282Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3069449Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3069859Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3070971Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3071262Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3071456Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3071758Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3072866Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3073202Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3074255Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3074560Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3074831Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3075964Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3076290Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3077414Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3077723Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3077915Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3078064Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3078705Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3078858Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3079052Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3079256Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3079491Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3079713Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3080100Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3080487Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3080700Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3080901Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3081683Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3081913Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3082120Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3082908Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3083120Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3083359Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3084156Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3084393Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3085210Z #55 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+0x634d148) 2022-11-23T01:08:12.3085469Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3086313Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3086544Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3086819Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3086996Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3087174Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3087432Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3087545Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3087651Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3087775Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3087923Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3088235Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3088354Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3088448Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3088454Z 2022-11-23T01:08:12.3088670Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.3088838Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3089059Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3089379Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3089552Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3089849Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3090000Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3090187Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3090636Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3090845Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3091060Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3091250Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3091808Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3091985Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3092201Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3092880Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3093090Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3093867Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3094042Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3094184Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3094763Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3094909Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3095087Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3095345Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3095490Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3095609Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3095730Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3095878Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3096180Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3096298Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3096392Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3096397Z 2022-11-23T01:08:12.3098065Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3098152Z ================== 2022-11-23T01:08:12.3098205Z ================== 2022-11-23T01:08:12.3098372Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3098649Z  Write of size 8 at 0x7ba4000293c0 by thread T1: 2022-11-23T01:08:12.3100794Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3101114Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3101336Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3101622Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3101947Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3102216Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3102345Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3102572Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3102711Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3102717Z 2022-11-23T01:08:12.3102906Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2022-11-23T01:08:12.3105077Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3105353Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3105576Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3105862Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3106149Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3106375Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3106579Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3106804Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3107045Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3107757Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3107996Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3108215Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3108600Z #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+0x6562cde) 2022-11-23T01:08:12.3108985Z #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+0x20cf997) 2022-11-23T01:08:12.3109202Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3109401Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3110222Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3110434Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3110640Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3111466Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3111705Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3111946Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3112747Z #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+0x35a2a44) 2022-11-23T01:08:12.3112984Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3113798Z #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+0x634d148) 2022-11-23T01:08:12.3114032Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3114896Z #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+0x50edd3b) 2022-11-23T01:08:12.3115104Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3115411Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3115587Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3115765Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3116021Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3116139Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3116247Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3116367Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3116515Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3116830Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3116953Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3117046Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3117051Z 2022-11-23T01:08:12.3117276Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3117442Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3117569Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3117733Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3117927Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3118386Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3118655Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3118920Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3119186Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3120291Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3120954Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3121258Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3122288Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3122565Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3122754Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3123024Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3124175Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3124506Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3125572Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3125850Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3126119Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3127254Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3127615Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3128703Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3129020Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3129213Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3129518Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3130624Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3130935Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3132026Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3132348Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3132622Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3133749Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3134072Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3135176Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3135492Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3135685Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3135878Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3136523Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3136679Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3136878Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3137085Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3137322Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3137542Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3137930Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3138324Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3138628Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3138826Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3139576Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3139792Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3140041Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3140815Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3141063Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3141304Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3142106Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3142342Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3143184Z #55 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+0x634d148) 2022-11-23T01:08:12.3143419Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3144269Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3144502Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3144777Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3144955Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3145134Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3145390Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3145506Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3145628Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3145749Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3145898Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3146199Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3146321Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3146415Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3146421Z 2022-11-23T01:08:12.3146638Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.3146805Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3147027Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3147347Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3147521Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3147816Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3147968Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3148158Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3148569Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3148787Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3148973Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3149193Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3149839Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3150040Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3150265Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3150925Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3151137Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3151906Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3152087Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3152233Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3152811Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3152959Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3153111Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3153366Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3153481Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3153599Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3153719Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3153909Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3154224Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3154374Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3154466Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3154471Z 2022-11-23T01:08:12.3156132Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3156205Z ================== 2022-11-23T01:08:12.3156461Z ================== 2022-11-23T01:08:12.3156629Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3156793Z  Write of size 8 at 0x7ba4000293c0 by thread T3: 2022-11-23T01:08:12.3158964Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3159227Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3159449Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3159736Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3160056Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3160327Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3160497Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3160720Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3160859Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3160864Z 2022-11-23T01:08:12.3161050Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2022-11-23T01:08:12.3163189Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3163453Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3163677Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3163962Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3164255Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3164451Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3164656Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3164882Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3165094Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3165839Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3166107Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3166328Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3166717Z #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+0x6562cde) 2022-11-23T01:08:12.3167104Z #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+0x20cf997) 2022-11-23T01:08:12.3167322Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3167521Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3168270Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3168491Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3168697Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3169500Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3169712Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3169981Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3170784Z #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+0x35a2a44) 2022-11-23T01:08:12.3171018Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3171864Z #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+0x634d148) 2022-11-23T01:08:12.3172100Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3172927Z #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+0x50edd3b) 2022-11-23T01:08:12.3173132Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3173404Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3173610Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3173791Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3174046Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3174190Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3174310Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3174429Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3174577Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3174881Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3174999Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3175094Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3175099Z 2022-11-23T01:08:12.3175322Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3175490Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3175614Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3175775Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3175983Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3176428Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3176697Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3176963Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3177229Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3178337Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3179064Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3179419Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3180447Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3180735Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3180924Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3181193Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3182330Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3182641Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3183747Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3184025Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3184299Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3185441Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3185767Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3186898Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3187234Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3187426Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3187721Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3188827Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3189135Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3190320Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3190601Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3190899Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3192045Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3192368Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3193451Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3193755Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3193937Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3194085Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3194761Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3194949Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3195146Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3195335Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3195571Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3195788Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3196179Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3196580Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3196793Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3196983Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3197748Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3197954Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3198163Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3198966Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3199206Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3199447Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3200246Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3200496Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3201314Z #55 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+0x634d148) 2022-11-23T01:08:12.3201550Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3202383Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3202589Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3202888Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3203066Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3203272Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3203528Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3203643Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3203763Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3203883Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3204032Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3204347Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3204468Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3204561Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3204569Z 2022-11-23T01:08:12.3204777Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.3204944Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3205163Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3205484Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3205659Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3205952Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3206108Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3206300Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3206706Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3206931Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3207117Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3207311Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3207911Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3208080Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3208308Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3208995Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3209207Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3209989Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3210169Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3210300Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3210886Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3211033Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3211182Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3211428Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3211545Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3211665Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3211784Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3211931Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3212242Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3212362Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3212455Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3212461Z 2022-11-23T01:08:12.3214148Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3214247Z ================== 2022-11-23T01:08:12.3214313Z ================== 2022-11-23T01:08:12.3214485Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3214661Z  Write of size 8 at 0x7ba4000293c0 by thread T2: 2022-11-23T01:08:12.3216813Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3217077Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3217304Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3217588Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3217881Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3218149Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3218292Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3218652Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3218793Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3218832Z 2022-11-23T01:08:12.3219025Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2022-11-23T01:08:12.3221170Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:12.3221434Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3221654Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3221935Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3222225Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3222418Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3222622Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3222850Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3223066Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3223801Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3224042Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3224290Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3224678Z #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+0x6562cde) 2022-11-23T01:08:12.3225069Z #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+0x20cf997) 2022-11-23T01:08:12.3225287Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3225488Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3226253Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3226463Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3226668Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3227440Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3227653Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3227893Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3228717Z #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+0x35a2a44) 2022-11-23T01:08:12.3228997Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3229889Z #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+0x634d148) 2022-11-23T01:08:12.3230129Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3230964Z #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+0x50edd3b) 2022-11-23T01:08:12.3231172Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3231445Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3231625Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3231803Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3232057Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3232172Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3232292Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3232443Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3232592Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3232904Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3233052Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3233145Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3233151Z 2022-11-23T01:08:12.3233363Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3233534Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3233658Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3233820Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3234025Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3234470Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3234740Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3235006Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3235272Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3236356Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3237008Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3237314Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3238381Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3238654Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3238843Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3239111Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3240217Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3240539Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3241612Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3241914Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3242186Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3243329Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3243651Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3244786Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3245077Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3245298Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3245594Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3246699Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3247021Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3248202Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3248484Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3248807Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3249951Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3250304Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3251404Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3251693Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3251886Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3252033Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3252674Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3252858Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3253058Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3253289Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3253523Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3253742Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3254131Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3254519Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3254737Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3254937Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3255691Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3255899Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3256107Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3256879Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3257117Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3257355Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3258257Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3258701Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3259536Z #55 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+0x634d148) 2022-11-23T01:08:12.3259770Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3260620Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3260821Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3261096Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3261273Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3261453Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3261745Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3261862Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3261980Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3262136Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3262285Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3262599Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3262716Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3262810Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3262818Z 2022-11-23T01:08:12.3263044Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.3263213Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3263434Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3263755Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3263916Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3264220Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3264377Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3264570Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3264976Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3265200Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3265385Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3265575Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3266132Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3266299Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3266524Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3267217Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3267468Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3268238Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3268417Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3268563Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3269137Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3269282Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3269436Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3269763Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3269881Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3270000Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3270108Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3270258Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3270573Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3270696Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3270788Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3270793Z 2022-11-23T01:08:12.3272496Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3272596Z ================== 2022-11-23T01:08:12.3570928Z ================== 2022-11-23T01:08:12.3571560Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3571878Z  Write of size 8 at 0x7ba40002a758 by thread T1: 2022-11-23T01:08:12.3576048Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.3576557Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3576974Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3577484Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3578006Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3578639Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3578895Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3579290Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3579542Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3579553Z 2022-11-23T01:08:12.3579883Z  Previous write of size 8 at 0x7ba40002a758 by main thread: 2022-11-23T01:08:12.3584081Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.3584620Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3585011Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3585513Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3586037Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3586392Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3586767Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3587173Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3587591Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3588922Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3589347Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3589806Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3590544Z #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+0x6562cde) 2022-11-23T01:08:12.3591305Z #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+0x20cf997) 2022-11-23T01:08:12.3591685Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3592038Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3593408Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3593789Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3594153Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3595589Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3595980Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3596413Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3597909Z #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+0x35a2a44) 2022-11-23T01:08:12.3598386Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3599898Z #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+0x634d148) 2022-11-23T01:08:12.3600323Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3601863Z #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+0x50edd3b) 2022-11-23T01:08:12.3602224Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3602725Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3603055Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3603375Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3603959Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3604166Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3604375Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3604589Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3604850Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3605442Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3605650Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3605855Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3605866Z 2022-11-23T01:08:12.3606282Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3606584Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3606879Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3607183Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3607555Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3608363Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3608844Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3609353Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3609829Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3611838Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3612993Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3613571Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3615507Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3616058Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3616388Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3616875Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3619047Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3619611Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3621668Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3622234Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3622723Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3624853Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3625448Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3627520Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3628054Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3628430Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3628970Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3631208Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3631777Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3633765Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3634267Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3634768Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3636907Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3637546Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3639606Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3640123Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3640463Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3640721Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3641920Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3642186Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3642531Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3642885Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3643339Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3643732Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3644457Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3645181Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3645561Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3645917Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3647331Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3647693Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3648060Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3649518Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3649893Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3650320Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3653526Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3653993Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3655502Z #55 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+0x634d148) 2022-11-23T01:08:12.3655958Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3657483Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3657851Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3658368Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3658784Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3659100Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3659543Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3659744Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3659954Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3660166Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3660442Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3661099Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3661313Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3661475Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3661568Z 2022-11-23T01:08:12.3661982Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.3662285Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3662671Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3663264Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3663570Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3664093Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3664353Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3664698Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3665486Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3665878Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3666205Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3666548Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3667592Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3667893Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3668297Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3669515Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3670039Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3671439Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3671788Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3672045Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3673125Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3673377Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3673637Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3674102Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3674303Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3674527Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3674739Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3675011Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3675584Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3675792Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3675954Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3675962Z 2022-11-23T01:08:12.3679152Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3679275Z ================== 2022-11-23T01:08:12.3679471Z ================== 2022-11-23T01:08:12.3679797Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.3680105Z  Write of size 8 at 0x7ba40002a758 by thread T3: 2022-11-23T01:08:12.3684208Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.3684725Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3685124Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3685663Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3686177Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3686659Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.3686904Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.3687307Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.3687540Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.3687564Z 2022-11-23T01:08:12.3687898Z  Previous write of size 8 at 0x7ba40002a758 by main thread: 2022-11-23T01:08:12.3692007Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:12.3692508Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.3692910Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.3693417Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.3693946Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.3694309Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.3694671Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.3695086Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:12.3695465Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.3696820Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.3697241Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.3697638Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3698353Z #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+0x6562cde) 2022-11-23T01:08:12.3699251Z #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+0x20cf997) 2022-11-23T01:08:12.3699641Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3700047Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3701481Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3701973Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3702344Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3703808Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3704190Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3704619Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3706125Z #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+0x35a2a44) 2022-11-23T01:08:12.3706555Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3708157Z #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+0x634d148) 2022-11-23T01:08:12.3708612Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3710245Z #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+0x50edd3b) 2022-11-23T01:08:12.3710619Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3711107Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3711433Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3711771Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3712223Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3712420Z #32 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3712630Z #33 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3712842Z #34 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3713109Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3713694Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3713917Z #37 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3714061Z #38 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3714070Z 2022-11-23T01:08:12.3714475Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2022-11-23T01:08:12.3714768Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.3714984Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.3715270Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.3715685Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.3716514Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.3717031Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.3717511Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.3718006Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.3719989Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.3721164Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.3721714Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.3723700Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.3724250Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.3724596Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.3725085Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.3727158Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.3727724Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3729703Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3730244Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3730733Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3732852Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3733463Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3735527Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3736059Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3736411Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3736951Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.3739169Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.3739802Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.3741796Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.3742310Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.3742796Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.3744986Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.3745569Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.3747663Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.3748204Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.3748570Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.3748823Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.3750058Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.3750336Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.3750708Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.3751073Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.3751496Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.3751886Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.3752630Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.3753336Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.3753754Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.3754113Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.3755505Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.3755867Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3756234Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.3757691Z #50 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.3758071Z #51 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.3758502Z #52 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x3454bf1) 2022-11-23T01:08:12.3760027Z #53 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+0x35a2a44) 2022-11-23T01:08:12.3760485Z #54 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3762042Z #55 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+0x634d148) 2022-11-23T01:08:12.3762497Z #56 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28973da) 2022-11-23T01:08:12.3764073Z #57 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+0x50edd3b) 2022-11-23T01:08:12.3764489Z #58 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.3764984Z #59 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e1e8b) 2022-11-23T01:08:12.3765295Z #60 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.3765613Z #61 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cb035) 2022-11-23T01:08:12.3766101Z #62 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3766291Z #63 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3766501Z #64 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3766713Z #65 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3766978Z #66 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3767553Z #67 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3767764Z #68 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3767929Z #69 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3767940Z 2022-11-23T01:08:12.3768333Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.3768623Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.3769053Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.3769623Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.3769966Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.3770507Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.3770777Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.3771122Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.3771894Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.3772305Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.3772651Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.3772992Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.3774016Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.3774311Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.3774749Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.3775954Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.3776348Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.3777829Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.3778191Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.3778440Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.3779653Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.3779909Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.3780172Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.3780633Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.3780836Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.3781050Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.3781260Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.3781532Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.3782110Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.3782320Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.3782483Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.3782496Z 2022-11-23T01:08:12.3785644Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:12.3785776Z ================== 2022-11-23T01:08:12.6930502Z [ OK ] LazyOpsTest.TestOneIndexPutInPlace (1155 ms) 2022-11-23T01:08:12.6930711Z [ RUN ] LazyOpsTest.TestOneIndexPutTransfer 2022-11-23T01:08:12.6961620Z ================== 2022-11-23T01:08:12.6962325Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.6962640Z  Write of size 4 at 0x7b9400029358 by thread T2: 2022-11-23T01:08:12.6967023Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.6967615Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.6968029Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.6968501Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.6969017Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.6969512Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.6969774Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.6970179Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.6970430Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.6970442Z 2022-11-23T01:08:12.6970754Z  Previous write of size 4 at 0x7b9400029358 by main thread: 2022-11-23T01:08:12.6984168Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.6984724Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.6985130Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.6985419Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.6985708Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.6985901Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.6986105Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.6986329Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.6986541Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.6987327Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.6987567Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.6987769Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.6988536Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.6988774Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.6988981Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.6989891Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.6990139Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.6991023Z #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+0x57a0418) 2022-11-23T01:08:12.6991234Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.6991418Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.6991675Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.6991790Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.6991897Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.6992016Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.6992166Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.6992480Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.6992601Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.6992693Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.6992699Z 2022-11-23T01:08:12.6992935Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.6993100Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.6993225Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.6993386Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.6993612Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.6994069Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.6994366Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.6994628Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.6994902Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.6995974Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.6996619Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.6996926Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.6997988Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.6998287Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.6998464Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.6999114Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.6999306Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.6999501Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7000292Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7000538Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7001405Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7001617Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7001856Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7002112Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7002254Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7002375Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7002522Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7002710Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7003161Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7003315Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7003447Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7003454Z 2022-11-23T01:08:12.7003663Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7003868Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7004178Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7004535Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7004758Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7005130Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7005322Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7005574Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7006137Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7006465Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7006750Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7007050Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7007808Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7008082Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7008483Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7009351Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7009692Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7010535Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7010733Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7010866Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7011614Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7011821Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7011984Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7012297Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7012414Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7012535Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7012655Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7012803Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7013169Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7013363Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7013479Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7013489Z 2022-11-23T01:08:12.7015901Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7016062Z ================== 2022-11-23T01:08:12.7020409Z ================== 2022-11-23T01:08:12.7021144Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7021477Z  Write of size 4 at 0x7b9400029358 by thread T3: 2022-11-23T01:08:12.7025323Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7025797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7026160Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7026700Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7027200Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7027704Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7027967Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7028228Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7028366Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7028373Z 2022-11-23T01:08:12.7028713Z  Previous write of size 4 at 0x7b9400029358 by main thread: 2022-11-23T01:08:12.7030957Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7031319Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7031864Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7032389Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7032989Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7033482Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7033881Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7034328Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7034784Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7078399Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7080266Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7080955Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7082620Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7083552Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7083983Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7085392Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7086852Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7088866Z #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+0x57a0418) 2022-11-23T01:08:12.7090473Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7091202Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7091916Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7092515Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7093026Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7093442Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7093864Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7094556Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7095173Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7095558Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7095770Z 2022-11-23T01:08:12.7096139Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7096688Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7097118Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7097602Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7098178Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7099351Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7100428Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7101301Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7102267Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7104547Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7107387Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7108836Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7110916Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7112917Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7113598Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7114839Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7116090Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7116708Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7118196Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7119713Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7121408Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7123098Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7123741Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7124454Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7125052Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7125439Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7125813Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7126256Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7126987Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7127647Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7127962Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7128149Z 2022-11-23T01:08:12.7128621Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.7129123Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7129665Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7130496Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7131351Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7132159Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7132921Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7133511Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7134613Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7135597Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7136316Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7136995Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7138353Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7139635Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7140296Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7141851Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7143290Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7144984Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7146514Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7147087Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7148321Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7149522Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7150109Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7150934Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7151572Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7151994Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7152439Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7152991Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7153875Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7154668Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7155060Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7155278Z 2022-11-23T01:08:12.7157004Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7158039Z ================== 2022-11-23T01:08:12.7158207Z ================== 2022-11-23T01:08:12.7158483Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7158794Z  Write of size 4 at 0x7b9400029358 by thread T1: 2022-11-23T01:08:12.7161100Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7162709Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7163197Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7163772Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7164351Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7164945Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7165348Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7165741Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7166112Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7166275Z 2022-11-23T01:08:12.7166464Z  Previous write of size 4 at 0x7b9400029358 by main thread: 2022-11-23T01:08:12.7168765Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7170403Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7170873Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7171385Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7171965Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7172446Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7172852Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7173323Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7173763Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7175209Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7176911Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7177661Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7179466Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7181105Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7181859Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7183612Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7185382Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7187395Z #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+0x57a0418) 2022-11-23T01:08:12.7189317Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7190123Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7190912Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7191604Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7192061Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7192533Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7193055Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7193909Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7194686Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7195073Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7195290Z 2022-11-23T01:08:12.7195702Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7196318Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7196777Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7197340Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7198041Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7199271Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7200219Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7200741Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7201280Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7202681Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7204480Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7205383Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7206724Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7208100Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7208540Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7209396Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7210233Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7210623Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7211655Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7212650Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7213763Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7215288Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7215943Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7216674Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7217343Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7217787Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7218229Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7218811Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7219641Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7220462Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7220896Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7221130Z 2022-11-23T01:08:12.7221521Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.7222065Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7222697Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7223846Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7224729Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7225670Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7226434Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7227053Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7228192Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7229036Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7229827Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7230508Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7231905Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7233152Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7233855Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7235506Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7237056Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7238908Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7240017Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7240355Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7241134Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7241848Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7242165Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7242595Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7242964Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7243225Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7243487Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7243764Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7244245Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7244686Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7244922Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7245054Z 2022-11-23T01:08:12.7246733Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7247774Z ================== 2022-11-23T01:08:12.7247937Z ================== 2022-11-23T01:08:12.7248190Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7248509Z  Write of size 4 at 0x7b9400029360 by thread T2: 2022-11-23T01:08:12.7250845Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7252509Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7252998Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7253500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7254078Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7254640Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7255065Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7255452Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7255837Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7256088Z 2022-11-23T01:08:12.7256354Z  Previous write of size 4 at 0x7b9400029360 by main thread: 2022-11-23T01:08:12.7260186Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7262918Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7263728Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7264506Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7265091Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7265566Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7265978Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7266425Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7266877Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7267879Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7268840Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7269268Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7270294Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7271204Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7271627Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7272665Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7273686Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7274797Z #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+0x57a0418) 2022-11-23T01:08:12.7275974Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7276623Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7277330Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7278003Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7278461Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7278711Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7279000Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7279483Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7280082Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7280467Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7280681Z 2022-11-23T01:08:12.7281106Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7281719Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7282206Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7282753Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7283461Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7284754Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7285510Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7286091Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7286629Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7287969Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7289745Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7290650Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7292017Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7293395Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7293873Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7295156Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7296421Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7297078Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7298840Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7300523Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7302404Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7304153Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7304837Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7305573Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7306165Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7306709Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7307157Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7307635Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7308437Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7309283Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7309532Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7309766Z 2022-11-23T01:08:12.7310096Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7310552Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7311104Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7311664Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7312165Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7312649Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7313205Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7313612Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7314437Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7315057Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7315576Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7316100Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7317084Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7317983Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7318499Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7319792Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7320996Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7322466Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7323723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7324173Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7325193Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7326144Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7326586Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7327148Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7327796Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7328231Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7328615Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7329012Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7329696Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7330277Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7330615Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7330793Z 2022-11-23T01:08:12.7333171Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7334713Z ================== 2022-11-23T01:08:12.7335419Z ================== 2022-11-23T01:08:12.7335856Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7336376Z  Write of size 4 at 0x7b9400029360 by thread T3: 2022-11-23T01:08:12.7340509Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7343269Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7344070Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7344957Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7345956Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7346918Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7347623Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7348266Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7348885Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7349160Z 2022-11-23T01:08:12.7349487Z  Previous write of size 4 at 0x7b9400029360 by main thread: 2022-11-23T01:08:12.7353703Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7356562Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7357429Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7358312Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7359242Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7360009Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7360664Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7361114Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7361571Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7362577Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7363556Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7363967Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7365000Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7365969Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7366384Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7367399Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7368391Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7369501Z #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+0x57a0418) 2022-11-23T01:08:12.7370513Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7370917Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7371370Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7371739Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7371997Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7372261Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7372548Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7373046Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7373484Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7373717Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7373847Z 2022-11-23T01:08:12.7374127Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7374450Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7374717Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7375027Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7375403Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7376124Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7377125Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7377963Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7378942Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7381114Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7384282Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7386034Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7388189Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7443959Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7444445Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7445291Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7446108Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7446508Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7447511Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7448504Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7449730Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7450798Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7451198Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7451644Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7452021Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7452276Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7452538Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7452818Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7453306Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7453749Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7453983Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7454100Z 2022-11-23T01:08:12.7454350Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.7454688Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7455051Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7455597Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7456083Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7456563Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7457010Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7457377Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7457988Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7458593Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7458999Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7459390Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7460190Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7461260Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7461919Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7463424Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7464933Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7466627Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7468290Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7468875Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7470251Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7471556Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7472122Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7472836Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7473527Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7473942Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7474398Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7474896Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7475835Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7476613Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7477058Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7477271Z 2022-11-23T01:08:12.7480505Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7482382Z ================== 2022-11-23T01:08:12.7482677Z ================== 2022-11-23T01:08:12.7483142Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7483724Z  Write of size 4 at 0x7b9400029360 by thread T1: 2022-11-23T01:08:12.7486187Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7487823Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7488311Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7488810Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7489428Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7489991Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7490437Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7490822Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7491190Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7491341Z 2022-11-23T01:08:12.7491530Z  Previous write of size 4 at 0x7b9400029360 by main thread: 2022-11-23T01:08:12.7493839Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:12.7495476Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7495957Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7496467Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7497041Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7497525Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7497926Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7498367Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7498930Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7499985Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7500984Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7501412Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7502365Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7503290Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7503713Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7504708Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7505700Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7506833Z #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+0x57a0418) 2022-11-23T01:08:12.7507878Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7508307Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7508762Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7509142Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7509395Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7509707Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7509997Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7510481Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7510920Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7511145Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7511274Z 2022-11-23T01:08:12.7511504Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7511836Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7512099Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7512391Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7512776Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7513441Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7514140Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7514676Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7515218Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7516587Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7518379Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7519355Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7521478Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7523921Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7524754Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7526313Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7527770Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7528501Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7530363Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7532210Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7534214Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7535963Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7536674Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7537486Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7538187Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7538709Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7539197Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7539689Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7540586Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7541390Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7541789Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7542011Z 2022-11-23T01:08:12.7542678Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.7543330Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7543979Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7544944Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7545832Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7546768Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7547506Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7548078Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7549243Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7549802Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7550220Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7550614Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7551383Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7552145Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7552539Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7553456Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7554307Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7555303Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7556220Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7556544Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7557336Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7558072Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7558389Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7558814Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7558929Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7559050Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7559177Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7559324Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7559626Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7559746Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7559840Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7559847Z 2022-11-23T01:08:12.7561530Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7561615Z ================== 2022-11-23T01:08:12.7561667Z ================== 2022-11-23T01:08:12.7561836Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7562009Z  Write of size 4 at 0x7b9400029364 by thread T2: 2022-11-23T01:08:12.7564250Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7564581Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7564804Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7565158Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7565591Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7566046Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7566320Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7566699Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7566935Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7566945Z 2022-11-23T01:08:12.7567260Z  Previous write of size 4 at 0x7b9400029364 by main thread: 2022-11-23T01:08:12.7571202Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7571706Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7572115Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7572500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7572883Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7573187Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7573475Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7573769Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7574110Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7575409Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7575786Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7576150Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7577419Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7577775Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7578115Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7579606Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7580026Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7581513Z #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+0x57a0418) 2022-11-23T01:08:12.7581885Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7582158Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7582572Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7582750Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7582952Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7583145Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7583324Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7583673Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7583852Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7584007Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7584020Z 2022-11-23T01:08:12.7584429Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7584713Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7584929Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7585181Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7585528Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7586128Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7586472Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7587009Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7587474Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7589367Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7590093Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7590402Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7591437Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7591728Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7591955Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7592604Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7592813Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7593018Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7593804Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7594049Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7594925Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7595142Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7595324Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7595580Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7595687Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7595806Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7595929Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7596076Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7596419Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7596539Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7596632Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7596639Z 2022-11-23T01:08:12.7596870Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7597068Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7597288Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7597610Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7597787Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7598086Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7598232Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7598425Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7598829Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7599053Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7599243Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7599436Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7599994Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7600158Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7600389Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7601063Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7601279Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7602082Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7602292Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7602439Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7603023Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7603171Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7603325Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7603581Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7603699Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7603820Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7603929Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7604080Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7604396Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7604514Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7604609Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7604615Z 2022-11-23T01:08:12.7606287Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7606360Z ================== 2022-11-23T01:08:12.7606426Z ================== 2022-11-23T01:08:12.7606596Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7606802Z  Write of size 4 at 0x7b9400029364 by thread T3: 2022-11-23T01:08:12.7608949Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7609242Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7609466Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7609753Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7610042Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7610313Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7610455Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7610680Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7610820Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7610827Z 2022-11-23T01:08:12.7611014Z  Previous write of size 4 at 0x7b9400029364 by main thread: 2022-11-23T01:08:12.7613171Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7613470Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7613688Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7613974Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7614266Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7614457Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7614648Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7614877Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7615093Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7615886Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7616105Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7616305Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7617089Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7617293Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7617536Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7618313Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7618795Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7619722Z #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+0x57a0418) 2022-11-23T01:08:12.7619937Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7620119Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7620378Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7620498Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7620621Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7620731Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7620881Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7621197Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7621317Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7621416Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7621423Z 2022-11-23T01:08:12.7621649Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7621815Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7621994Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7622160Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7622368Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7622857Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7623129Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7623396Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7623665Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7624742Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7625385Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7625692Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7626761Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7627062Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7627238Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7627897Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7628077Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7628287Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7629060Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7629309Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7630264Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7630481Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7630691Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7630950Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7631066Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7631190Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7631311Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7631462Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7631777Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7631897Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7631994Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7632001Z 2022-11-23T01:08:12.7632218Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.7632372Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7632595Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7632916Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7633089Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7633387Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7633539Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7633728Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7634135Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7634358Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7634546Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7634742Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7635294Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7635494Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7635726Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7636412Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7636623Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7637402Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7637585Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7637728Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7638299Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7638446Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7638595Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7638853Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7638956Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7639075Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7639199Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7639346Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7639659Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7639775Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7639868Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7639874Z 2022-11-23T01:08:12.7641553Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7641649Z ================== 2022-11-23T01:08:12.7641715Z ================== 2022-11-23T01:08:12.7641883Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7642057Z  Write of size 4 at 0x7b9400029364 by thread T1: 2022-11-23T01:08:12.7644201Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7644462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7644685Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7644970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7645261Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7645530Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7645672Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7645933Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7646072Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7646078Z 2022-11-23T01:08:12.7646310Z  Previous write of size 4 at 0x7b9400029364 by main thread: 2022-11-23T01:08:12.7648449Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:12.7648710Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7648936Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7649218Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7649510Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7649701Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7649904Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7650135Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7650348Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7651157Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7651386Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7651614Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7652362Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7652568Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7652772Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7653556Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7653798Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7654677Z #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+0x57a0418) 2022-11-23T01:08:12.7654890Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7655072Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7655355Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7655459Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7655616Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7655736Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7655884Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7656194Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7656314Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7656409Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7656415Z 2022-11-23T01:08:12.7656638Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7656804Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7656930Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7657081Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7657285Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7657729Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7658014Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7658281Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7658719Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7659858Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7660543Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7660893Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7661921Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7662200Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7662379Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7663032Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7663211Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7663420Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7664240Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7664482Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7665376Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7665595Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7665774Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7666028Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7666144Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7666264Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7666387Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7666534Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7666847Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7666971Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7667051Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7667069Z 2022-11-23T01:08:12.7667276Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.7667443Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7667664Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7667984Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7668154Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7668451Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7668601Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7668790Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7669226Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7669446Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7669740Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7669936Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7670497Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7670664Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7670894Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7671556Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7671769Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7672546Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7672725Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7672871Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7673462Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7673608Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7673780Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7674035Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7674178Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7674297Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7674417Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7674563Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7674876Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7674998Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7675092Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7675098Z 2022-11-23T01:08:12.7676742Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7676816Z ================== 2022-11-23T01:08:12.7677265Z ================== 2022-11-23T01:08:12.7677436Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7677615Z  Write of size 4 at 0x7b9400029368 by thread T2: 2022-11-23T01:08:12.7679758Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7680055Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7680281Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7680593Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7680881Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7681150Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7681292Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7681518Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7681655Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7681662Z 2022-11-23T01:08:12.7681848Z  Previous write of size 4 at 0x7b9400029368 by main thread: 2022-11-23T01:08:12.7683979Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7684243Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7684465Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7684747Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7685036Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7685260Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7685466Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7685692Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7685934Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7686714Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7686935Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7687137Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7687902Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7688109Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7688316Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7689092Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7689340Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7690231Z #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+0x57a0418) 2022-11-23T01:08:12.7690492Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7690662Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7690920Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7691037Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7691158Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7691280Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7691429Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7691741Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7691863Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7691957Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7691963Z 2022-11-23T01:08:12.7692187Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7692357Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7692470Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7692632Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7692840Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7693289Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7693558Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7693826Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7694095Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7695214Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7695863Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7696170Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7697215Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7697491Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7697669Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7698347Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7698682Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7698977Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7699776Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7700022Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7700883Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7701097Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7701280Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7701539Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7701658Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7701778Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7701900Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7702048Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7702367Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7702473Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7702567Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7702573Z 2022-11-23T01:08:12.7702792Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7702957Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7703219Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7703541Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7703754Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7704047Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7704201Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7704394Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7704802Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7705027Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7705212Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7705406Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7706146Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7706316Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7706541Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7707208Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7707422Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7708231Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7708434Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7708578Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7709158Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7709304Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7709454Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7709799Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7709920Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7710040Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7710162Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7710311Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7710632Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7710751Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7710850Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7710858Z 2022-11-23T01:08:12.7712548Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7712621Z ================== 2022-11-23T01:08:12.7712686Z ================== 2022-11-23T01:08:12.7712842Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7713016Z  Write of size 4 at 0x7b9400029368 by thread T3: 2022-11-23T01:08:12.7715209Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7715497Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7715723Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7716010Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7716297Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7716572Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7716714Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7716944Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7717084Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7717089Z 2022-11-23T01:08:12.7717275Z  Previous write of size 4 at 0x7b9400029368 by main thread: 2022-11-23T01:08:12.7719443Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7719702Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7719949Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7720230Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7720521Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7720711Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7720910Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7721137Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7721351Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7722128Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7722348Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7722547Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7723299Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7723520Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7723756Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7724548Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7724829Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7725683Z #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+0x57a0418) 2022-11-23T01:08:12.7725898Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7726078Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7726337Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7726454Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7726575Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7726695Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7726847Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7727164Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7727284Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7727378Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7727387Z 2022-11-23T01:08:12.7727601Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7727769Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7727895Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7728058Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7728264Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7728740Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7729036Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7729297Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7729566Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7730653Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7731286Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7731594Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7732664Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7732965Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7733139Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7733792Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7733973Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7734182Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7734961Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7735207Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7736078Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7736290Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7736472Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7736757Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7736874Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7736992Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7737136Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7737284Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7737598Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7737714Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7737808Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7737814Z 2022-11-23T01:08:12.7738029Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.7738197Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7738418Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7738957Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7739137Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7739433Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7739592Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7739786Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7740200Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7740424Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7740599Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7740792Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7741368Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7741535Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7741763Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7742477Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7742720Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7743496Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7743678Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7743877Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7744457Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7744605Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7744756Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7745013Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7745129Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7745249Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7745369Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7745520Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7745831Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7745938Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7746031Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7746037Z 2022-11-23T01:08:12.7747725Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7747836Z ================== 2022-11-23T01:08:12.7747888Z ================== 2022-11-23T01:08:12.7748058Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7748232Z  Write of size 4 at 0x7b9400029368 by thread T1: 2022-11-23T01:08:12.7750462Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7750743Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7750969Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7751255Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7751545Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7751818Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7751963Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7752175Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7752314Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7752320Z 2022-11-23T01:08:12.7752507Z  Previous write of size 4 at 0x7b9400029368 by main thread: 2022-11-23T01:08:12.7754682Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:12.7754983Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7755202Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7755484Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7755775Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7755968Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7756169Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7756395Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7756609Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7757392Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7757615Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7757847Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7758611Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7759030Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7759260Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7760440Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7760825Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7762123Z #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+0x57a0418) 2022-11-23T01:08:12.7762470Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7762785Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7763251Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7763456Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7763649Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7763858Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7764188Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7764755Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7764975Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7765123Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7765134Z 2022-11-23T01:08:12.7765529Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7765838Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7766065Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7766363Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7766749Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7767559Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7768053Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7768343Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7768611Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7769681Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7770361Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7770668Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7771742Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7772019Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7772196Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7772849Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7773032Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7773240Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7774221Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7774625Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7776188Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7776566Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7776879Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7777279Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7777471Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7777672Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7777847Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7778083Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7778776Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7778968Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7779130Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7779140Z 2022-11-23T01:08:12.7779510Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.7779801Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7780165Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7780670Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7780944Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7781449Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7781740Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7782084Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7782543Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7782784Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7782975Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7783241Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7783864Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7784096Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7784364Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7785091Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7785308Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7786150Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7786332Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7786519Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7787122Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7787311Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7787482Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7787738Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7787853Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7788011Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7788189Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7788339Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7788649Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7788789Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7788940Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7788946Z 2022-11-23T01:08:12.7790840Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7790929Z ================== 2022-11-23T01:08:12.7790981Z ================== 2022-11-23T01:08:12.7791156Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7791398Z  Write of size 4 at 0x7b940002936c by thread T2: 2022-11-23T01:08:12.7793799Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7794079Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7794302Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7794692Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7794986Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7795355Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7795501Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7795727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7795851Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7795857Z 2022-11-23T01:08:12.7796108Z  Previous write of size 4 at 0x7b940002936c by main thread: 2022-11-23T01:08:12.7798407Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7798742Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7798968Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7799252Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7799543Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7799737Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7799966Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7800225Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7800472Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7801255Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7801510Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7801712Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7802538Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7802741Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7802948Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7803740Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7803985Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7804875Z #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+0x57a0418) 2022-11-23T01:08:12.7805127Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7805309Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7805564Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7805681Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7805804Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7805948Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7806137Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7806453Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7806561Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7806656Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7806662Z 2022-11-23T01:08:12.7806887Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7807053Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7807179Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7807341Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7807547Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7807988Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7808259Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7808528Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7808794Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7809894Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7810559Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7810865Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7811896Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7812185Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7812365Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7813072Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7813257Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7813495Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7814274Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7814544Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7815420Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7815635Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7815817Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7816073Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7816175Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7816296Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7816416Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7816564Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7816874Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7816992Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7817087Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7817095Z 2022-11-23T01:08:12.7817310Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7817478Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7817699Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7818016Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7818216Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7818609Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7818800Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7819046Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7819646Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7819992Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7820244Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7820556Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7821453Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7821764Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7822192Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7823325Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7823676Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7825128Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7825454Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7825748Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7826354Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7826572Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7826728Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7826989Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7827107Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7827230Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7827352Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7827504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7827817Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7827924Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7828018Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7828024Z 2022-11-23T01:08:12.7829772Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7829863Z ================== 2022-11-23T01:08:12.7829914Z ================== 2022-11-23T01:08:12.7830090Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7830268Z  Write of size 4 at 0x7b940002936c by thread T3: 2022-11-23T01:08:12.7832482Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7832789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7833012Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7833298Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7833590Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7833861Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7834002Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7834215Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7834354Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7834360Z 2022-11-23T01:08:12.7834549Z  Previous write of size 4 at 0x7b940002936c by main thread: 2022-11-23T01:08:12.7836679Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7836951Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7837200Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7837481Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7837807Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7837998Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7838198Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7838429Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7838641Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7839423Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7839640Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7839843Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7840590Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7840793Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7841003Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7841819Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7842099Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7842963Z #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+0x57a0418) 2022-11-23T01:08:12.7843180Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7843362Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7843621Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7843736Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7843857Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7843978Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7844128Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7844427Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7844545Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7844638Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7844644Z 2022-11-23T01:08:12.7844866Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7845033Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7845157Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7845318Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7845525Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7845971Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7846281Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7846545Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7846842Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7847910Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7848550Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7848853Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7849881Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7850199Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7850381Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7851056Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7851240Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7851449Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7852230Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7852472Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7853398Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7853625Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7853809Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7854064Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7854167Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7854285Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7854404Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7854584Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7854897Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7855044Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7855136Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7855143Z 2022-11-23T01:08:12.7855357Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.7855521Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7855741Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7856062Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7856237Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7856521Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7856674Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7856863Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7857270Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7857491Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7857678Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7857875Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7858431Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7858692Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7858922Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7859632Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7859856Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7860621Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7860838Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7860983Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7861558Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7861706Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7861857Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7862116Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7862233Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7862355Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7862462Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7862611Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7862922Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7863042Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7863136Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7863143Z 2022-11-23T01:08:12.7864823Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7864896Z ================== 2022-11-23T01:08:12.7864960Z ================== 2022-11-23T01:08:12.7865129Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7865305Z  Write of size 4 at 0x7b940002936c by thread T1: 2022-11-23T01:08:12.7867476Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7867740Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7867965Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7868249Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7868542Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7868811Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7868952Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7869182Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7869323Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7869332Z 2022-11-23T01:08:12.7869521Z  Previous write of size 4 at 0x7b940002936c by main thread: 2022-11-23T01:08:12.7871807Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:12.7872126Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7872351Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7872639Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7872929Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7873112Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7873317Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7873545Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7873761Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7874558Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:12.7874777Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:12.7874976Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7875752Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7875982Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7876189Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7876965Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7877212Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7878083Z #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+0x57a0418) 2022-11-23T01:08:12.7878295Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7878478Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7878736Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7878857Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7878978Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7879086Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7879235Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7879549Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7879668Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7879793Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7879799Z 2022-11-23T01:08:12.7880020Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:12.7880186Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7880339Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7880501Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7880706Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7881152Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7881421Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7881688Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7881953Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7883023Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7883660Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7883967Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7885032Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7885334Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7885514Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:12.7886172Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:12.7886351Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:12.7886560Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:12.7887336Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:12.7887581Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:12.7888464Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7888700Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7888881Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:12.7889137Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7889254Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7889378Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7889501Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7889652Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7889963Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7890084Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7890177Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7890182Z 2022-11-23T01:08:12.7890406Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.7890558Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7890780Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7891094Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7891270Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7891562Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7891713Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7891904Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7892314Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7892534Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7892722Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7892912Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7893494Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7893657Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7893915Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7894574Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7894782Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7895574Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7895751Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7895897Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7896469Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7896617Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7896767Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7897023Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7897129Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7897246Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7897367Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7897512Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7897822Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7897969Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7898063Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7898068Z 2022-11-23T01:08:12.7899939Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7900070Z ================== 2022-11-23T01:08:12.7900238Z ================== 2022-11-23T01:08:12.7900414Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.7900594Z  Write of size 4 at 0x7b9400030b58 by main thread: 2022-11-23T01:08:12.7902740Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7903021Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7903246Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7903530Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7903821Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7904014Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.7904255Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.7904560Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:12.7904826Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.7905540Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.7905780Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.7905998Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.7906386Z #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+0x6562cde) 2022-11-23T01:08:12.7906775Z #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+0x20cf997) 2022-11-23T01:08:12.7906990Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.7907192Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7907948Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7908152Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7908357Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7909093Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.7909356Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.7909843Z #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+0xca56e8) 2022-11-23T01:08:12.7910228Z #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+0x2974180) 2022-11-23T01:08:12.7910469Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.7911324Z #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+0x57a0418) 2022-11-23T01:08:12.7911536Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7911813Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.7911990Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.7912173Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.7912433Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7912550Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7912671Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7912793Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7912944Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7913277Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7913398Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7913518Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7913525Z 2022-11-23T01:08:12.7913718Z  Previous write of size 4 at 0x7b9400030b58 by thread T2: 2022-11-23T01:08:12.7915887Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:12.7916166Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.7916387Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.7916672Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.7916960Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.7917228Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.7917367Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.7917592Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.7917717Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.7917723Z 2022-11-23T01:08:12.7917943Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2022-11-23T01:08:12.7918108Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.7918231Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.7918391Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.7918628Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.7919077Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.7919373Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.7919636Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.7919903Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.7920981Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.7921608Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.7921912Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.7922985Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.7923281Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.7923467Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.7923742Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.7924850Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.7925177Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.7926248Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.7926549Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.7926821Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.7927994Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.7928312Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.7929415Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.7929716Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.7929912Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.7930208Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.7931331Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.7931667Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.7932727Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.7933004Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.7933273Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.7934437Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.7934753Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.7935892Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.7936195Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.7936389Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.7936538Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.7937178Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.7937332Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.7937533Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.7937734Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.7937970Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.7938190Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.7938723Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.7939177Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.7939426Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.7939630Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.7940382Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.7940587Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.7940794Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.7941502Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.7941726Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.7942156Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.7942542Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.7942786Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.7943695Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.7943933Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.7944207Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.7944382Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.7944561Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.7944820Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7960044Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7960275Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7960389Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7960549Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7960878Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7961002Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7961096Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7961108Z 2022-11-23T01:08:12.7961364Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.7961533Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.7961759Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.7962073Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.7962256Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.7962551Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.7962708Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.7962897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.7963308Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.7963619Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.7963796Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.7963987Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.7964596Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.7964762Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.7964977Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.7965641Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.7965857Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.7966629Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.7966808Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.7966953Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.7967527Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.7967674Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.7967827Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.7968111Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.7968227Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.7968349Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.7968463Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.7968652Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.7968965Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.7969070Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.7969161Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.7969167Z 2022-11-23T01:08:12.7970816Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:12.7970902Z ================== 2022-11-23T01:08:12.8349821Z ================== 2022-11-23T01:08:12.8350266Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8350605Z  Write of size 1 at 0x7b7400037c76 by main thread: 2022-11-23T01:08:12.8354515Z  #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+0x8718da5) 2022-11-23T01:08:12.8354990Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8355370Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8356035Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8356583Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8356919Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8357261Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8357664Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8358034Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8359275Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8359691Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8360077Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8360732Z #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+0x6562cde) 2022-11-23T01:08:12.8361340Z #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+0x20cf997) 2022-11-23T01:08:12.8361717Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8362055Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8363435Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8363795Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8364195Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8365423Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8365799Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8366519Z #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+0xca56e8) 2022-11-23T01:08:12.8367209Z #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+0x2974180) 2022-11-23T01:08:12.8367619Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8369107Z #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+0x57a0418) 2022-11-23T01:08:12.8369475Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8369940Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8370219Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8370519Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8371008Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8371203Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8371452Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8371648Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8371902Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8372435Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8372636Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8372792Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8372804Z 2022-11-23T01:08:12.8373149Z  Previous write of size 1 at 0x7b7400037c76 by thread T3: 2022-11-23T01:08:12.8376989Z  #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+0x8718da5) 2022-11-23T01:08:12.8377433Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8377828Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8378312Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8378974Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8379469Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8379622Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8379847Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8380075Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8380082Z 2022-11-23T01:08:12.8380323Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8380532Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8380657Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8380807Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8381011Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8381452Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8381734Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8382003Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8382267Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8383338Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8383959Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8384275Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8385335Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8385633Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8385823Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8386092Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8387210Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8387515Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8388593Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8388918Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8389189Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8390411Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8390737Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8391847Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8392140Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8392363Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8392663Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8393809Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8394115Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8395180Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8395470Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8395740Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8396890Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8397239Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8398385Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8398682Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8398874Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8399021Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8399677Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8399833Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8400018Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8400219Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8400485Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8400705Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8401121Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8401506Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8401722Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8401921Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8402687Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8402889Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8403093Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8403808Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8404032Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8404456Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8404867Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8405107Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8406006Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8406221Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8406494Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8406671Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8406848Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8407093Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8407208Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8407329Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8407448Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8407594Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8407905Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8408026Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8408117Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8408123Z 2022-11-23T01:08:12.8408349Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.8408515Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8408736Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8409052Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8409214Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8409532Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8409688Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8409878Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8410401Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8410744Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8411040Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8411373Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8412225Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8412494Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8412834Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8413925Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8414290Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8415568Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8415870Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8416106Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8417138Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8417400Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8417592Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8417951Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8418133Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8418315Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8418586Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8418829Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8419331Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8419538Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8419683Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8419692Z 2022-11-23T01:08:12.8422083Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:12.8422200Z ================== 2022-11-23T01:08:12.8422370Z ================== 2022-11-23T01:08:12.8422591Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8422775Z  Write of size 1 at 0x7b7400037c76 by thread T2: 2022-11-23T01:08:12.8425703Z  #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+0x8718da5) 2022-11-23T01:08:12.8426215Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8426586Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8427076Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8427543Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8427935Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8428084Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8428412Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8428620Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8428630Z 2022-11-23T01:08:12.8428859Z  Previous write of size 1 at 0x7b7400037c76 by main thread: 2022-11-23T01:08:12.8432481Z  #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+0x8718da5) 2022-11-23T01:08:12.8432798Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8433175Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8433779Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8434272Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8434699Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8435003Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8435431Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8435808Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8436915Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8437287Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8437647Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8438320Z #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+0x6562cde) 2022-11-23T01:08:12.8438968Z #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+0x20cf997) 2022-11-23T01:08:12.8439374Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8439751Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8440560Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8440831Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8441027Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8441776Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8442001Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8442430Z #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+0xca56e8) 2022-11-23T01:08:12.8442819Z #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+0x2974180) 2022-11-23T01:08:12.8443062Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8443918Z #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+0x57a0418) 2022-11-23T01:08:12.8444135Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8444411Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8444588Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8444766Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8445022Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8445182Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8445303Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8445423Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8445597Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8445907Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8446025Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8446118Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8446126Z 2022-11-23T01:08:12.8446359Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8446527Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8446652Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8446813Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8447017Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8447463Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8447735Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8448003Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8448269Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8449354Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8450011Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8450340Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8451379Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8451660Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8451845Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8452115Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8453273Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8453579Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8454669Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8454985Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8455278Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8456404Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8456728Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8457855Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8458169Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8458360Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8458880Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8460003Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8460314Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8461361Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8461651Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8461976Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8463146Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8463472Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8464573Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8464863Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8465057Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8465206Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8465873Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8466026Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8466255Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8466456Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8466691Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8466912Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8467298Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8467688Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8467900Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8468144Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8469192Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8469532Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8469889Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8471057Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8471553Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8472345Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8473067Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8473498Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8475092Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8475453Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8475960Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8476276Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8476573Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8477030Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8477223Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8477447Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8477670Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8477946Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8478498Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8478722Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8478896Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8478905Z 2022-11-23T01:08:12.8479308Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.8479604Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8480057Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8480634Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8480989Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8481503Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8481777Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8482131Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8482868Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8483274Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8483602Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8483949Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8484935Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8485227Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8485647Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8486835Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8487212Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8488659Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8488994Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8489276Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8490328Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8490594Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8490850Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8491294Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8491490Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8491696Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8491903Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8492180Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8492736Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8492929Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8493097Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8493105Z 2022-11-23T01:08:12.8496246Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:12.8496376Z ================== 2022-11-23T01:08:12.8496590Z ================== 2022-11-23T01:08:12.8497154Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8497494Z  Write of size 1 at 0x7b7400037c76 by thread T1: 2022-11-23T01:08:12.8501134Z  #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+0x8718da5) 2022-11-23T01:08:12.8501459Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8501684Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8501970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8502262Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8502534Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8502675Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8502899Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8503026Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8503043Z 2022-11-23T01:08:12.8503224Z  Previous write of size 1 at 0x7b7400037c76 by main thread: 2022-11-23T01:08:12.8505452Z  #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+0x8718da5) 2022-11-23T01:08:12.8505714Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8505963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8506246Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8506532Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8506728Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8506932Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8507162Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8507374Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8508088Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8508327Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8508544Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8508932Z #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+0x6562cde) 2022-11-23T01:08:12.8509320Z #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+0x20cf997) 2022-11-23T01:08:12.8509537Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8509808Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8510587Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8510831Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8511039Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8511813Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8512040Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8512470Z #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+0xca56e8) 2022-11-23T01:08:12.8512856Z #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+0x2974180) 2022-11-23T01:08:12.8513099Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8513961Z #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+0x57a0418) 2022-11-23T01:08:12.8514171Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8514468Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8514643Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8514849Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8515104Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8515219Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8515339Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8515460Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8515609Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8515921Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8516042Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8516123Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8516129Z 2022-11-23T01:08:12.8516355Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8516521Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8516646Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8516804Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8517009Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8517452Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8517719Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8517985Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8518251Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8519362Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8520018Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8520324Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8521373Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8521650Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8521839Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8522115Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8523248Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8523584Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8524669Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8524949Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8525221Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8526364Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8526864Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8528754Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8529380Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8529744Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8530301Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8532113Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8532613Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8534493Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8535006Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8535479Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8537401Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8537983Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8540080Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8540594Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8541031Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8541309Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8542447Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8542765Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8543118Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8543501Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8543923Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8544326Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8545015Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8545702Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8546092Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8546461Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8547828Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8548202Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8548586Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8550005Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8550464Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8551220Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8551900Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8552345Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8553910Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8554276Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8554767Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8555069Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8555377Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8555862Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8556070Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8556278Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8556495Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8556769Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8557397Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8557621Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8557793Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8557841Z 2022-11-23T01:08:12.8558252Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.8558508Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8558734Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8559055Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8559235Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8559535Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8559692Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8559887Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8560302Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8560526Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8560710Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8560902Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8561461Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8561627Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8561853Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8562508Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8562759Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8563526Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8563743Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8563876Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8564463Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8564612Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8564764Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8565009Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8565203Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8565324Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8565446Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8565597Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8565914Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8566022Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8566120Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8566125Z 2022-11-23T01:08:12.8567803Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:12.8567889Z ================== 2022-11-23T01:08:12.8567941Z ================== 2022-11-23T01:08:12.8568138Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8568317Z  Write of size 1 at 0x7b7400037c81 by thread T3: 2022-11-23T01:08:12.8570509Z  #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+0x8718e1d) 2022-11-23T01:08:12.8570812Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8571034Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8571321Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8571615Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8571883Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8572024Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8572238Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8572375Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8572381Z 2022-11-23T01:08:12.8572571Z  Previous write of size 1 at 0x7b7400037c81 by main thread: 2022-11-23T01:08:12.8574770Z  #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+0x8718e1d) 2022-11-23T01:08:12.8575056Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8575280Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8575560Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8575852Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8576042Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8576244Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8576473Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8576686Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8577404Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8577648Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8577868Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8578253Z #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+0x6562cde) 2022-11-23T01:08:12.8578789Z #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+0x20cf997) 2022-11-23T01:08:12.8579008Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8579249Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8580009Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8580215Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8580422Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8581152Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8581379Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8581814Z #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+0xca56e8) 2022-11-23T01:08:12.8582200Z #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+0x2974180) 2022-11-23T01:08:12.8582446Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8583344Z #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+0x57a0418) 2022-11-23T01:08:12.8583585Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8583860Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8584038Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8584217Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8584476Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8584593Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8584712Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8584832Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8584980Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8585291Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8585412Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8585496Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8585501Z 2022-11-23T01:08:12.8585732Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8585904Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8586027Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8586211Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8586481Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8587213Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8587708Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8588169Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8588658Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8590729Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8591915Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8592462Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8594358Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8594858Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8595199Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8595656Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8597690Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8598309Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8600228Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8600708Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8601204Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8603296Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8603881Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8605901Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8606417Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8606766Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8607318Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8609302Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8609876Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8611878Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8612373Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8612878Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8614924Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8615504Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8617574Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8618146Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8618592Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8618859Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8619967Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8620135Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8620331Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8620532Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8620774Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8620994Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8621389Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8621782Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8622001Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8622204Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8623019Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8623225Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8623467Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8624180Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8624406Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8624832Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8625219Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8625458Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8626320Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8626546Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8626821Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8626984Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8627161Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8627462Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8627580Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8627728Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8627848Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8627996Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8628310Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8628430Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8628523Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8628530Z 2022-11-23T01:08:12.8628767Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.8628924Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8629147Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8629466Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8629709Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8630009Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8630162Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8630358Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8630771Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8630992Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8631177Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8631373Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8631928Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8632092Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8632317Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8633014Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8633261Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8634045Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8634226Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8634368Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8634944Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8635093Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8635245Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8635499Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8635602Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8635723Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8635844Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8635997Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8636309Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8636432Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8636525Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8636531Z 2022-11-23T01:08:12.8638225Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:12.8638323Z ================== 2022-11-23T01:08:12.8638469Z ================== 2022-11-23T01:08:12.8638626Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8638804Z  Write of size 1 at 0x7b7400037c77 by main thread: 2022-11-23T01:08:12.8640984Z  #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+0x8718e1d) 2022-11-23T01:08:12.8641262Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8641482Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8641768Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8642059Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8642252Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8642456Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8642682Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8642894Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8643632Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8643905Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8644123Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8644606Z #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+0x6562cde) 2022-11-23T01:08:12.8645153Z #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+0x20cf997) 2022-11-23T01:08:12.8645486Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8645815Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8647043Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8647394Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8647721Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8648987Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8649503Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8650282Z #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+0xca56e8) 2022-11-23T01:08:12.8651018Z #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+0x2974180) 2022-11-23T01:08:12.8651462Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8653031Z #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+0x57a0418) 2022-11-23T01:08:12.8653431Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8653935Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8654237Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8654548Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8655023Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8655235Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8655458Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8655657Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8655909Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8656501Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8656682Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8656837Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8656848Z 2022-11-23T01:08:12.8657212Z  Previous write of size 1 at 0x7b7400037c77 by thread T3: 2022-11-23T01:08:12.8661466Z  #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+0x8718e1d) 2022-11-23T01:08:12.8661985Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8662400Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8662894Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8663408Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8663879Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8664136Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8664514Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8664757Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8664767Z 2022-11-23T01:08:12.8665166Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8665481Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8665691Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8665973Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8666358Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8667166Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8667679Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8668139Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8668653Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8670670Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8671818Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8672382Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8674287Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8674845Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8675189Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8675728Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8677556Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8677865Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8678925Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8679204Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8679474Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8680652Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8681008Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8682116Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8682409Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8682600Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8682898Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8684023Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8684368Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8685426Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8685702Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8685977Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8687113Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8687433Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8688562Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8688875Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8689071Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8689221Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8689862Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8690015Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8690212Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8690413Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8690645Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8690859Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8691244Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8691633Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8691845Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8692072Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8692821Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8693054Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8693262Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8693970Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8694209Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8694635Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8695023Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8695265Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8696124Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8696365Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8696638Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8696842Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8697018Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8697276Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8697389Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8697509Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8697628Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8697774Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8698090Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8698200Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8698292Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8698299Z 2022-11-23T01:08:12.8698625Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.8698795Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8699018Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8699349Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8699524Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8699822Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8699975Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8700167Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8700580Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8700800Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8700987Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8701180Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8701867Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8702169Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8702523Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8703743Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8704139Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8705534Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8705860Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8706128Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8707130Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8707421Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8707663Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8708094Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8708277Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8708463Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8708656Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8708926Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8709634Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8709854Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8710002Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8710014Z 2022-11-23T01:08:12.8713301Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:12.8713505Z ================== 2022-11-23T01:08:12.8713761Z ================== 2022-11-23T01:08:12.8714074Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8714389Z  Write of size 1 at 0x7b7400037c81 by thread T2: 2022-11-23T01:08:12.8718305Z  #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+0x8718e1d) 2022-11-23T01:08:12.8718798Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8719210Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8719698Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8720236Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8720793Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8721047Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8721456Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8721779Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8721789Z 2022-11-23T01:08:12.8722089Z  Previous write of size 1 at 0x7b7400037c81 by main thread: 2022-11-23T01:08:12.8726050Z  #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+0x8718e1d) 2022-11-23T01:08:12.8726483Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8726853Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8727322Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8727840Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8728199Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8728540Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8728946Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8729330Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8730659Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8731109Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8731497Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8732181Z #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+0x6562cde) 2022-11-23T01:08:12.8732872Z #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+0x20cf997) 2022-11-23T01:08:12.8733271Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8733637Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8735037Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8735431Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8735800Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8737017Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8737250Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8737722Z #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+0xca56e8) 2022-11-23T01:08:12.8738137Z #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+0x2974180) 2022-11-23T01:08:12.8738380Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8739340Z #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+0x57a0418) 2022-11-23T01:08:12.8739558Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8739835Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8740013Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8740195Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8740453Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8740569Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8740689Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8740813Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8740964Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8741278Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8741401Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8741497Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8741503Z 2022-11-23T01:08:12.8741726Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8741894Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8742020Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8742182Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8742450Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8742896Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8743201Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8743467Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8743738Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8744819Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8745449Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8745755Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8746827Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8747131Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8747321Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8747595Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8748702Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8749026Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8750157Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8750468Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8750738Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8751905Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8752264Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8753378Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8753670Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8753868Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8754164Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8755296Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8755643Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8756697Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8756971Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8757242Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8758408Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8758727Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8759867Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8760156Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8760351Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8760497Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8761134Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8761288Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8761485Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8761685Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8761921Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8762190Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8762805Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8763569Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8763986Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8764338Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8765729Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8766087Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8766459Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8767711Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8768105Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8768889Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8769591Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8769998Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8771572Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8771970Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8772480Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8772782Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8773081Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8773553Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8773741Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8773953Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8774160Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8774407Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8774971Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8775182Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8775351Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8775363Z 2022-11-23T01:08:12.8775760Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.8776062Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8776460Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8777017Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8777329Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8777855Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8778118Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8778559Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8779312Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8779769Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8780086Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8780439Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8781458Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8781765Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8782159Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8783359Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8783734Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8785127Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8785430Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8785664Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8786694Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8786965Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8787243Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8787723Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8787925Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8788126Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8788382Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8788650Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8789198Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8789393Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8789547Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8789664Z 2022-11-23T01:08:12.8792840Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:12.8792971Z ================== 2022-11-23T01:08:12.8793087Z ================== 2022-11-23T01:08:12.8793382Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8793703Z  Write of size 1 at 0x7b7400037c81 by thread T1: 2022-11-23T01:08:12.8796491Z  #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+0x8718e1d) 2022-11-23T01:08:12.8796767Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8797032Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8797318Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8797636Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8797907Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8798048Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8798276Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8798413Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8798420Z 2022-11-23T01:08:12.8798597Z  Previous write of size 1 at 0x7b7400037c81 by main thread: 2022-11-23T01:08:12.8800788Z  #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+0x8718e1d) 2022-11-23T01:08:12.8801047Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8801269Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8801553Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8801841Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8802036Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8802238Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8802495Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8802709Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8803453Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8803694Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8803913Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8804299Z #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+0x6562cde) 2022-11-23T01:08:12.8804690Z #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+0x20cf997) 2022-11-23T01:08:12.8804906Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8805107Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8805855Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8806059Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8806265Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8807016Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8807281Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8807712Z #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+0xca56e8) 2022-11-23T01:08:12.8808096Z #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+0x2974180) 2022-11-23T01:08:12.8808338Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8809202Z #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+0x57a0418) 2022-11-23T01:08:12.8809414Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8809689Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8809867Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8810045Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8810302Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8810420Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8810539Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8810659Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8810807Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8811120Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8811267Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8811361Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8811367Z 2022-11-23T01:08:12.8811575Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8811769Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8811894Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8812056Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8812263Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8812709Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8812983Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8813253Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8813518Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8814710Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8815349Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8815704Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8816738Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8817050Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8817240Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8817508Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8818805Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8819292Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8821225Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8821761Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8822224Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8824167Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8824755Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8826690Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8827260Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8827596Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8828132Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8830160Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8830684Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8832576Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8833107Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8833610Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8835702Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8836321Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8838303Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8838832Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8839172Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8839437Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8840527Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8840798Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8841157Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8841504Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8841954Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8842350Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8843048Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8843745Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8844108Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8844462Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8845792Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8846148Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8846515Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8847810Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8848220Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8849011Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8849742Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8850179Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8851773Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8852164Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8852668Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8852987Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8853316Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8853786Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8853993Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8854189Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8854413Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8854685Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8855275Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8855496Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8855649Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8855661Z 2022-11-23T01:08:12.8856100Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.8856377Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8856604Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8856928Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8857104Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8857440Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8857595Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8857788Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8858228Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8858451Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8858734Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8858932Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8859491Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8859656Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8859882Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8860549Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8860761Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8861532Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8861715Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8861860Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8862490Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8862668Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8862819Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8863077Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8863191Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8863309Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8863429Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8863581Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8863896Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8864018Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8864111Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8864116Z 2022-11-23T01:08:12.8865788Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:12.8865862Z ================== 2022-11-23T01:08:12.8865927Z ================== 2022-11-23T01:08:12.8866096Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8866261Z  Write of size 1 at 0x7b7400037c8c by thread T3: 2022-11-23T01:08:12.8868472Z  #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+0x8718e64) 2022-11-23T01:08:12.8868763Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8868986Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8869268Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8869635Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8869906Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8870049Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8870273Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8870408Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8870414Z 2022-11-23T01:08:12.8870604Z  Previous write of size 1 at 0x7b7400037c8c by main thread: 2022-11-23T01:08:12.8872770Z  #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+0x8718e64) 2022-11-23T01:08:12.8873030Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8873250Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8873560Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8873851Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8874071Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8874272Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8874498Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8874712Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8875426Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8875667Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8875888Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8876270Z #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+0x6562cde) 2022-11-23T01:08:12.8876656Z #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+0x20cf997) 2022-11-23T01:08:12.8876870Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8877073Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8877868Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8878073Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8878280Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8879021Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8879246Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8879680Z #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+0xca56e8) 2022-11-23T01:08:12.8880068Z #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+0x2974180) 2022-11-23T01:08:12.8880310Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8881184Z #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+0x57a0418) 2022-11-23T01:08:12.8881411Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8881688Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8881865Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8882032Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8882314Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8882430Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8882549Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8882671Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8882848Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8883162Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8883280Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8883374Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8883380Z 2022-11-23T01:08:12.8883601Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8883757Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8883892Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8884054Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8884263Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8884882Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8885317Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8885772Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8886251Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8888136Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8889228Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8889854Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8891716Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8892235Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8892577Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8893083Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8894941Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8895549Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8897351Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8897861Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8898310Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8900332Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8900958Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8903105Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8903598Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8903880Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8904386Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8906282Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8906839Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8908836Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8909419Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8909981Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8912133Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8912743Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8914796Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8915251Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8915556Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8915796Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.8916887Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.8917155Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.8917522Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.8917869Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.8918239Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.8918626Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8919293Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.8920019Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.8920405Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8920760Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8922118Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8922470Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8922848Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8924168Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8924625Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8925420Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.8926176Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.8926590Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8927774Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.8928072Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8928460Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8928703Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8928942Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8929277Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8929456Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8929606Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8929779Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8929994Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8930398Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8930600Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8930755Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8930765Z 2022-11-23T01:08:12.8931171Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.8931421Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.8931806Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.8932273Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.8932550Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.8932976Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.8933201Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.8933465Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.8934056Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.8934368Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.8934606Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.8934868Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.8935649Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.8935863Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.8936173Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.8937049Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.8937362Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.8938454Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.8938843Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.8939140Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.8939942Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.8940149Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.8940361Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.8940719Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8940901Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8941065Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8941196Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8941405Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8941843Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8941970Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8942120Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8942130Z 2022-11-23T01:08:12.8944472Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:12.8944555Z ================== 2022-11-23T01:08:12.8944854Z ================== 2022-11-23T01:08:12.8945089Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.8945346Z  Write of size 1 at 0x7b7400037c7c by main thread: 2022-11-23T01:08:12.8948411Z  #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+0x8718e64) 2022-11-23T01:08:12.8948788Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8949109Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8949494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8949934Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8950210Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.8950462Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.8950793Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.8951062Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.8952045Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.8952400Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.8952710Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.8953272Z #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+0x6562cde) 2022-11-23T01:08:12.8953781Z #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+0x20cf997) 2022-11-23T01:08:12.8954100Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.8954357Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.8955390Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.8955693Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.8955989Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.8957142Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.8957537Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.8958260Z #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+0xca56e8) 2022-11-23T01:08:12.8958910Z #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+0x2974180) 2022-11-23T01:08:12.8959315Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.8960851Z #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+0x57a0418) 2022-11-23T01:08:12.8961270Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.8961730Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.8962024Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.8962329Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.8962761Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.8962947Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.8963135Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.8963336Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.8963583Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.8964112Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.8964315Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.8964480Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.8964489Z 2022-11-23T01:08:12.8964830Z  Previous write of size 1 at 0x7b7400037c7c by thread T1: 2022-11-23T01:08:12.8968611Z  #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+0x8718e64) 2022-11-23T01:08:12.8969100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.8969467Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.8969985Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.8970463Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.8970922Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.8971153Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.8971522Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.8971759Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.8971770Z 2022-11-23T01:08:12.8972143Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.8972424Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.8972629Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.8972876Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.8973200Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.8973930Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.8974391Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.8974834Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.8975287Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.8977169Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.8978285Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.8978898Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.8980683Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.8981156Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.8981460Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.8981928Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.8983856Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.8984425Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8986265Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8986732Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8987186Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8989103Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.8989709Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.8991614Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.8992162Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.8992488Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.8992992Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.8994847Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.8995305Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.8997055Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.8997592Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.8998003Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.8999758Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9000241Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9001858Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9002307Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9002664Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9002872Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.9003856Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.9004135Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.9004436Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.9004743Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.9005082Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.9005414Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9005953Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.9006548Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.9006863Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9007150Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9008122Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9008329Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9008612Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9009704Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9010069Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9010706Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.9011298Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.9011657Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9012991Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.9013306Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9013714Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9013980Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9014252Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9014649Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9014791Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9014975Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9015165Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9015318Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9015804Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9015993Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9016198Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9016206Z 2022-11-23T01:08:12.9016567Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.9016821Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.9017161Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.9017643Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.9017905Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.9018358Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.9018688Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.9018898Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.9019465Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.9019796Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.9020069Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.9020367Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.9021168Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.9021422Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.9021767Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.9022749Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.9023159Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.9024278Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.9024596Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.9024818Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.9025702Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.9025875Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.9026106Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.9026491Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9026677Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9026830Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9027024Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9027256Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9027713Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9027883Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9028040Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9028047Z 2022-11-23T01:08:12.9030599Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:12.9030708Z ================== 2022-11-23T01:08:12.9030857Z ================== 2022-11-23T01:08:12.9031115Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.9031394Z  Write of size 1 at 0x7b7400037c96 by thread T2: 2022-11-23T01:08:12.9033954Z  #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+0x8718e64) 2022-11-23T01:08:12.9034420Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9034792Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9035284Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9035746Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9036199Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.9087524Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.9087772Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.9087913Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.9087920Z 2022-11-23T01:08:12.9088145Z  Previous write of size 1 at 0x7b7400037c96 by main thread: 2022-11-23T01:08:12.9090461Z  #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+0x8718e64) 2022-11-23T01:08:12.9090789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9091014Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9091301Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9091591Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9091783Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.9091989Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.9092217Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.9092421Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.9093151Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.9093387Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.9093609Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9093995Z #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+0x6562cde) 2022-11-23T01:08:12.9094408Z #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+0x20cf997) 2022-11-23T01:08:12.9094623Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9094854Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9095611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9095817Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9096022Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9096733Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9096960Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9097408Z #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+0xca56e8) 2022-11-23T01:08:12.9097791Z #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+0x2974180) 2022-11-23T01:08:12.9098034Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9099064Z #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+0x57a0418) 2022-11-23T01:08:12.9099310Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9099587Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9099773Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9099954Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9100212Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9100332Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9100456Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9100579Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9100716Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9101032Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9101152Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9101247Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9101253Z 2022-11-23T01:08:12.9101478Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.9101647Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.9101771Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.9101934Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.9102141Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.9102585Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.9102855Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.9103121Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.9103385Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.9104477Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.9105136Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.9105445Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.9106476Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.9106766Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.9106954Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.9107225Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.9108353Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.9108688Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9109827Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9110110Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9110384Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9111564Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9111918Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9113006Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9113314Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9113509Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9113806Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.9114905Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.9115211Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9116320Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9116624Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9116895Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9118019Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9118355Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9119469Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9119796Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9119990Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9120139Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.9120798Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.9120953Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.9121136Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.9121338Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.9121575Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.9121795Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9122181Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.9122575Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.9122802Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9122990Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9123780Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9123987Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9124224Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9124934Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9125161Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9125590Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.9125979Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.9126220Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9127092Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.9127304Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9127580Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9127756Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9127975Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9128231Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9128335Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9128482Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9128605Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9128754Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9129067Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9129186Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9129280Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9129289Z 2022-11-23T01:08:12.9129509Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:12.9129676Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.9129896Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.9130214Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.9130387Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.9130673Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.9130830Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.9131022Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.9131430Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.9131650Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.9131835Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.9132029Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.9132589Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.9132757Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.9132984Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.9133674Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.9133923Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.9134692Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.9134871Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.9135016Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.9135596Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.9135746Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.9135898Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.9136153Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9136268Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9136388Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9136498Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9136646Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9136959Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9137080Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9137176Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9137182Z 2022-11-23T01:08:12.9139033Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:12.9139139Z ================== 2022-11-23T01:08:12.9139367Z ================== 2022-11-23T01:08:12.9139540Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.9139718Z  Write of size 1 at 0x7b7400037c96 by thread T1: 2022-11-23T01:08:12.9141910Z  #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+0x8718e64) 2022-11-23T01:08:12.9142176Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9142399Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9142684Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9142975Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9143245Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.9143391Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.9143616Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.9143752Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.9143758Z 2022-11-23T01:08:12.9143944Z  Previous write of size 1 at 0x7b7400037c96 by main thread: 2022-11-23T01:08:12.9146140Z  #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+0x8718e64) 2022-11-23T01:08:12.9146445Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9146667Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9146949Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9147235Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9147431Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.9147622Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.9147849Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.9148064Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.9148786Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.9149026Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.9149274Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9149739Z #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+0x6562cde) 2022-11-23T01:08:12.9150179Z #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+0x20cf997) 2022-11-23T01:08:12.9150397Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9150602Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9151353Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9151559Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9151769Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9152484Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9152710Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9153144Z #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+0xca56e8) 2022-11-23T01:08:12.9153571Z #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+0x2974180) 2022-11-23T01:08:12.9153813Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9154713Z #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+0x57a0418) 2022-11-23T01:08:12.9154926Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9155204Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9155379Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9155558Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9155817Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9155932Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9156050Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9156170Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9156308Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9156618Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9156737Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9156830Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9156836Z 2022-11-23T01:08:12.9157062Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.9157230Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.9157356Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.9157518Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.9157725Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.9158165Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.9158457Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.9158722Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.9159016Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.9160088Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.9160729Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.9161036Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.9162072Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.9162384Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.9162572Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.9162871Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.9163985Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.9164295Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9165367Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9165645Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9165915Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9167067Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9167430Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9168520Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9168809Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9169003Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9169303Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.9170444Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.9170779Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9171837Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9172115Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9172381Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9173513Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9173844Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9174955Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9175267Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9175463Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9175611Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.9176251Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.9176415Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.9176601Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.9176804Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.9177040Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.9177259Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9177648Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.9178039Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.9178253Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9178569Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9179336Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9179586Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9179795Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9180508Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9180733Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9181164Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.9181550Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.9181793Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9182670Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.9182915Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9183195Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9183412Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9183578Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9183834Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9183950Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9184072Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9184192Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9184340Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9184655Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9184773Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9184866Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9184872Z 2022-11-23T01:08:12.9185091Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:12.9185258Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.9185472Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.9185790Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.9185968Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.9186264Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.9186418Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.9186612Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.9187020Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.9187242Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.9187426Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.9187617Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.9188201Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.9188393Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.9188620Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.9189281Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.9189494Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.9190342Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.9190521Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.9190670Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.9191249Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.9191397Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.9191549Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.9191807Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9191923Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9192030Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9192151Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9192297Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9192641Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9192763Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9192856Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9192862Z 2022-11-23T01:08:12.9194552Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:12.9194625Z ================== 2022-11-23T01:08:12.9194690Z ================== 2022-11-23T01:08:12.9194857Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:12.9195036Z  Write of size 1 at 0x7b7400037eeb by main thread: 2022-11-23T01:08:12.9197210Z  #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+0x8718ed1) 2022-11-23T01:08:12.9197474Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9197698Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9197981Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9198269Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9198490Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:12.9198695Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:12.9198927Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:12.9199168Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:12.9199883Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:12.9200125Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:12.9200347Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9200735Z #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+0x6562cde) 2022-11-23T01:08:12.9201142Z #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+0x20cf997) 2022-11-23T01:08:12.9201360Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9201561Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9202316Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9202523Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9202730Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9203464Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9203715Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9204147Z #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+0xca56e8) 2022-11-23T01:08:12.9204534Z #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+0x2974180) 2022-11-23T01:08:12.9204774Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9205645Z #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+0x57a0418) 2022-11-23T01:08:12.9205857Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9206132Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9206308Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9206488Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9206743Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9206846Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9206964Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9207085Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9207236Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9207573Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9207693Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9207814Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9207819Z 2022-11-23T01:08:12.9208005Z  Previous write of size 1 at 0x7b7400037eeb by thread T3: 2022-11-23T01:08:12.9210179Z  #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+0x8718ed1) 2022-11-23T01:08:12.9210440Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:12.9210666Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:12.9210948Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:12.9211237Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:12.9211506Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:12.9211648Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:12.9211873Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:12.9212012Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:12.9212018Z 2022-11-23T01:08:12.9212235Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2022-11-23T01:08:12.9212400Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:12.9212524Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:12.9212683Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:12.9212915Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:12.9213360Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:12.9213658Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:12.9213926Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:12.9214189Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:12.9215262Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:12.9215905Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:12.9216211Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:12.9217270Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:12.9217590Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:12.9217779Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:12.9218052Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:12.9219261Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:12.9219576Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9220646Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9220977Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9221249Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9222407Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9222746Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9223837Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9224128Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9224326Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9224626Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:12.9225771Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:12.9226110Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:12.9227182Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:12.9227459Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:12.9227727Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:12.9228889Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:12.9229226Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:12.9230421Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:12.9230715Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:12.9230911Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:12.9231061Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:12.9231700Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:12.9231857Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:12.9232057Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:12.9232261Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:12.9232498Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:12.9232719Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:12.9233137Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:12.9233530Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:12.9233776Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:12.9233978Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:12.9234739Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:12.9234946Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:12.9235153Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:12.9235863Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:12.9236088Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:12.9236516Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:12.9236901Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:12.9237142Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:12.9238031Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:12.9238280Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:12.9238556Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:12.9238717Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:12.9238898Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:12.9239158Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9239271Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9239390Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9239511Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9239660Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9239975Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9240094Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9240189Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9240195Z 2022-11-23T01:08:12.9240414Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:12.9240566Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:12.9240787Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:12.9241106Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:12.9241282Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:12.9241576Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:12.9241730Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:12.9241920Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:12.9242324Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:12.9242574Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:12.9242764Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:12.9242982Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:12.9243536Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:12.9243704Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:12.9243929Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:12.9244590Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:12.9244802Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:12.9245581Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:12.9245761Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:12.9245906Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:12.9246476Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:12.9246623Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:12.9246775Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:12.9247059Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:12.9247163Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:12.9247282Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:12.9247437Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:12.9247585Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:12.9247896Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:12.9248014Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:12.9248107Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:12.9248112Z 2022-11-23T01:08:12.9249776Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:12.9249850Z ================== 2022-11-23T01:08:13.0192096Z ================== 2022-11-23T01:08:13.0192691Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0193027Z  Write of size 1 at 0x7b7400039a76 by main thread: 2022-11-23T01:08:13.0197409Z  #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+0x871a635) 2022-11-23T01:08:13.0197887Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0198501Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0199010Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0199601Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0199947Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0200317Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0200731Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.0201122Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0202424Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.0202846Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.0203297Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0203987Z #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+0x6562cde) 2022-11-23T01:08:13.0204706Z #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+0x20cf997) 2022-11-23T01:08:13.0205082Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0205451Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0206877Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0207285Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0207658Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0208953Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0209356Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0210144Z #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+0xca56e8) 2022-11-23T01:08:13.0210868Z #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+0x2974180) 2022-11-23T01:08:13.0211302Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0212888Z #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+0x57a0418) 2022-11-23T01:08:13.0213265Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0213752Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0214066Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0214420Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0214884Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0215126Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0215337Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0215551Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0215801Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0216384Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0216593Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0216760Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0216771Z 2022-11-23T01:08:13.0217124Z  Previous write of size 1 at 0x7b7400039a76 by thread T3: 2022-11-23T01:08:13.0221446Z  #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+0x871a635) 2022-11-23T01:08:13.0221940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0222331Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0222852Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0223380Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0223871Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0224117Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0224598Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0224837Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0224848Z 2022-11-23T01:08:13.0225247Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2022-11-23T01:08:13.0225616Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.0225833Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.0226119Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.0226502Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.0227318Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.0227806Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.0228297Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.0228782Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.0230815Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.0231996Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.0232612Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.0234562Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.0235173Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.0235514Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.0236009Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.0238070Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.0238649Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0240684Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0241245Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0241742Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0243872Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0244459Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0246532Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0247095Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0247444Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0247997Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.0250083Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.0250662Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0252633Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0253126Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0253629Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0255792Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0256413Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0258584Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0259114Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0259466Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0259734Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.0260915Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.0261189Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.0261543Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.0261908Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.0262400Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.0262805Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0263559Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.0264275Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.0264652Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0265020Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0266380Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0266740Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0267121Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0268431Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0268847Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0269704Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.0270457Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.0270929Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0272523Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.0272906Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0273399Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0273715Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0274042Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0274498Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0274703Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0274919Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0275130Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0275461Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0276027Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0294974Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0295402Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0295421Z 2022-11-23T01:08:13.0295824Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.0296100Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.0296483Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.0297057Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.0297343Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.0297941Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.0298178Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.0298684Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.0299496Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.0299815Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.0300082Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.0300316Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.0301138Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.0301382Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.0301696Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.0302697Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.0302994Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.0304166Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.0304442Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.0304645Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.0305611Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.0305870Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.0306101Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.0306465Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0306643Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0306832Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0307025Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0307212Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0307699Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0307887Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0308027Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0308037Z 2022-11-23T01:08:13.0310799Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a635) 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::'lamb 2022-11-23T01:08:13.0310919Z ================== 2022-11-23T01:08:13.0311141Z ================== 2022-11-23T01:08:13.0311397Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0311685Z  Write of size 1 at 0x7b7400039a7c by main thread: 2022-11-23T01:08:13.0315161Z  #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+0x871a6f4) 2022-11-23T01:08:13.0315650Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0316007Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0316466Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0316926Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0317232Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0317553Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0317893Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.0318205Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0319318Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.0319692Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.0320024Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0320620Z #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+0x6562cde) 2022-11-23T01:08:13.0321229Z #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+0x20cf997) 2022-11-23T01:08:13.0321560Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0321924Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0323064Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0323432Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0323722Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0324796Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0325155Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0325830Z #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+0xca56e8) 2022-11-23T01:08:13.0326421Z #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+0x2974180) 2022-11-23T01:08:13.0326796Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0328139Z #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+0x57a0418) 2022-11-23T01:08:13.0328462Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0328862Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0329164Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0329444Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0329838Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0330018Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0330202Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0330382Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0330594Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0331114Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0331318Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0331476Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0331486Z 2022-11-23T01:08:13.0331820Z  Previous write of size 1 at 0x7b7400039a7c by thread T3: 2022-11-23T01:08:13.0335599Z  #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+0x871a6f4) 2022-11-23T01:08:13.0336044Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0336415Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0336881Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0337422Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0337887Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0338172Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0338629Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0338861Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0338872Z 2022-11-23T01:08:13.0339243Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2022-11-23T01:08:13.0339534Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.0339746Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.0340010Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.0340350Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.0341100Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.0341547Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.0342001Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.0342441Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.0344245Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.0345396Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.0345960Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.0347722Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.0348180Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.0348494Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.0348953Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.0350883Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.0351446Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0353282Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0353794Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0354262Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0356194Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0356735Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0358637Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0359156Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0359478Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0359978Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.0362089Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.0362625Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0364409Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0364928Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0365379Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0367349Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0367891Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0369795Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0370279Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0370609Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0370851Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.0371962Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.0372217Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.0372590Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.0372945Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.0373329Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.0373720Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0374416Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.0375118Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.0375501Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0375860Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0377249Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0377621Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0377992Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0379418Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0379915Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0380702Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.0381450Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.0381883Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0383459Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.0383835Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0384327Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0384655Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0384975Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0385436Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0385635Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0385848Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0386058Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0386317Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0386890Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0387086Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0387246Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0387257Z 2022-11-23T01:08:13.0387662Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.0387960Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.0388392Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.0388966Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.0389310Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.0389893Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.0390165Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.0390511Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.0391271Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.0391670Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.0392004Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.0392362Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.0393382Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.0393673Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.0394078Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.0395291Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.0395671Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.0397142Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.0397452Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.0397733Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.0398790Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.0399041Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.0399307Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.0399779Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0399980Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0400192Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0400405Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0400667Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0401244Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0401453Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0401619Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0401627Z 2022-11-23T01:08:13.0404799Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:13.0404922Z ================== 2022-11-23T01:08:13.0405129Z ================== 2022-11-23T01:08:13.0405424Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0405725Z  Write of size 1 at 0x7b7400039a7a by thread T1: 2022-11-23T01:08:13.0409919Z  #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+0x871a6f4) 2022-11-23T01:08:13.0410437Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0410834Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0411353Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0411873Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0412362Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0412608Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0413011Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0413249Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0413258Z 2022-11-23T01:08:13.0413593Z  Previous write of size 1 at 0x7b7400039a7a by main thread: 2022-11-23T01:08:13.0417707Z  #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+0x871a6f4) 2022-11-23T01:08:13.0418190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0418758Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0419273Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0419796Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0420138Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0420502Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0420893Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.0421274Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0422588Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.0423031Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.0423422Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0424119Z #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+0x6562cde) 2022-11-23T01:08:13.0424820Z #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+0x20cf997) 2022-11-23T01:08:13.0425206Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0425564Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0427035Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0427441Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0427810Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0429097Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0429500Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0430368Z #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+0xca56e8) 2022-11-23T01:08:13.0431091Z #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+0x2974180) 2022-11-23T01:08:13.0431524Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0433096Z #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+0x57a0418) 2022-11-23T01:08:13.0433513Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0434006Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0434362Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0434680Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0435140Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0435337Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0435544Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0435756Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0436010Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0436579Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0436794Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0436953Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0436962Z 2022-11-23T01:08:13.0437364Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2022-11-23T01:08:13.0437660Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.0437879Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.0438174Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.0438529Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.0439335Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.0439820Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.0440298Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.0440776Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.0442802Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.0443990Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.0444535Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.0446457Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.0446970Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.0447297Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.0447783Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.0449859Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.0450495Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0452458Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0452955Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0453443Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0455529Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0456116Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0458210Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0458889Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0459243Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0459794Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.0462024Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.0462617Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0464715Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0465277Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0465784Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0467953Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0468566Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0470715Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0471269Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0471655Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0471927Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.0473123Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.0473475Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.0473825Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.0474192Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.0474621Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.0475026Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0475739Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.0476497Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.0476894Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0477260Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0478692Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0479080Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0479472Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0480845Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0481303Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0482104Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.0482825Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.0483253Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0484856Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.0485256Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0485774Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0486087Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0486437Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0486897Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0487113Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0487323Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0487592Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0487860Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0488531Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0488751Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0488949Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0488962Z 2022-11-23T01:08:13.0489416Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.0489721Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.0490139Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.0490746Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.0491037Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.0491614Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.0491891Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.0492264Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.0493063Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.0493498Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.0493833Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.0494186Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.0495272Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.0495596Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.0496009Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.0497265Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.0497743Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.0499366Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.0499780Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.0500034Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.0501120Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.0501383Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.0501686Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.0502161Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0502368Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0502588Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0502801Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0503075Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0503679Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0503904Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0504067Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0504077Z 2022-11-23T01:08:13.0507375Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:13.0507501Z ================== 2022-11-23T01:08:13.0507753Z ================== 2022-11-23T01:08:13.0508072Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0508389Z  Write of size 1 at 0x7b7400039f61 by main thread: 2022-11-23T01:08:13.0512604Z  #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+0x871a761) 2022-11-23T01:08:13.0513151Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0513562Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0514071Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0514617Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0514957Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0515317Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0515736Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.0516109Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0517472Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.0517939Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.0518339Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0519086Z #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+0x6562cde) 2022-11-23T01:08:13.0519808Z #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+0x20cf997) 2022-11-23T01:08:13.0520199Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0520571Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0521976Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0522362Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0522749Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0524278Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0524703Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0525490Z #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+0xca56e8) 2022-11-23T01:08:13.0526243Z #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+0x2974180) 2022-11-23T01:08:13.0526745Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0528365Z #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+0x57a0418) 2022-11-23T01:08:13.0528759Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0529249Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0529567Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0529889Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0530363Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0530566Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0530774Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0530992Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0531260Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0531836Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0532035Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0532224Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0532233Z 2022-11-23T01:08:13.0532573Z  Previous write of size 1 at 0x7b7400039f61 by thread T2: 2022-11-23T01:08:13.0536813Z  #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+0x871a761) 2022-11-23T01:08:13.0537339Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0537729Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0538254Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0538997Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0539498Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0539751Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0540167Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0540401Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0540410Z 2022-11-23T01:08:13.0540813Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2022-11-23T01:08:13.0541133Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.0541347Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.0541640Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.0542027Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.0542853Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.0543350Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.0543858Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.0544355Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.0546417Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.0547642Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.0548207Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.0550254Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.0550764Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.0551109Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.0551605Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.0553721Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.0554339Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0556405Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0556918Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0557408Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0559553Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0560191Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0562261Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0562809Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0563165Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0563714Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.0565824Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.0566397Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.0568514Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.0569068Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.0569574Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.0571723Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.0572324Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.0574416Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.0574994Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.0575347Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.0575626Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.0576854Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.0577176Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.0577541Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.0577919Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.0578346Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.0578864Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.0579590Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.0580368Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.0580757Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.0581131Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0582629Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0582995Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0583443Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0584801Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.0585239Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.0586078Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.0586787Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.0587254Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.0588866Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.0589276Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0589852Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.0590175Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.0590554Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.0591016Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0591224Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0591478Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0591712Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0591977Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0592570Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0592766Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0592929Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0592943Z 2022-11-23T01:08:13.0593343Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.0593661Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.0594065Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.0594657Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.0594988Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.0595530Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.0595806Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.0596173Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.0596964Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.0597383Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.0597719Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.0598080Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.0599129Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.0599421Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.0599834Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.0601112Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.0601524Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.0602973Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.0603296Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.0603552Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.0604637Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.0604907Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.0605177Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.0605670Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0605874Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0606087Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0606310Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0606585Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0607161Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0607381Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0607548Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0607558Z 2022-11-23T01:08:13.0610819Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a761) 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::'lamb 2022-11-23T01:08:13.0610969Z ================== 2022-11-23T01:08:13.0937408Z ================== 2022-11-23T01:08:13.0938431Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0938979Z  Write of size 2 at 0x7b8400006d6c by thread T1: 2022-11-23T01:08:13.0942413Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.0942863Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0943238Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0943717Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0944233Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0944662Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0944885Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0945240Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0945380Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0945387Z 2022-11-23T01:08:13.0945630Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2022-11-23T01:08:13.0949123Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.0949724Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0950082Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0950479Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0950957Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0951343Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0951688Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0952046Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.0952362Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0953511Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.0953817Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.0954063Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0954895Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0955140Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0955344Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0956120Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.0956366Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.0957248Z #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+0x57a0418) 2022-11-23T01:08:13.0957462Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0957643Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.0957898Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0958014Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0958123Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0958271Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0958422Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0958733Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0958880Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0958974Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0958980Z 2022-11-23T01:08:13.0959219Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.0959387Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.0959514Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.0959677Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.0959875Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.0960331Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.0960604Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.0960869Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.0961133Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.0962207Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.0962868Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.0963171Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.0964230Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.0964505Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.0964790Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.0965441Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.0965636Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.0965831Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.0966622Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.0966867Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.0967753Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.0968026Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.0968207Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.0968462Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0968579Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0968698Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0968819Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0968969Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0969287Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0969406Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0969499Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0969506Z 2022-11-23T01:08:13.0969710Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.0969878Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.0970098Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.0970414Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.0970588Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.0970884Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.0971037Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.0971228Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.0971636Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.0971855Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.0972069Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.0972267Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.0972849Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.0973013Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.0973238Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.0973897Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.0974108Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.0974906Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.0975083Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.0975226Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.0975806Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.0975955Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.0976106Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.0976362Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.0976493Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.0976668Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.0976840Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.0977047Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.0977467Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.0977621Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.0977716Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.0977722Z 2022-11-23T01:08:13.0980257Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.0980370Z ================== 2022-11-23T01:08:13.0980710Z ================== 2022-11-23T01:08:13.0981460Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.0981754Z  Write of size 2 at 0x7b8400006d6c by thread T2: 2022-11-23T01:08:13.0985273Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.0985792Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0986207Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0986921Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0987457Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0988035Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.0988295Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.0988718Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.0988952Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.0988960Z 2022-11-23T01:08:13.0989232Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2022-11-23T01:08:13.0992650Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.0993087Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.0993468Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.0993954Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.0994425Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.0994776Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.0995094Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.0995507Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.0995769Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.0997053Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.0997343Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.0997563Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.0998371Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.0998576Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.0998785Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.0999563Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.0999807Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1000708Z #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+0x57a0418) 2022-11-23T01:08:13.1000945Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1001124Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1001382Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1001499Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1001618Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1001739Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1001874Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1002190Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1002309Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1002402Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1002409Z 2022-11-23T01:08:13.1002650Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1002818Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1002943Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1003105Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1003311Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1003755Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1004026Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1004292Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1004555Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1005643Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1006317Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1006624Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1007648Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1007938Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1008103Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1008761Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1008940Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1009174Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1009948Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1010217Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1011074Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1011297Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1011468Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1011724Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1011837Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1011956Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1012074Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1012222Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1012533Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1012651Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1012745Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1012751Z 2022-11-23T01:08:13.1012965Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1013121Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1013339Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1013699Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1013874Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1014168Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1014348Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1014537Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1014943Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1015166Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1015351Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1015543Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1016098Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1016264Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1016490Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1017244Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1017484Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1018750Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1019139Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1019320Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1019995Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1020191Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1020341Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1020599Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1020714Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1020832Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1020943Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1021090Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1021402Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1021519Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1021612Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1021618Z 2022-11-23T01:08:13.1023313Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1023387Z ================== 2022-11-23T01:08:13.1023453Z ================== 2022-11-23T01:08:13.1023621Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1023799Z  Write of size 2 at 0x7b8400006d6c by thread T3: 2022-11-23T01:08:13.1026086Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.1026378Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1026604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1026889Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1027180Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1027448Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1027589Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1030919Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1031920Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1031936Z 2022-11-23T01:08:13.1032710Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2022-11-23T01:08:13.1036846Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.1037334Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1037854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1038324Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1038666Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1038860Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1039061Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1039293Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1039508Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1040290Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1040558Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1040762Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1041510Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1041716Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1041921Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1042721Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1042995Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1043863Z #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+0x57a0418) 2022-11-23T01:08:13.1044074Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1044254Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1044515Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1044631Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1044739Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1044862Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1045010Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1045321Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1045440Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1045533Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1045539Z 2022-11-23T01:08:13.1045771Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1045939Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1046064Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1046226Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1046421Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1046876Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1047171Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1047436Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1047732Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1048806Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1049445Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1049751Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1050779Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1051080Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1051255Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1051929Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1052120Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1052314Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1053106Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1053348Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1054204Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1054416Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1054596Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1054853Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1054970Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1055092Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1055212Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1055385Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1055700Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1055858Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1055950Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1055956Z 2022-11-23T01:08:13.1056157Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.1056321Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1056541Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1056860Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1057034Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1057412Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1057606Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1057860Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1058724Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1059122Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1059466Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1059821Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1060824Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1061106Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1061506Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1062814Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1063177Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1064636Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1064947Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1065184Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1066251Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1066518Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1066794Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1067220Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1067436Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1067636Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1067836Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1068083Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1068635Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1068849Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1069019Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1069030Z 2022-11-23T01:08:13.1072273Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1072400Z ================== 2022-11-23T01:08:13.1072572Z ================== 2022-11-23T01:08:13.1072881Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1073244Z  Write of size 2 at 0x7b8400006d70 by thread T1: 2022-11-23T01:08:13.1077500Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1078000Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1078406Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1078930Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1079455Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1079956Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1080141Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1080370Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1080507Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1080514Z 2022-11-23T01:08:13.1080710Z  Previous write of size 2 at 0x7b8400006d70 by main thread: 2022-11-23T01:08:13.1082902Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1083204Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1083425Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1083708Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1083995Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1084189Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1084381Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1084608Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1084821Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1085619Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1085838Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1086039Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1086818Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1087045Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1087251Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1088031Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1088279Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1089153Z #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+0x57a0418) 2022-11-23T01:08:13.1089364Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1089554Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1089810Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1089927Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1090047Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1090155Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1090303Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1090615Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1090757Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1090851Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1090857Z 2022-11-23T01:08:13.1091079Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1091246Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1091397Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1091556Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1091760Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1092206Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1092475Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1092745Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1093009Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1094078Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1094711Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1095015Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1096069Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1096371Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1096549Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1097211Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1097389Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1097596Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1098376Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1098718Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1099630Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1099881Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1100152Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1100539Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1100718Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1100919Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1101102Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1101345Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1101883Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1102103Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1102260Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1102269Z 2022-11-23T01:08:13.1102674Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.1102965Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1103368Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1103912Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1104221Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1104791Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1105065Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1105403Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1106160Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1106573Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1106899Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1107231Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1108313Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1108640Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1109058Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1110320Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1110731Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1112135Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1112459Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1112724Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1113748Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1114015Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1114293Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1114771Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1114952Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1115158Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1115363Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1115619Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1116259Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1116464Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1116632Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1116698Z 2022-11-23T01:08:13.1119769Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1119901Z ================== 2022-11-23T01:08:13.1120016Z ================== 2022-11-23T01:08:13.1120309Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1120620Z  Write of size 2 at 0x7b8400006d70 by thread T2: 2022-11-23T01:08:13.1123663Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1123930Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1124155Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1124441Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1124729Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1125033Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1125178Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1125434Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1125569Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1125575Z 2022-11-23T01:08:13.1125764Z  Previous write of size 2 at 0x7b8400006d70 by main thread: 2022-11-23T01:08:13.1127930Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1128206Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1128431Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1128714Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1129004Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1129197Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1129387Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1129616Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1129830Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1130686Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1130926Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1131127Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1131877Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1132081Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1132287Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1133074Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1133318Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1134176Z #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+0x57a0418) 2022-11-23T01:08:13.1134420Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1134605Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1134885Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1135000Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1135120Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1135240Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1135387Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1135700Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1135818Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1135898Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1135907Z 2022-11-23T01:08:13.1136127Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1136294Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1136417Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1136577Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1136782Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1137225Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1137494Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1137762Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1138029Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1139238Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1139881Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1140221Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1141271Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1141549Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1141727Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1142492Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1142770Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1143109Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1144586Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1145058Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1146666Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1147057Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1147391Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1147862Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1148037Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1148220Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1148374Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1148524Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1148981Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1149177Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1149326Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1149335Z 2022-11-23T01:08:13.1149770Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1150042Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1150337Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1150660Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1150834Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1151129Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1151339Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1151534Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1151950Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1152205Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1152378Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1152570Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1153137Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1153304Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1153532Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1154199Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1154411Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1155181Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1155363Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1155507Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1156135Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1156283Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1156474Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1156730Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1156847Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1156967Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1157087Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1157234Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1157547Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1157656Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1157751Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1157757Z 2022-11-23T01:08:13.1159438Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1159524Z ================== 2022-11-23T01:08:13.1159622Z ================== 2022-11-23T01:08:13.1159778Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1159953Z  Write of size 2 at 0x7b8400006d70 by thread T3: 2022-11-23T01:08:13.1163034Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1163430Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1163810Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1164240Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1164698Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1165120Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1165341Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1165675Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1165887Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1165896Z 2022-11-23T01:08:13.1166173Z  Previous write of size 2 at 0x7b8400006d70 by main thread: 2022-11-23T01:08:13.1169330Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.1169740Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1170090Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1170535Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1171013Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1171326Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1171695Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1172057Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1172387Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1173586Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1173918Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1174227Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1175217Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1175430Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1175637Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1176846Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1177227Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1178738Z #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+0x57a0418) 2022-11-23T01:08:13.1179067Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1179359Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1179762Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1179980Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1180137Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1180320Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1180552Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1181038Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1181227Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1181369Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1181394Z 2022-11-23T01:08:13.1181723Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1182001Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1182193Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1182431Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1182641Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1183088Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1183466Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1183858Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1184371Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1186072Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1187204Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1187745Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1189411Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1189896Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1190198Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1191401Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1191759Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1192093Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1193333Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1193704Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1195127Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1195486Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1195789Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1196269Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1196456Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1196669Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1196870Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1197123Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1197577Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1197766Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1197995Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1198006Z 2022-11-23T01:08:13.1198386Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.1198672Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1199121Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1199704Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1199984Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1200528Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1200820Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1201134Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1201859Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1202239Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1202539Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1202872Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1203760Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1204009Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1204370Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1205278Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1205562Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1206676Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1206995Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1207196Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1208044Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1208252Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1208464Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1208809Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1208985Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1209146Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1209302Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1209524Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1209964Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1210159Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1210292Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1210302Z 2022-11-23T01:08:13.1212784Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1212906Z ================== 2022-11-23T01:08:13.1213087Z ================== 2022-11-23T01:08:13.1213373Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1213642Z  Write of size 2 at 0x7b8400006d72 by thread T1: 2022-11-23T01:08:13.1216902Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1217319Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1217646Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1218060Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1218586Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1218973Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1219184Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1219505Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1219693Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1219703Z 2022-11-23T01:08:13.1220002Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2022-11-23T01:08:13.1223501Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1223950Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1224260Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1224672Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1225075Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1225356Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1225646Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1225970Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1226284Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1227397Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1227775Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1228122Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1229467Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1229891Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1230243Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1231610Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1232016Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1233505Z #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+0x57a0418) 2022-11-23T01:08:13.1233894Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1234188Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1234619Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1234813Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1235022Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1235224Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1235474Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1236008Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1236212Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1236363Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1236375Z 2022-11-23T01:08:13.1236767Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1237044Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1237234Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1237547Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1237899Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1238665Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1239165Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1239631Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1240087Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1241948Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1242985Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1243516Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1245325Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1245858Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1246162Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1247271Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1247578Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1247904Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1249266Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1249713Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1250888Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1251157Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1251342Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1251631Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1251750Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1251870Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1251989Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1252137Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1252452Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1252568Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1252662Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1252670Z 2022-11-23T01:08:13.1252896Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.1253065Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1253283Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1253601Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1253776Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1254072Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1254226Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1254416Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1254820Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1255039Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1255227Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1255416Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1255973Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1256138Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1256397Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1257055Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1257303Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1258069Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1258263Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1258394Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1259145Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1259293Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1259431Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1259685Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1259801Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1259922Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1260040Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1260189Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1260500Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1260618Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1260710Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1260716Z 2022-11-23T01:08:13.1262444Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1262559Z ================== 2022-11-23T01:08:13.1262680Z ================== 2022-11-23T01:08:13.1262855Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1263032Z  Write of size 2 at 0x7b8400006d72 by thread T2: 2022-11-23T01:08:13.1265296Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1265559Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1265783Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1266068Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1266356Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1266626Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1266766Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1266990Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1267160Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1267166Z 2022-11-23T01:08:13.1267353Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2022-11-23T01:08:13.1269472Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1269849Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1270061Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1270341Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1270627Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1270821Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1271022Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1271250Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1271463Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1272291Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1272508Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1272739Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1273757Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1274097Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1274427Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1275618Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1275896Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1276771Z #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+0x57a0418) 2022-11-23T01:08:13.1276987Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1277168Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1277426Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1277590Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1277712Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1277819Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1277998Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1278311Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1278431Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1278526Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1278532Z 2022-11-23T01:08:13.1278768Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1278934Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1279060Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1279222Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1279429Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1279874Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1280148Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1280417Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1280684Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1281758Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1282425Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1282753Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1283784Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1284067Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1284241Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1284900Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1285081Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1285299Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1286491Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1286933Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1288453Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1288900Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1289243Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1289526Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1289642Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1289762Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1289932Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1290160Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1290654Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1290838Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1290987Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1290993Z 2022-11-23T01:08:13.1291295Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1291523Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1291855Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1292260Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1292438Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1292733Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1292888Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1293080Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1293491Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1293759Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1293947Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1294181Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1294742Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1294909Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1295135Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1295797Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1296010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1296794Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1296974Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1297117Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1297693Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1297839Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1297989Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1298271Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1298376Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1298599Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1298775Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1298926Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1299236Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1299355Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1299449Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1299455Z 2022-11-23T01:08:13.1301123Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1301198Z ================== 2022-11-23T01:08:13.1301314Z ================== 2022-11-23T01:08:13.1301483Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1301660Z  Write of size 2 at 0x7b8400006d72 by thread T3: 2022-11-23T01:08:13.1303821Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1304088Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1304349Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1304636Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1304952Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1305223Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1305364Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1305590Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1305727Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1305735Z 2022-11-23T01:08:13.1305921Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2022-11-23T01:08:13.1308045Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.1308321Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1308540Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1308820Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1309108Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1309301Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1309535Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1309824Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1310038Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1310867Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1311084Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1311286Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1312044Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1312249Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1312453Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1313575Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1313961Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1315242Z #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+0x57a0418) 2022-11-23T01:08:13.1315625Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1315902Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1316317Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1316498Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1316694Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1316866Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1317110Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1317634Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1317853Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1318018Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1318025Z 2022-11-23T01:08:13.1318436Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1318738Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1318938Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1319213Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1319544Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1320269Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1320745Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1321220Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1321671Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1323285Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1324271Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1324700Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1326387Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1326785Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1326999Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1328001Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1328207Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1328537Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1329456Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1329840Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1331229Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1331494Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1331783Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1332148Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1332326Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1332486Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1332600Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1332749Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1333062Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1333183Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1333277Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1333283Z 2022-11-23T01:08:13.1333519Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.1333687Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1333907Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1334274Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1334447Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1334782Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1334935Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1335128Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1335539Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1335759Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1335935Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1336126Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1336695Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1336858Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1337073Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1337744Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1337955Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1338873Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1339054Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1339197Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1339814Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1339962Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1340116Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1340372Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1340490Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1340611Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1340732Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1340878Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1341188Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1341298Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1341390Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1341396Z 2022-11-23T01:08:13.1343073Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1343159Z ================== 2022-11-23T01:08:13.1343274Z ================== 2022-11-23T01:08:13.1343444Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1343607Z  Write of size 2 at 0x7b8400006d74 by thread T1: 2022-11-23T01:08:13.1345816Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1346108Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1346334Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1346620Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1346907Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1347176Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1347317Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1347539Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1347678Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1347684Z 2022-11-23T01:08:13.1347870Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2022-11-23T01:08:13.1350130Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1350443Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1350668Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1350977Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1351264Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1351457Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1351659Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1351886Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1352099Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1352882Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1353101Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1353302Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1354052Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1354270Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1354476Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1355290Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1355557Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1356801Z #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+0x57a0418) 2022-11-23T01:08:13.1357127Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1357377Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1357705Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1357864Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1358048Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1358225Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1358419Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1358973Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1359171Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1359314Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1359325Z 2022-11-23T01:08:13.1359730Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1360013Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1360236Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1360513Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1360870Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1361670Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1362038Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1362412Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1362724Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1364156Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1364852Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1365291Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1366886Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1367308Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1367634Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1368666Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1368864Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1369075Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1370307Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1370720Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1372146Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1372429Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1372702Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1373001Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1373252Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1373402Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1373525Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1373719Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1374222Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1374404Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1374554Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1374562Z 2022-11-23T01:08:13.1374932Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.1375205Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1375562Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1376024Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1376272Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1376733Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1376931Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1377233Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1377857Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1378214Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1378689Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1379005Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1379918Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1380182Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1380551Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1381728Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1382133Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1383381Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1383598Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1383746Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1384569Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1384809Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1385006Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1385397Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1385566Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1385742Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1385921Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1386146Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1386622Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1386800Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1386939Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1386970Z 2022-11-23T01:08:13.1389677Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1389816Z ================== 2022-11-23T01:08:13.1389993Z ================== 2022-11-23T01:08:13.1390261Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1390511Z  Write of size 2 at 0x7b8400006d74 by thread T2: 2022-11-23T01:08:13.1393258Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1393649Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1394002Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1394394Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1394835Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1395252Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1395462Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1395809Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1396036Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1396045Z 2022-11-23T01:08:13.1396325Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2022-11-23T01:08:13.1399329Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1399751Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1400102Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1400487Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1400905Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1401208Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1401547Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1401914Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1402263Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1403553Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1403930Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1404266Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1405713Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1406132Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1406501Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1407902Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1408349Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1409933Z #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+0x57a0418) 2022-11-23T01:08:13.1410312Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1410644Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1411089Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1411294Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1411511Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1411703Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1411978Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1412572Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1412789Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1412951Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1412996Z 2022-11-23T01:08:13.1413417Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1413716Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1413926Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1414196Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1414574Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1415405Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1415903Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1416357Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1416808Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1418769Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1419956Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1420654Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1422158Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1422489Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1422666Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1423315Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1423498Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1423707Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1424501Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1424745Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1425634Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1425883Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1426068Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1426327Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1426450Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1426571Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1426695Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1426844Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1427157Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1427276Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1427377Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1427383Z 2022-11-23T01:08:13.1427613Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1427781Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1428002Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1428327Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1428501Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1428792Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1428949Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1429141Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1429548Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1429836Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1430024Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1430216Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1430803Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1430998Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1431229Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1431894Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1432106Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1432875Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1433055Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1433199Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1433780Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1433940Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1434079Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1434338Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1434454Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1434572Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1434691Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1434873Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1435183Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1435331Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1435425Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1435431Z 2022-11-23T01:08:13.1437101Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1437175Z ================== 2022-11-23T01:08:13.1437290Z ================== 2022-11-23T01:08:13.1437459Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1437712Z  Write of size 2 at 0x7b8400006d74 by thread T3: 2022-11-23T01:08:13.1441128Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1441556Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1441947Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1442315Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1442832Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1443304Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1443577Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1443962Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1444209Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1444220Z 2022-11-23T01:08:13.1444588Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2022-11-23T01:08:13.1447401Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.1447789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1448158Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1448485Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1448938Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1451393Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1451724Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1452080Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1452426Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1453780Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1454207Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1454533Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1455697Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1455998Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1456311Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1457677Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1457996Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1459181Z #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+0x57a0418) 2022-11-23T01:08:13.1459395Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1459581Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1459838Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1459955Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1460076Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1460186Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1460335Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1460650Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1460770Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1460863Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1460870Z 2022-11-23T01:08:13.1461127Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1461299Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1461424Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1461586Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1461796Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1462237Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1462509Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1462776Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1463045Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1464143Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1464835Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1465137Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1466171Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1466460Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1466625Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1467284Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1467492Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1467702Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1468516Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1468761Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1469694Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1469911Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1470096Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1470352Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1470470Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1470588Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1470708Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1470854Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1471167Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1471285Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1471379Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1471386Z 2022-11-23T01:08:13.1471602Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.1471758Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1472017Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1472335Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1472507Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1472830Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1472985Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1473180Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1473586Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1473806Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1473992Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1474186Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1474738Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1474905Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1475131Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1475792Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1476005Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1476785Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1476991Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1477133Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1477754Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1477903Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1478056Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1478442Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1478616Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1478738Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1478931Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1479176Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1479693Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1479881Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1480036Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1480045Z 2022-11-23T01:08:13.1482903Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1483030Z ================== 2022-11-23T01:08:13.1483234Z ================== 2022-11-23T01:08:13.1483510Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1483814Z  Write of size 2 at 0x7b8400006d76 by thread T1: 2022-11-23T01:08:13.1487847Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1488357Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1488744Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1489251Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1489771Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1490249Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1490508Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1490874Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1491105Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1491115Z 2022-11-23T01:08:13.1491433Z  Previous write of size 2 at 0x7b8400006d76 by main thread: 2022-11-23T01:08:13.1495128Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1495652Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1496059Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1496598Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1497124Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1497449Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1497791Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1498162Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1498616Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1499923Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1500321Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1500650Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1501880Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1502240Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1502661Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1503538Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1503788Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1504649Z #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+0x57a0418) 2022-11-23T01:08:13.1504878Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1505060Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1505304Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1505421Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1505544Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1505666Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1505814Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1506131Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1506252Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1506345Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1506352Z 2022-11-23T01:08:13.1506593Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1506764Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1506878Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1507042Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1507249Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1507693Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1508001Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1508296Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1508563Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1509714Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1510346Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1510666Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1511692Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1512003Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1512221Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1512872Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1513054Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1513263Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1514052Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1514301Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1515155Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1515367Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1515548Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1515837Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1515951Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1516072Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1516193Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1516342Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1516681Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1516800Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1516882Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1516888Z 2022-11-23T01:08:13.1517110Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.1517276Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1517498Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1517817Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1517996Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1518289Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1518443Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1518633Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1519041Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1519261Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1519448Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1519641Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1520200Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1520364Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1520589Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1521247Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1521490Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1522285Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1522466Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1522611Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1523188Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1523337Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1523488Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1523741Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1523858Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1523977Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1524096Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1524247Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1524557Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1524676Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1524769Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1524775Z 2022-11-23T01:08:13.1527275Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1527413Z ================== 2022-11-23T01:08:13.1527478Z ================== 2022-11-23T01:08:13.1527759Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1528030Z  Write of size 2 at 0x7b8400006d76 by thread T2: 2022-11-23T01:08:13.1531681Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1532115Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1532488Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1532961Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1533473Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1533919Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1534144Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1534502Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1534719Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1534729Z 2022-11-23T01:08:13.1535058Z  Previous write of size 2 at 0x7b8400006d76 by main thread: 2022-11-23T01:08:13.1539047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1539596Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1539993Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1540449Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1591989Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1592275Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1592596Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1592835Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1593039Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1593840Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1594059Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1594370Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1595160Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1595367Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1595571Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1596349Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1596604Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1597463Z #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+0x57a0418) 2022-11-23T01:08:13.1597675Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1597856Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1598116Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1598232Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1598351Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1598471Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1598655Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1598971Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1599093Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1599187Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1599194Z 2022-11-23T01:08:13.1599450Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1599650Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1599777Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1599939Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1600148Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1600594Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1600867Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1601132Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1601402Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1602470Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1603112Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1603464Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1604529Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1604822Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1604998Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1605644Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1605825Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1606033Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1606811Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1607056Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1607941Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1608193Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1608365Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1608621Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1608737Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1608855Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1608980Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1609127Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1609439Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1609560Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1609652Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1609658Z 2022-11-23T01:08:13.1609873Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1610040Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1610250Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1610570Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1610745Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1611041Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1611196Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1611387Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1611794Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1612018Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1612202Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1612423Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1613012Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1613175Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1613401Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1614066Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1614277Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1615062Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1615244Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1615387Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1615965Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1616114Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1616266Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1616521Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1616635Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1616771Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1616893Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1617040Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1617352Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1617470Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1617562Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1617568Z 2022-11-23T01:08:13.1619517Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1619598Z ================== 2022-11-23T01:08:13.1619663Z ================== 2022-11-23T01:08:13.1619835Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1620010Z  Write of size 2 at 0x7b8400006d76 by thread T3: 2022-11-23T01:08:13.1622152Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1622411Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1622638Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1622922Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1623252Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1623523Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1623665Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1623917Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1624054Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1624062Z 2022-11-23T01:08:13.1624249Z  Previous write of size 2 at 0x7b8400006d76 by main thread: 2022-11-23T01:08:13.1626403Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.1626664Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1626889Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1627170Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1627462Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1627653Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1627856Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1628083Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1628325Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1629139Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.1629358Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.1629622Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1630383Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1630587Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1630792Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1631577Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1631822Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1632695Z #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+0x57a0418) 2022-11-23T01:08:13.1632935Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1633117Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1633401Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1633518Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1633628Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1633748Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1633895Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1634207Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1634326Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1634420Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1634426Z 2022-11-23T01:08:13.1634648Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2022-11-23T01:08:13.1634815Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1634941Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1635106Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1635301Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1635753Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1636023Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1636288Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1636555Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1637624Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1638330Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1638635Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1639665Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1639941Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1640118Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.1640777Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.1640957Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.1641164Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.1642011Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.1642255Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.1643121Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1643333Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1643513Z #21 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb751) 2022-11-23T01:08:13.1643772Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1643891Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1644012Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1645897Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1646141Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1646592Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1646761Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1646886Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1646895Z 2022-11-23T01:08:13.1647235Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.1647434Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1647659Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1648009Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1648256Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1648552Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1648705Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1648897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1649311Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1649534Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1649725Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1649918Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1650476Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1650641Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1650869Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1651572Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1651784Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1665456Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1665719Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1665975Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1666563Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1666711Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1666868Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1667128Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1667246Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1667367Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1667489Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1667639Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1667941Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1668060Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1668155Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1668162Z 2022-11-23T01:08:13.1670010Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1670091Z ================== 2022-11-23T01:08:13.1769080Z ================== 2022-11-23T01:08:13.1787026Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.1787338Z  Write of size 2 at 0x7b840001356c by main thread: 2022-11-23T01:08:13.1790264Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.1790811Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1791175Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1791634Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1792047Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1792352Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.1792688Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.1793054Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.1793411Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.1794466Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.1794712Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.1794938Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.1795325Z #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+0x6562cde) 2022-11-23T01:08:13.1795715Z #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+0x20cf997) 2022-11-23T01:08:13.1795967Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.1796168Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1796917Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1797126Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1797330Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1798056Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.1798281Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.1798742Z #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+0xca56e8) 2022-11-23T01:08:13.1799128Z #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+0x2974180) 2022-11-23T01:08:13.1799370Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.1800228Z #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+0x57a0418) 2022-11-23T01:08:13.1800466Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1800738Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.1800915Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.1801093Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.1801351Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1801467Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1801586Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1801706Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1801853Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1802167Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1802286Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1802367Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1802388Z 2022-11-23T01:08:13.1802585Z  Previous write of size 2 at 0x7b840001356c by thread T2: 2022-11-23T01:08:13.1804843Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.1805188Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.1805543Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.1805864Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.1806278Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.1806547Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.1806693Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.1806918Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.1807056Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.1807062Z 2022-11-23T01:08:13.1807290Z  Location is heap block of size 5040 at 0x7b8400012c00 allocated by main thread: 2022-11-23T01:08:13.1807445Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.1807568Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.1807728Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.1807931Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.1808374Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.1808643Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.1808907Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.1809209Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.1810291Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.1810941Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.1811243Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.1812291Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.1812567Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.1812755Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.1813052Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.1814153Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.1814496Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.1815917Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.1816245Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.1816517Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.1817678Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.1818002Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.1819229Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.1819574Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.1819772Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.1820068Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.1821187Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.1821533Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.1822598Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.1822969Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.1823241Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.1824375Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.1824694Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.1825823Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.1826113Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.1826306Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.1826455Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.1827097Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.1827276Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.1827470Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.1827673Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.1827908Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.1828127Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.1828512Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.1828900Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.1829114Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.1829316Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.1830163Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.1830373Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.1830579Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.1831311Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.1831564Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.1831996Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.1832384Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.1832626Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.1833490Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.1833703Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.1833978Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.1834193Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.1834374Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.1834632Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1834747Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1834867Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1834987Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1835134Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1835448Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1835567Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1835647Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1835654Z 2022-11-23T01:08:13.1835909Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.1836120Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.1836350Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.1836669Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.1836844Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.1837143Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.1837318Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.1837510Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.1837917Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.1838140Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.1838326Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.1838518Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.1839076Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.1839238Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.1839496Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.1840155Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.1840366Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.1841138Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.1841353Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.1841485Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.1842072Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.1842221Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.1842371Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.1842615Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.1842733Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.1842852Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.1842973Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.1843121Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.1843432Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.1843553Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.1843646Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.1843652Z 2022-11-23T01:08:13.1845340Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.1845413Z ================== 2022-11-23T01:08:13.2103133Z ================== 2022-11-23T01:08:13.2103533Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.2103914Z  Write of size 4 at 0x7b9400038358 by main thread: 2022-11-23T01:08:13.2107419Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:13.2109932Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2110502Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2111243Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2112078Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2112690Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.2113232Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.2113713Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.2114612Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.2115806Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.2117074Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.2117713Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2118717Z #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+0x6562cde) 2022-11-23T01:08:13.2119986Z #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+0x20cf997) 2022-11-23T01:08:13.2120868Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2121487Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2122877Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2124146Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2124831Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2126446Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2127908Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2128752Z #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+0xca56e8) 2022-11-23T01:08:13.2129854Z #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+0x2974180) 2022-11-23T01:08:13.2130794Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2132580Z #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+0x57a0418) 2022-11-23T01:08:13.2134194Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2134977Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2135663Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2136239Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2136929Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2137499Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2137899Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2138308Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2138876Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2139365Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2139806Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2140033Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2140191Z 2022-11-23T01:08:13.2140424Z  Previous write of size 4 at 0x7b9400038358 by thread T1: 2022-11-23T01:08:13.2142858Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:13.2144540Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2145025Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2145541Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2146102Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2146667Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.2147086Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.2147471Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.2147837Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.2148004Z 2022-11-23T01:08:13.2148217Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2022-11-23T01:08:13.2148551Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.2148816Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.2149116Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.2149486Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.2150228Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.2150964Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.2151506Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.2152047Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.2153384Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.2155191Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.2156092Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.2157469Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.2158830Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.2159295Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.2159765Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.2161155Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.2162723Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2164644Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2166865Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2167750Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2170003Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2172800Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2175470Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2178130Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2179078Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2179696Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.2181944Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.2184199Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2186326Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2188607Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2189441Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2191762Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2193787Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2195338Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2196802Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2197320Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2197677Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.2198487Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.2199264Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.2199614Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.2200021Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.2200473Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.2200932Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2201542Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.2202314Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.2202942Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2203353Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2204328Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2205253Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2205700Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2206645Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2207538Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2208200Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.2209015Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.2209621Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2210764Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.2211795Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2212290Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2212727Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2213092Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2213545Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2213921Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2214169Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2214458Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2214749Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2215232Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2215670Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2215891Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2216020Z 2022-11-23T01:08:13.2216266Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.2216611Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.2216957Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.2217504Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.2218002Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.2218597Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.2219048Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.2219417Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.2220016Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.2220511Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.2220927Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.2221319Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.2222139Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.2222854Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.2223247Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.2224159Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.2225048Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.2226040Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.2226960Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.2227410Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.2228593Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.2229760Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.2230243Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.2230891Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2231478Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2231882Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2232242Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2232711Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2233458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2234179Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2234530Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2234697Z 2022-11-23T01:08:13.2237081Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.2238612Z ================== 2022-11-23T01:08:13.2238814Z ================== 2022-11-23T01:08:13.2239169Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.2239658Z  Write of size 4 at 0x7b9400038360 by main thread: 2022-11-23T01:08:13.2242871Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:13.2245629Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2246252Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2246970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2247973Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2248730Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.2249259Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.2249878Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.2250506Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.2251854Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.2253134Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.2253776Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2254849Z #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+0x6562cde) 2022-11-23T01:08:13.2256237Z #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+0x20cf997) 2022-11-23T01:08:13.2256952Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2257426Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2258604Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2259534Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2260038Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2260967Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2261877Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2262542Z #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+0xca56e8) 2022-11-23T01:08:13.2263397Z #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+0x2974180) 2022-11-23T01:08:13.2264019Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2265128Z #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+0x57a0418) 2022-11-23T01:08:13.2266161Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2266663Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2267124Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2267496Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2267934Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2268317Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2268577Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2268841Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2269148Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2269703Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2270147Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2270386Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2270505Z 2022-11-23T01:08:13.2270727Z  Previous write of size 4 at 0x7b9400038360 by thread T1: 2022-11-23T01:08:13.2273056Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:13.2274734Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2275224Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2275742Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2276317Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2276885Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.2277293Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.2277711Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.2278081Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.2278248Z 2022-11-23T01:08:13.2278469Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2022-11-23T01:08:13.2278792Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.2279059Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.2279392Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.2279780Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.2280426Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.2281126Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.2281663Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.2282200Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.2283587Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.2285333Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.2286233Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.2288116Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.2290218Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.2290927Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.2291709Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.2293787Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.2296043Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2297948Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2300210Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2301087Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2303280Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2305809Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2308060Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2310528Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2311182Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2311959Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.2314270Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.2316870Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2318637Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2320070Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2320626Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2322063Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2323589Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2324996Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2326492Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2326971Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2327327Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.2328132Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.2328906Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.2329260Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.2329673Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.2330124Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.2330581Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2331218Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.2331980Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.2332583Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2332996Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2333961Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2334912Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2335322Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2336251Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2337174Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2337821Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.2338732Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.2339353Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2340528Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.2341545Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2342044Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2342528Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2342893Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2343343Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2343725Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2343974Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2344234Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2344525Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2345005Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2345432Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2345668Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2345798Z 2022-11-23T01:08:13.2346042Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.2346381Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.2346727Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.2347277Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.2347773Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.2348518Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.2349190Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.2349796Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.2350824Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.2351482Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.2352008Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.2352620Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.2353716Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.2354773Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.2355385Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.2356887Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.2358152Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.2359741Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.2361421Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.2362041Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.2363396Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.2364640Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.2365188Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.2365992Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2366703Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2367179Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2367632Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2368056Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2368753Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2369533Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2369952Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2370183Z 2022-11-23T01:08:13.2373335Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.2375253Z ================== 2022-11-23T01:08:13.2375537Z ================== 2022-11-23T01:08:13.2376030Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.2376611Z  Write of size 4 at 0x7b9400038364 by main thread: 2022-11-23T01:08:13.2380229Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:13.2381856Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2382412Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2382931Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2383513Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2383997Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.2384401Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.2384836Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.2385287Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.2386265Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.2387185Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.2387644Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2388255Z #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+0x6562cde) 2022-11-23T01:08:13.2389028Z #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+0x20cf997) 2022-11-23T01:08:13.2389692Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2390124Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2391123Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2392045Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2392467Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2393394Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2394320Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2394974Z #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+0xca56e8) 2022-11-23T01:08:13.2395791Z #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+0x2974180) 2022-11-23T01:08:13.2396418Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2397521Z #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+0x57a0418) 2022-11-23T01:08:13.2398544Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2399038Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2399523Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2399887Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2400325Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2400707Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2400964Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2401227Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2401503Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2401984Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2402427Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2402661Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2402777Z 2022-11-23T01:08:13.2402976Z  Previous write of size 4 at 0x7b9400038364 by thread T1: 2022-11-23T01:08:13.2405336Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:13.2406950Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2407438Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2407949Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2408527Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2409089Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.2409490Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.2409910Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.2410281Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.2410447Z 2022-11-23T01:08:13.2410672Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2022-11-23T01:08:13.2410993Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.2411255Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.2411558Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.2411942Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.2412602Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.2413322Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.2413859Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.2414395Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.2415764Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.2417514Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.2418461Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.2419900Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.2421335Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.2421785Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.2422254Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.2423660Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.2425138Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2426572Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2427979Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2428529Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2430007Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2431569Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2432989Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2434453Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2434938Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2435441Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.2436855Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.2438363Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2439720Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2441139Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2441688Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2443132Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2444650Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2446096Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2447549Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2448027Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2448378Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.2449186Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.2449961Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.2450313Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.2450748Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.2451196Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.2451661Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2452274Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.2453047Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.2453634Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2454074Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2455036Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2455968Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2456371Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2457304Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2458208Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2458938Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.2459793Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.2460423Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2461550Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.2462629Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2463126Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2463571Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2463941Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2464395Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2464778Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2465027Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2465291Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2465584Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2466071Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2466499Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2466738Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2466868Z 2022-11-23T01:08:13.2467101Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.2467441Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.2467792Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.2468342Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.2468840Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.2469377Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.2469904Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.2470434Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.2471056Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.2471551Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.2471968Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.2472361Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.2473125Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.2473863Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.2474258Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.2475169Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.2476020Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.2477006Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.2477921Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.2478246Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.2479014Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.2479723Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.2480041Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.2480467Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2480847Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2481099Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2481362Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2481653Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2482161Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2482589Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2482821Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2482949Z 2022-11-23T01:08:13.2484629Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.2485660Z ================== 2022-11-23T01:08:13.2485827Z ================== 2022-11-23T01:08:13.2486097Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.2486407Z  Write of size 4 at 0x7b9400038368 by main thread: 2022-11-23T01:08:13.2488742Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:13.2490379Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2490858Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2491373Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2491949Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2492462Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.2492854Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.2493298Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.2493751Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.2494690Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.2495615Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.2496082Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2496696Z #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+0x6562cde) 2022-11-23T01:08:13.2497466Z #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+0x20cf997) 2022-11-23T01:08:13.2498095Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2498610Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2499575Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2500496Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2500919Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2501893Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2502800Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2503465Z #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+0xca56e8) 2022-11-23T01:08:13.2504266Z #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+0x2974180) 2022-11-23T01:08:13.2504892Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2506034Z #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+0x57a0418) 2022-11-23T01:08:13.2507071Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2507569Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2508023Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2508376Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2508824Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2509207Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2509464Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2509805Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2510135Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2510619Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2511062Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2511284Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2511414Z 2022-11-23T01:08:13.2511611Z  Previous write of size 4 at 0x7b9400038368 by thread T1: 2022-11-23T01:08:13.2513896Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:13.2515503Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2515985Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2516497Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2517091Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2517654Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.2518061Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.2518448Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.2518583Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.2518589Z 2022-11-23T01:08:13.2518808Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2022-11-23T01:08:13.2518976Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.2519099Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.2519278Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.2519480Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.2519927Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.2520200Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.2520462Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.2520732Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.2521815Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.2522466Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.2522785Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.2523807Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.2524120Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.2524310Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.2524580Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.2525698Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.2526034Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2527099Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2527414Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2527684Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2528812Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2529140Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2530269Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2530560Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2530754Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2531055Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.2532165Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.2532500Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2533546Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2533862Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2534137Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2535267Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2535618Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2536722Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2537012Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2537207Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2537354Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.2538033Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.2538190Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.2538384Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.2538677Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.2538916Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.2539136Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2539521Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.2539957Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.2540169Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2540373Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2541126Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2541337Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2541543Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2542266Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2542525Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2542955Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.2543339Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.2543581Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2544438Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.2544681Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2544956Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2545132Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2545312Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2545569Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2545685Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2545805Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2545925Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2546076Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2546392Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2546515Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2546597Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2546602Z 2022-11-23T01:08:13.2546825Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.2546993Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.2547245Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.2547565Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.2547743Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.2548041Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.2548198Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.2548393Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.2548802Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.2549058Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.2549243Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.2549437Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.2550065Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.2550236Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.2550463Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.2551128Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.2551341Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.2552146Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.2552333Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.2552477Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.2553059Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.2553222Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.2553363Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.2553664Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2553781Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2553902Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2554023Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2554176Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2554491Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2554613Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2554715Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2554722Z 2022-11-23T01:08:13.2556382Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.2556459Z ================== 2022-11-23T01:08:13.2556526Z ================== 2022-11-23T01:08:13.2556696Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.2556861Z  Write of size 4 at 0x7b940003836c by main thread: 2022-11-23T01:08:13.2559049Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:13.2559316Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2559569Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2559855Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2560145Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2560342Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.2560546Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.2560777Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.2560992Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.2561710Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.2561953Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.2562172Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2562583Z #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+0x6562cde) 2022-11-23T01:08:13.2562972Z #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+0x20cf997) 2022-11-23T01:08:13.2563186Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2563389Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2564143Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2564387Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2564579Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2565296Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2565524Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2565955Z #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+0xca56e8) 2022-11-23T01:08:13.2566341Z #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+0x2974180) 2022-11-23T01:08:13.2566580Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2567474Z #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+0x57a0418) 2022-11-23T01:08:13.2567690Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2567965Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2568142Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2568362Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2568616Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2568731Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2568850Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2568971Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2569121Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2569437Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2569557Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2569649Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2569655Z 2022-11-23T01:08:13.2569829Z  Previous write of size 4 at 0x7b940003836c by thread T1: 2022-11-23T01:08:13.2572007Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:13.2572295Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.2572519Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.2572804Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.2573089Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.2573357Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.2573499Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.2573753Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.2573889Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.2573894Z 2022-11-23T01:08:13.2574112Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2022-11-23T01:08:13.2574264Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.2574387Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.2574545Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.2574751Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.2575192Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.2575461Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.2575726Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.2575993Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.2577105Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.2577731Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.2578040Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.2579206Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.2579481Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.2579668Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.2579941Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.2581104Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.2581416Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2582479Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2582789Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2583059Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2584201Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2584522Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2585657Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2585949Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2586179Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2586479Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.2587575Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.2587896Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.2588969Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.2589244Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.2589512Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.2590740Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.2591092Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.2592190Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.2592479Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.2592697Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.2592847Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.2593489Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.2593644Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.2593844Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.2594046Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.2594308Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.2594528Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.2594915Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.2595303Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.2595518Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.2595719Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.2596474Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.2596681Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.2596885Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.2597620Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.2597857Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.2598286Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.2598695Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.2598935Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.2599801Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.2600013Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.2600287Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.2600462Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.2600644Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.2600899Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2601014Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2601135Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2601254Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2601402Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2601738Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2601848Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2601941Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2601947Z 2022-11-23T01:08:13.2602171Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.2602337Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.2602556Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.2602876Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.2603048Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.2603342Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.2603525Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.2603716Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.2604122Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.2604345Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.2604534Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.2604728Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.2605288Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.2605455Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.2605682Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.2606344Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.2606583Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.2607349Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.2607531Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.2607673Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.2608246Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.2608443Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.2608595Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.2608855Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.2608970Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.2609093Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.2609213Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.2609363Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.2609675Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.2609793Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.2609887Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.2609893Z 2022-11-23T01:08:13.2611571Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.2611648Z ================== 2022-11-23T01:08:13.4046046Z ================== 2022-11-23T01:08:13.4046559Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.4046953Z  Write of size 8 at 0x7ba4000383b0 by main thread: 2022-11-23T01:08:13.4051068Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:13.4051687Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.4052073Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.4052627Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.4053116Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.4053440Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.4053776Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.4054171Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:13.4054522Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.4055823Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.4056329Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.4056720Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.4057416Z #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+0x6562cde) 2022-11-23T01:08:13.4058119Z #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+0x20cf997) 2022-11-23T01:08:13.4058667Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.4059069Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.4060229Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.4060601Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.4060981Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.4061998Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.4062348Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.4063057Z #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+0xca56e8) 2022-11-23T01:08:13.4063871Z #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+0x2974180) 2022-11-23T01:08:13.4064203Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.4065767Z #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+0x57a0418) 2022-11-23T01:08:13.4066177Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.4066683Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.4066991Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.4067341Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.4067772Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4067993Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4068196Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4068386Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4068703Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4069112Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4069263Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4069411Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4069422Z 2022-11-23T01:08:13.4069827Z  Previous write of size 8 at 0x7ba4000383b0 by thread T3: 2022-11-23T01:08:13.4073663Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:13.4074608Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.4074995Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.4075451Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.4075989Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.4076420Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.4076630Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.4076979Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.4077184Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.4077193Z 2022-11-23T01:08:13.4077586Z  Location is heap block of size 20160 at 0x7ba400037000 allocated by main thread: 2022-11-23T01:08:13.4077860Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.4078051Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.4078290Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.4078613Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.4079371Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.4079824Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.4080240Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.4080688Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.4082567Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.4083238Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.4083641Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.4084761Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.4085278Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.4085626Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.4085917Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.4087119Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.4087433Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.4088541Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.4088821Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.4089092Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.4090259Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.4090582Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.4091714Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.4092051Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.4092244Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.4092538Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.4093634Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.4093943Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.4095032Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.4095312Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.4095610Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.4096750Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.4097074Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.4098270Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.4098708Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.4098907Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.4099043Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.4099700Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.4099946Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.4100141Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.4100345Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.4100582Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.4100803Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.4101193Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.4101584Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.4101800Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.4102002Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.4102795Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.4103003Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.4103212Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.4103920Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.4104174Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.4104614Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.4104999Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.4105240Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.4106102Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.4106315Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.4106588Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.4106764Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.4106945Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.4107230Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4107352Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4107474Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4107597Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4107732Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4108042Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4108163Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4108258Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4108264Z 2022-11-23T01:08:13.4108504Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.4108674Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.4108943Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.4109260Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.4109436Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.4109809Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.4109964Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.4110159Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.4110572Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.4110794Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.4110979Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.4111247Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.4111806Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.4111972Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.4112198Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.4112893Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.4113106Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.4113880Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.4114091Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.4114233Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.4114812Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.4114961Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.4115111Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.4115370Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4115485Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4115605Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4115727Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4115878Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4116187Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4116307Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4116389Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4116407Z 2022-11-23T01:08:13.4118113Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:13.4118185Z ================== 2022-11-23T01:08:13.4514279Z ================== 2022-11-23T01:08:13.4514696Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.4515148Z  Write of size 8 at 0x7ba400039758 by main thread: 2022-11-23T01:08:13.4519557Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:13.4520211Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.4520482Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.4520922Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.4521327Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.4521598Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.4521940Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.4522286Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:13.4522626Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.4523898Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.4524347Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.4524740Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.4525397Z #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+0x6562cde) 2022-11-23T01:08:13.4526010Z #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+0x20cf997) 2022-11-23T01:08:13.4526404Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.4526733Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.4527828Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.4528070Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.4528383Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.4529554Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.4530095Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.4530851Z #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+0xca56e8) 2022-11-23T01:08:13.4531524Z #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+0x2974180) 2022-11-23T01:08:13.4531922Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.4533377Z #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+0x57a0418) 2022-11-23T01:08:13.4533794Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.4534263Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.4534545Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.4534861Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.4535329Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4535524Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4535742Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4535940Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4536187Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4536678Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4536871Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4537043Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4537059Z 2022-11-23T01:08:13.4537425Z  Previous write of size 8 at 0x7ba400039758 by thread T3: 2022-11-23T01:08:13.4541460Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:13.4542013Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.4542401Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.4542876Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.4544764Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.4545223Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.4545473Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.4545851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.4546081Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.4546091Z 2022-11-23T01:08:13.4546508Z  Location is heap block of size 20160 at 0x7ba400037000 allocated by main thread: 2022-11-23T01:08:13.4546782Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.4546997Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.4547270Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.4547605Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.4548397Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.4548948Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.4549443Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.4550055Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.4552050Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.4553117Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.4553578Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.4555320Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.4555854Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.4556201Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.4556724Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.4558820Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.4559434Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.4561445Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.4561949Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.4562402Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.4564534Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.4564923Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.4566046Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.4566355Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.4566553Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.4566851Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.4567966Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.4568277Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.4569345Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.4569649Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.4569918Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.4571062Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.4571382Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.4572485Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.4572790Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.4572994Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.4573141Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.4573801Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.4573952Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.4574154Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.4574343Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.4574578Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.4574797Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.4575186Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.4575594Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.4575807Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.4576029Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.4576785Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.4576995Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.4577200Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.4577937Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.4578164Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.4578766Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.4579450Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.4579913Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.4580892Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.4581363Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.4581848Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e32b5) 2022-11-23T01:08:13.4582171Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.4582506Z #59 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cb90c) 2022-11-23T01:08:13.4582912Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4583128Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4583338Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4583565Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4583725Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4584081Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4584199Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4584292Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4584299Z 2022-11-23T01:08:13.4584546Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.4584715Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.4584937Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.4585258Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.4585435Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.4585729Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.4585879Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.4586070Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.4586479Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.4586690Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.4586875Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.4587066Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.4587653Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.4587830Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.4588042Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.4588718Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.4588956Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.4589797Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.4589974Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.4590118Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.4590693Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.4590845Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.4590998Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.4591254Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.4591372Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.4591490Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.4591611Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.4591759Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.4592059Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.4592210Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.4592305Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.4592312Z 2022-11-23T01:08:13.4593983Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:13.4594097Z ================== 2022-11-23T01:08:13.6600905Z [ OK ] LazyOpsTest.TestOneIndexPutTransfer (967 ms) 2022-11-23T01:08:13.6601121Z [ RUN ] LazyOpsTest.TestMultiIndexPut 2022-11-23T01:08:13.6629964Z ================== 2022-11-23T01:08:13.6630436Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6630739Z  Write of size 4 at 0x7b9400028cd8 by thread T3: 2022-11-23T01:08:13.6634921Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:13.6635418Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6635835Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6636344Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6637072Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6637380Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.6637558Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.6637773Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.6637912Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.6637919Z 2022-11-23T01:08:13.6638115Z  Previous write of size 4 at 0x7b9400028cd8 by main thread: 2022-11-23T01:08:13.6640297Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:13.6640628Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6640850Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6641135Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6641425Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6641618Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.6641823Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.6642050Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.6642264Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.6643075Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.6643294Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.6643498Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.6644251Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.6644484Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.6644757Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.6645648Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6645899Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6647269Z #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+0x57a0418) 2022-11-23T01:08:13.6647598Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6648121Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6648573Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6648738Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6648859Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6649013Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6649232Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6649708Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6649957Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6650107Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6650118Z 2022-11-23T01:08:13.6650461Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:13.6650735Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.6650933Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.6651208Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.6651474Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.6652189Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.6652624Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.6652986Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.6653395Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.6655108Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.6656109Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.6656567Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.6658037Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.6658320Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.6658691Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.6659717Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.6660016Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.6660352Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.6661672Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6662057Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6663455Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.6663859Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6664136Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6664547Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6664695Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6664818Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6664926Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6665075Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6665484Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6665668Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6665807Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6665819Z 2022-11-23T01:08:13.6666171Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.6666408Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.6666747Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.6667209Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.6667471Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.6667952Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.6668184Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.6668477Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.6669107Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.6669448Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.6669787Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.6670031Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.6670906Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.6671220Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.6671579Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.6672481Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.6672697Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.6673573Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.6673858Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.6674079Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.6674983Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.6675230Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.6675401Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.6675660Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6675776Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6675894Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6676015Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6676165Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6676478Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6676631Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6676713Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6676719Z 2022-11-23T01:08:13.6678853Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.6678931Z ================== 2022-11-23T01:08:13.6679037Z ================== 2022-11-23T01:08:13.6679309Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6679589Z  Write of size 4 at 0x7b9400028ce0 by thread T3: 2022-11-23T01:08:13.6682724Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:13.6683145Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6683477Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6683870Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6684348Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6684665Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.6684841Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.6685148Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.6685305Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.6685314Z 2022-11-23T01:08:13.6685552Z  Previous write of size 4 at 0x7b9400028ce0 by main thread: 2022-11-23T01:08:13.6688987Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:13.6689425Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6689866Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6690426Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6690933Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6691257Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.6691566Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.6691910Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.6692228Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.6693133Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.6693401Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.6693603Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.6694360Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.6694564Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.6694766Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.6695565Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6695916Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6696837Z #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+0x57a0418) 2022-11-23T01:08:13.6697121Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6697413Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6697660Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6724044Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6724353Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6724595Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6724866Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6725479Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6725724Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6725905Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6725916Z 2022-11-23T01:08:13.6726385Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:13.6726684Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.6726911Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.6727208Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.6727590Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.6728416Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.6728855Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.6729481Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.6729980Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.6732020Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.6733176Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.6733751Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.6735747Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.6736273Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.6736600Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.6737840Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.6738208Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.6738727Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.6740149Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6740660Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6742221Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.6742629Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6742944Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6743414Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6743628Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6743845Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6744075Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6744352Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6744945Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6745225Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6745402Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6745413Z 2022-11-23T01:08:13.6745806Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.6746138Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.6746514Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.6746839Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.6747016Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.6747319Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.6747514Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.6747706Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.6748123Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.6748343Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.6748527Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.6748720Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.6749273Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.6749453Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.6749824Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.6750595Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.6755165Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.6756554Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.6756880Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.6757112Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.6758007Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.6758296Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.6758532Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.6758953Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6759131Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6759326Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6759521Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6759786Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6760318Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6760509Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6760657Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6760668Z 2022-11-23T01:08:13.6763688Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.6763813Z ================== 2022-11-23T01:08:13.6763907Z ================== 2022-11-23T01:08:13.6764188Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6764475Z  Write of size 4 at 0x7b9400028ce4 by thread T3: 2022-11-23T01:08:13.6767993Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:13.6768312Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6768532Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6768816Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6769108Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6769373Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.6769509Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.6769727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.6769857Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.6769866Z 2022-11-23T01:08:13.6770067Z  Previous write of size 4 at 0x7b9400028ce4 by main thread: 2022-11-23T01:08:13.6772343Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:13.6772738Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6773109Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6775221Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6775590Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6775836Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.6776197Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.6776624Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.6776880Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.6777657Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.6777872Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.6778072Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.6779050Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.6779254Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.6779456Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.6780226Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6780540Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6781394Z #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+0x57a0418) 2022-11-23T01:08:13.6781610Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6781767Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6782027Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6782143Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6782264Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6782383Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6782533Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6782844Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6782962Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6783053Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6783059Z 2022-11-23T01:08:13.6783370Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:13.6783586Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.6783748Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.6783909Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.6784184Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.6784933Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.6785426Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.6785700Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.6786003Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.6787083Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.6787710Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.6788013Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.6789072Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.6789348Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.6789524Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.6790309Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.6790523Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.6790734Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.6791502Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6791747Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6792641Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.6792853Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6793022Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6793275Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6793391Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6793511Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6793633Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6793778Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6794089Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6794206Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6794337Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6794343Z 2022-11-23T01:08:13.6794566Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.6794723Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.6794943Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.6795256Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.6795432Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.6795722Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.6795876Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.6796066Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.6796474Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.6796696Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.6796879Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.6797070Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.6797624Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.6797815Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.6798038Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.6798700Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.6798911Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.6799694Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.6799901Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.6800046Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.6800620Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.6800764Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.6800911Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.6801164Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6801270Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6801389Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6801507Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6801651Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6802009Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6802132Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6802249Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6802256Z 2022-11-23T01:08:13.6804887Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.6805006Z ================== 2022-11-23T01:08:13.6805111Z ================== 2022-11-23T01:08:13.6805395Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6805690Z  Write of size 4 at 0x7b9400028ce8 by thread T3: 2022-11-23T01:08:13.6809215Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:13.6809669Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6809917Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6810316Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6810770Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6811151Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.6811361Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.6811725Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.6811942Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.6811951Z 2022-11-23T01:08:13.6812233Z  Previous write of size 4 at 0x7b9400028ce8 by main thread: 2022-11-23T01:08:13.6815621Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:13.6816077Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6816309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6816631Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6817010Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6817296Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.6817580Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.6817886Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.6818205Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.6819393Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.6819734Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.6820013Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.6821123Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.6821443Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.6821673Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.6822558Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6822852Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6823739Z #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+0x57a0418) 2022-11-23T01:08:13.6823954Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6824124Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6824467Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6824640Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6824845Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6825082Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6825366Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6825775Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6825896Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6825989Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6825996Z 2022-11-23T01:08:13.6826241Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:13.6826411Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.6826536Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.6826722Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.6826935Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.6827381Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.6827669Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.6827933Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.6828204Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.6829267Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.6829991Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.6830318Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.6831350Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.6831664Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.6831840Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.6832486Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.6832672Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.6832879Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.6833695Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6833936Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6834804Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.6835054Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6835222Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6835476Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6835590Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6835709Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6835828Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6835977Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6836292Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6836411Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6836491Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6836508Z 2022-11-23T01:08:13.6836719Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.6836886Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.6837107Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.6837422Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.6837596Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.6837891Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.6838042Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.6838233Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.6838667Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.6838888Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.6839074Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.6839263Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.6839818Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.6839984Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.6840235Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.6840895Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.6841104Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.6841877Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.6842057Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.6842198Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.6842790Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.6842939Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.6843105Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.6843360Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6843477Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6843596Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6843715Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6843865Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6844177Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6844295Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6844389Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6844395Z 2022-11-23T01:08:13.6846072Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.6846172Z ================== 2022-11-23T01:08:13.6846289Z ================== 2022-11-23T01:08:13.6846458Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6846635Z  Write of size 4 at 0x7b9400028cec by thread T3: 2022-11-23T01:08:13.6848777Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:13.6849043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6849314Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6849595Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6849885Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6850152Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.6850296Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.6850520Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.6850686Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.6850693Z 2022-11-23T01:08:13.6850882Z  Previous write of size 4 at 0x7b9400028cec by main thread: 2022-11-23T01:08:13.6853029Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:13.6853295Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.6853516Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.6853801Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.6854093Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.6854284Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.6854513Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.6854743Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.6854958Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.6855751Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.6855993Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.6856192Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.6856943Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.6857149Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.6857354Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.6858132Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6858377Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6859428Z #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+0x57a0418) 2022-11-23T01:08:13.6859645Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6859818Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6860073Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6860227Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6860335Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6860456Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6860604Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6860917Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6861036Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6861131Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6861137Z 2022-11-23T01:08:13.6861370Z  Location is heap block of size 10080 at 0x7b9400028000 allocated by main thread: 2022-11-23T01:08:13.6861539Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.6861664Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.6861827Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.6862019Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.6862474Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.6862744Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.6863010Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.6863274Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.6864374Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.6865017Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.6865345Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.6866374Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.6866651Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.6866832Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.6867507Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.6867699Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.6867899Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.6868675Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.6868953Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.6869914Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.6870131Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.6870301Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.6870558Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6870679Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6870802Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6870923Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6871073Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6871387Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6871509Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6871603Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6871610Z 2022-11-23T01:08:13.6871813Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.6871978Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.6872234Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.6872556Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.6872732Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.6873028Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.6873180Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.6873368Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.6873777Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.6874028Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.6874215Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.6874407Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.6874966Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.6875130Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.6875353Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.6876010Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.6876218Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.6877009Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.6877195Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.6877327Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.6877917Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.6878065Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.6878215Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.6878488Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.6878606Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.6878727Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.6878848Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.6878998Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.6879314Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.6879434Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.6879529Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.6879535Z 2022-11-23T01:08:13.6881186Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.6881260Z ================== 2022-11-23T01:08:13.6963408Z ================== 2022-11-23T01:08:13.6963807Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.6964094Z  Write of size 4 at 0x7b940003ccd8 by thread T1: 2022-11-23T01:08:13.7021282Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:13.7021848Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7022391Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7022984Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7023511Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7024008Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7024251Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7024675Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7024895Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7024918Z 2022-11-23T01:08:13.7025126Z  Previous write of size 4 at 0x7b940003ccd8 by main thread: 2022-11-23T01:08:13.7028760Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:13.7029131Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7029549Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7029991Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7030286Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7030483Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7030687Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7030964Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.7031179Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7032069Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7032414Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7032708Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7033355Z #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+0x6562cde) 2022-11-23T01:08:13.7034073Z #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+0x20cf997) 2022-11-23T01:08:13.7034387Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7034591Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7035403Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7035801Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7036188Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7037081Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7037550Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7038347Z #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+0xca56e8) 2022-11-23T01:08:13.7038788Z #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+0x2974180) 2022-11-23T01:08:13.7039190Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7040796Z #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+0x57a0418) 2022-11-23T01:08:13.7041196Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7041708Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7042025Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7042204Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7042620Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7042820Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7043044Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7043251Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7043533Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7044050Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7044298Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7044472Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7044484Z 2022-11-23T01:08:13.7044924Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2022-11-23T01:08:13.7045223Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7045461Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7045733Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7045948Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7046549Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7047051Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7047331Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7047598Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7048717Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7049344Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7049648Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7050716Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7050988Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7051176Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7051446Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7052573Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7052895Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7053966Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7054283Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7054552Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7055691Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7056010Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7057136Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7057424Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7057641Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7057938Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7059190Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7059516Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7060614Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7060894Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7061162Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7062307Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7062658Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7063771Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7064059Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7064278Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7064428Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7065068Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7065224Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7065427Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7065628Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7065889Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7066107Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7066495Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7066886Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7067103Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7067302Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7068056Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7068263Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7068470Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7069202Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7069431Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7069938Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7070325Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7070594Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7071461Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7071674Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7071940Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7072116Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7072284Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7072546Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7072663Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7072783Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7072905Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7073041Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7073385Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7073509Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7073603Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7073609Z 2022-11-23T01:08:13.7073836Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.7074000Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7074221Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7074537Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7074712Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7075010Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7075192Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7075384Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7075795Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7076018Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7076207Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7076398Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7076957Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7077124Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7077459Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7078415Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7078789Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7079730Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7079915Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7080120Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7080973Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7081251Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7081497Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7081831Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7082005Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7082195Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7082384Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7082545Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7083090Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7083311Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7083465Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7083489Z 2022-11-23T01:08:13.7085899Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.7085974Z ================== 2022-11-23T01:08:13.7086071Z ================== 2022-11-23T01:08:13.7086323Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7086532Z  Write of size 4 at 0x7b940003cce0 by thread T1: 2022-11-23T01:08:13.7090041Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:13.7090620Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7090984Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7091453Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7091951Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7092421Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7092646Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7093019Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7093219Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7093227Z 2022-11-23T01:08:13.7093447Z  Previous write of size 4 at 0x7b940003cce0 by main thread: 2022-11-23T01:08:13.7096740Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:13.7097216Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7097504Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7097987Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7098626Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7098980Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7099230Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7099504Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.7099855Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7101067Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7101446Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7101813Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7102340Z #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+0x6562cde) 2022-11-23T01:08:13.7102945Z #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+0x20cf997) 2022-11-23T01:08:13.7103256Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7103565Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7104692Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7104948Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7105156Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7105880Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7106104Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7106529Z #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+0xca56e8) 2022-11-23T01:08:13.7106916Z #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+0x2974180) 2022-11-23T01:08:13.7107155Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7108059Z #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+0x57a0418) 2022-11-23T01:08:13.7108271Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7108531Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7108705Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7108873Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7109128Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7109271Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7109389Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7109510Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7109729Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7110042Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7110161Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7110244Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7110251Z 2022-11-23T01:08:13.7110492Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2022-11-23T01:08:13.7110661Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7110784Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7110942Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7111146Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7111596Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7111863Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7112130Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7112395Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7113508Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7114137Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7114465Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7115509Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7115783Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7115970Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7116241Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7117376Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7117691Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7118790Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7119066Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7119339Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7120501Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7120826Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7121923Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7122251Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7122447Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7122745Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7123840Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7124147Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7125231Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7125509Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7125816Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7126956Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7127279Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7128385Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7128688Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7128881Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7129029Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7129669Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7129850Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7130045Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7130245Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7130482Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7130701Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7131087Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7131474Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7131690Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7131891Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7132668Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7132869Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7133075Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7133783Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7134043Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7134468Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7134855Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7135095Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7135971Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7136187Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7136555Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7136797Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7137034Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7137399Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7137556Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7137717Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7137907Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7138128Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7157201Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7158371Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7158895Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7159138Z 2022-11-23T01:08:13.7159456Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.7160050Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7160732Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7161866Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7162624Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7163155Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7163698Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7164336Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7165327Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7165826Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7166239Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7166651Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7168062Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7168961Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7169368Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7170425Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7171285Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7172278Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7173230Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7173570Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7174313Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7175029Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7175330Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7175763Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7176140Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7176395Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7176642Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7176934Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7177415Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7177920Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7178141Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7178269Z 2022-11-23T01:08:13.7180242Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.7181295Z ================== 2022-11-23T01:08:13.7181462Z ================== 2022-11-23T01:08:13.7181718Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7182037Z  Write of size 4 at 0x7b940003cce4 by thread T1: 2022-11-23T01:08:13.7184329Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:13.7186001Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7186486Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7187006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7187568Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7188186Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7188631Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7189017Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7189384Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7189548Z 2022-11-23T01:08:13.7189791Z  Previous write of size 4 at 0x7b940003cce4 by main thread: 2022-11-23T01:08:13.7192125Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:13.7193801Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7194291Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7194803Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7195382Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7195867Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7196260Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7196698Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.7197145Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7198078Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7199006Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7199498Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7200115Z #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+0x6562cde) 2022-11-23T01:08:13.7200961Z #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+0x20cf997) 2022-11-23T01:08:13.7202212Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7202986Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7204691Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7206442Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7207191Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7208864Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7210466Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7211665Z #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+0xca56e8) 2022-11-23T01:08:13.7213130Z #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+0x2974180) 2022-11-23T01:08:13.7214265Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7216291Z #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+0x57a0418) 2022-11-23T01:08:13.7218148Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7219109Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7219895Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7220527Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7221298Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7221951Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7222406Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7222847Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7223357Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7224231Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7225010Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7225402Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7225614Z 2022-11-23T01:08:13.7226051Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2022-11-23T01:08:13.7226648Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7227121Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7227642Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7228303Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7229495Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7230849Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7231772Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7232313Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7233647Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7235463Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7236367Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7237705Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7239122Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7239588Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7240051Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7241437Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7242950Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7244317Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7245736Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7246283Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7247707Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7249239Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7250656Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7252156Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7252632Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7253121Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7254565Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7256040Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7257412Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7258953Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7259511Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7260930Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7262448Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7263915Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7265354Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7265834Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7266223Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7267036Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7267807Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7268171Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7268580Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7269012Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7269469Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7270162Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7270936Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7271539Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7271962Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7272960Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7273889Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7274310Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7275233Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7276182Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7276841Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7277663Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7278283Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7279399Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7280451Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7280938Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7281387Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7281738Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7282166Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7282545Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7282976Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7283239Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7283519Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7284002Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7284472Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7284707Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7284834Z 2022-11-23T01:08:13.7285058Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.7285394Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7285767Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7286318Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7286812Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7287279Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7287733Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7288101Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7288712Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7289198Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7289602Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7289989Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7290786Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7291494Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7291901Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7292802Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7293655Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7294679Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7295604Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7295937Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7296676Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7297374Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7297693Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7298107Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7298592Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7298853Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7299116Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7299396Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7299877Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7300310Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7300594Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7300726Z 2022-11-23T01:08:13.7302507Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.7303542Z ================== 2022-11-23T01:08:13.7303697Z ================== 2022-11-23T01:08:13.7304006Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7304326Z  Write of size 4 at 0x7b940003cce8 by thread T1: 2022-11-23T01:08:13.7306646Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:13.7308287Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7308763Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7309279Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7309955Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7310515Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7310971Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7311359Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7311716Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7311882Z 2022-11-23T01:08:13.7312074Z  Previous write of size 4 at 0x7b940003cce8 by main thread: 2022-11-23T01:08:13.7314376Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:13.7316035Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7316525Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7317041Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7317615Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7318091Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7318496Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7318939Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.7319390Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7320353Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7321283Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7321744Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7322358Z #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+0x6562cde) 2022-11-23T01:08:13.7323131Z #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+0x20cf997) 2022-11-23T01:08:13.7323750Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7324162Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7325141Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7326060Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7326463Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7327401Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7328315Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7329004Z #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+0xca56e8) 2022-11-23T01:08:13.7329820Z #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+0x2974180) 2022-11-23T01:08:13.7330431Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7332171Z #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+0x57a0418) 2022-11-23T01:08:13.7334075Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7334967Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7335742Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7336377Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7337155Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7337835Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7338278Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7338838Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7339366Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7340220Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7341044Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7341454Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7341680Z 2022-11-23T01:08:13.7342097Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2022-11-23T01:08:13.7342699Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7343134Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7343669Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7344340Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7345632Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7346904Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7347886Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7348847Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7351390Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7353987Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7354905Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7356290Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7357680Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7358143Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7358617Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7359997Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7361507Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7362871Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7364293Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7364874Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7366280Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7367827Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7369241Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7370701Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7371174Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7371683Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7373955Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7376574Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7379200Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7381814Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7382799Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7385353Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7388113Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7390758Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7393433Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7393935Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7394288Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7395106Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7395887Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7396255Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7396671Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7397119Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7397576Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7398191Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7399002Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7399611Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7400031Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7400999Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7401946Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7402361Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7403288Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7404201Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7404864Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7405674Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7406301Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7407451Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7408483Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7408964Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7409410Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7409762Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7410201Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7410601Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7410861Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7411122Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7411415Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7412126Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7412824Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7413260Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7413497Z 2022-11-23T01:08:13.7413922Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.7414500Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7415147Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7416147Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7417009Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7417898Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7418917Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7419582Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7420704Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7421594Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7422441Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7423153Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7424509Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7425801Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7426532Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7428116Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7429765Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7431538Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7433234Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7433619Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7434360Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7435073Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7435389Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7435815Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7436197Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7436481Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7436740Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7437030Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7437499Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7437939Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7438173Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7438302Z 2022-11-23T01:08:13.7439994Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.7441039Z ================== 2022-11-23T01:08:13.7441207Z ================== 2022-11-23T01:08:13.7441460Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7441782Z  Write of size 4 at 0x7b940003ccec by thread T1: 2022-11-23T01:08:13.7444106Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:13.7445744Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7446228Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7446770Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7447355Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7447905Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7448325Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7448714Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7449085Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7449249Z 2022-11-23T01:08:13.7449424Z  Previous write of size 4 at 0x7b940003ccec by main thread: 2022-11-23T01:08:13.7451731Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:13.7453393Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7453878Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7454392Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7454969Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7455453Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7455848Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7456295Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:13.7456774Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7457714Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7458817Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7459287Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7459965Z #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+0x6562cde) 2022-11-23T01:08:13.7460740Z #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+0x20cf997) 2022-11-23T01:08:13.7461344Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7461776Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7462744Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7463662Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7464088Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7465054Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7465961Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7466628Z #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+0xca56e8) 2022-11-23T01:08:13.7467440Z #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+0x2974180) 2022-11-23T01:08:13.7468094Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7469209Z #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+0x57a0418) 2022-11-23T01:08:13.7470298Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7470788Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7471238Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7471583Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7472026Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7472410Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7472669Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7472919Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7473212Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7473696Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7474140Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7474364Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7474495Z 2022-11-23T01:08:13.7474763Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2022-11-23T01:08:13.7475104Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7475372Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7475675Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7476068Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7476732Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7477436Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7478010Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7478547Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7479891Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7481675Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7482582Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7483953Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7485346Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7485840Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7486310Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7487695Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7489193Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7490586Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7492000Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7492549Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7493950Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7495508Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7496922Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7498377Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7498962Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7499497Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7500913Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7502424Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7503787Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7505195Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7505735Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7507174Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7508668Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7510168Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7511649Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7512136Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7512493Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7513306Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7514070Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7514432Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7514839Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7515275Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7515775Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7516395Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7517171Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7517772Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7518197Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7519192Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7520117Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7520545Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7521475Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7522384Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7523040Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7523882Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7524499Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7525612Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7526628Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7527138Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7527582Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7527934Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7528364Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7528746Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7529003Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7529267Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7529548Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7530029Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7530472Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7530703Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7530830Z 2022-11-23T01:08:13.7531048Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.7531386Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7531751Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7532301Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7532800Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7533265Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7533723Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7534119Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7534733Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7535225Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7535627Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7536014Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7536777Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7537506Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7537907Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7538901Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7539756Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7540750Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7541672Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7542006Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7542793Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7543505Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7543822Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7544234Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7544616Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7544876Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7545142Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7545422Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7545908Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7546349Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7546629Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7546757Z 2022-11-23T01:08:13.7548423Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:13.7549431Z ================== 2022-11-23T01:08:13.7549860Z ================== 2022-11-23T01:08:13.7550119Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7550439Z  Write of size 1 at 0x7b740003a476 by thread T2: 2022-11-23T01:08:13.7552794Z  #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+0x8718da5) 2022-11-23T01:08:13.7554458Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7554945Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7555451Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7556028Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7556586Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7557059Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7557280Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7557417Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7557423Z 2022-11-23T01:08:13.7557609Z  Previous write of size 1 at 0x7b740003a476 by main thread: 2022-11-23T01:08:13.7559800Z  #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+0x8718da5) 2022-11-23T01:08:13.7560062Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7560280Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7560560Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7560873Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7561067Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7561271Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7561495Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7561707Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7562487Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.7562729Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.7562929Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7563695Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7563901Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7564109Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7564882Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7565158Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7566022Z #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+0x57a0418) 2022-11-23T01:08:13.7566249Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7566432Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7566692Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7566809Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7566930Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7567053Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7567203Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7567520Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7567643Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7567737Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7567743Z 2022-11-23T01:08:13.7567964Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:13.7568132Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7568244Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7568408Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7568614Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7569060Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7569333Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7569599Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7569890Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7570970Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7571622Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7571926Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7572970Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7573249Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7573427Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.7574107Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.7574290Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.7574498Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.7575284Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7575554Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7576415Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7576628Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7576798Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7577059Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7577178Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7577299Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7577421Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7577569Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7577884Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7577990Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7578082Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7578087Z 2022-11-23T01:08:13.7578329Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.7578589Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7578815Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7579132Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7579306Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7579601Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7579754Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7579945Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7580401Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7580622Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7580806Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7580998Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7581554Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7581720Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7581955Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7582616Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7582825Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7583628Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7583810Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7583954Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7584534Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7584709Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7584859Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7585113Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7585230Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7585349Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7585468Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7585616Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7585928Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7586048Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7586140Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7586145Z 2022-11-23T01:08:13.7587802Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:13.7587875Z ================== 2022-11-23T01:08:13.7587939Z ================== 2022-11-23T01:08:13.7588094Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7588270Z  Write of size 1 at 0x7b740003a477 by thread T2: 2022-11-23T01:08:13.7590570Z  #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+0x8718e1d) 2022-11-23T01:08:13.7590872Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7591093Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7591376Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7591668Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7591939Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7592079Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7592303Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7592441Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7592446Z 2022-11-23T01:08:13.7592633Z  Previous write of size 1 at 0x7b740003a477 by main thread: 2022-11-23T01:08:13.7594813Z  #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+0x8718e1d) 2022-11-23T01:08:13.7595071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7595288Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7595568Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7595853Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7596070Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7596272Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7596497Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7596712Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7597491Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.7597710Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.7597912Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7598664Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7598907Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7599102Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7599887Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7600129Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7601019Z #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+0x57a0418) 2022-11-23T01:08:13.7601231Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7601398Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7601654Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7601770Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7601890Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7602012Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7602160Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7602471Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7602593Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7602686Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7602691Z 2022-11-23T01:08:13.7602897Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:13.7603064Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7603188Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7603348Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7603576Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7604019Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7604289Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7604554Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7604819Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7605929Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7606556Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7606863Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7607933Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7608206Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7608382Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.7609029Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.7609236Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.7609443Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.7610221Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7610465Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7611339Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7611578Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7611746Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7612001Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7612118Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7612237Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7612344Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7612492Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7612806Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7612929Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7613023Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7613028Z 2022-11-23T01:08:13.7613266Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.7613430Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7613648Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7613965Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7614139Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7614435Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7614588Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7614779Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7615183Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7615403Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7615580Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7615771Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7616338Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7616501Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7616753Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7617415Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7617624Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7618399Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7618703Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7618851Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7619428Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7619576Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7619730Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7619987Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7620104Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7620228Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7620349Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7620498Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7620809Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7620915Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7621010Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7621016Z 2022-11-23T01:08:13.7622726Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:13.7622811Z ================== 2022-11-23T01:08:13.7622862Z ================== 2022-11-23T01:08:13.7623032Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7623211Z  Write of size 1 at 0x7b740003a478 by thread T2: 2022-11-23T01:08:13.7625382Z  #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+0x8718e64) 2022-11-23T01:08:13.7625702Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7625925Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7626209Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7626494Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7626765Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7626907Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7627120Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7627284Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7627290Z 2022-11-23T01:08:13.7627479Z  Previous write of size 1 at 0x7b740003a478 by main thread: 2022-11-23T01:08:13.7629725Z  #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+0x8718e64) 2022-11-23T01:08:13.7630021Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7630244Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7630529Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7630817Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7631011Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7631215Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7631445Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7631661Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7632499Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.7632714Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.7632918Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7633672Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7633900Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7634105Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7634897Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7635140Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7636000Z #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+0x57a0418) 2022-11-23T01:08:13.7636214Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7636381Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7636636Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7636776Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7636896Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7637017Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7637167Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7637479Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7637585Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7637675Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7637681Z 2022-11-23T01:08:13.7637902Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:13.7638069Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7638196Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7638358Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7638594Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7639037Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7639308Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7639573Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7639839Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7640907Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7641575Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7641878Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7642912Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7643251Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7643427Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.7644077Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.7644255Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.7644464Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.7645234Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.7645512Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.7646388Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7646600Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7646797Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.7647054Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7647158Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7647278Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7647400Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7647549Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7647863Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7647985Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7648077Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7648083Z 2022-11-23T01:08:13.7648293Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.7648456Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7648677Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7648992Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7649164Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7649464Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7649606Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7649799Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7650203Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7650448Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7650633Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7650827Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7651381Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7651547Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7651775Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7652461Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7652683Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7653449Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7653632Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7653775Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7654352Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7654501Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7654649Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7654926Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7655043Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7655167Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7655274Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7655423Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7655737Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7655856Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7655949Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7655954Z 2022-11-23T01:08:13.7657626Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:13.7657737Z ================== 2022-11-23T01:08:13.7733398Z ================== 2022-11-23T01:08:13.7733849Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7734708Z  Write of size 1 at 0x7b740003ae76 by thread T3: 2022-11-23T01:08:13.7738781Z  #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+0x8718da5) 2022-11-23T01:08:13.7739274Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7739831Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7740308Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7740801Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7741259Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7741496Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7741877Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7742108Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7742180Z 2022-11-23T01:08:13.7742525Z  Previous write of size 1 at 0x7b740003ae76 by main thread: 2022-11-23T01:08:13.7746396Z  #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+0x8718da5) 2022-11-23T01:08:13.7746856Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7747240Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7747727Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7748241Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7748557Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7748958Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7749361Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7749791Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7751005Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7751417Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7751838Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7752501Z #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+0x6562cde) 2022-11-23T01:08:13.7753170Z #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+0x20cf997) 2022-11-23T01:08:13.7771120Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7771537Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7773751Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7774110Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7774333Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7775309Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7775645Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7776339Z #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+0xca56e8) 2022-11-23T01:08:13.7777033Z #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+0x2974180) 2022-11-23T01:08:13.7777452Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7778941Z #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+0x57a0418) 2022-11-23T01:08:13.7779273Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7779682Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7779960Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7780212Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7780612Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7780797Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7780974Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7781156Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7781335Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7781723Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7781846Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7781939Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7781946Z 2022-11-23T01:08:13.7782195Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2022-11-23T01:08:13.7782366Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7782491Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7782714Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7783029Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7783717Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7784195Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7784598Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7785019Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7786665Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7787638Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7788170Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7789866Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7790340Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7790639Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7791062Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7792766Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7793264Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7794975Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7795425Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7795860Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7797611Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7798000Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7799110Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7799551Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7799869Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7800319Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7802009Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7802521Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7803875Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7804273Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7804594Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7805998Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7806445Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7807747Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7808224Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7808424Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7808627Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7809354Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7809550Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7809831Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7810036Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7810341Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7810633Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7811047Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7811620Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7811964Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7812266Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7813247Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7813459Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7813775Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7814797Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7815142Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7815782Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7816297Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7816547Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7817707Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7818028Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7818300Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7818633Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7818854Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7819185Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7819377Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7819573Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7819746Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7819978Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7820457Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7820663Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7820821Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7820837Z 2022-11-23T01:08:13.7821225Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.7821494Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7821835Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7822414Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7822708Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7823241Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7823511Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7823836Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7824597Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7824994Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7825335Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7825570Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7826495Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7826830Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7827235Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7828156Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7828369Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7829138Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7829319Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7829464Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7830153Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7830303Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7830455Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7830711Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7830829Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7830949Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7831072Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7831220Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7831532Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7831680Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7831760Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7831767Z 2022-11-23T01:08:13.7834126Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:13.7834245Z ================== 2022-11-23T01:08:13.7834433Z ================== 2022-11-23T01:08:13.7834692Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7834974Z  Write of size 1 at 0x7b740003ae77 by thread T3: 2022-11-23T01:08:13.7838509Z  #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+0x8718e1d) 2022-11-23T01:08:13.7838927Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7839248Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7839689Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7840146Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7840625Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7840847Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7841179Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7841391Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7841400Z 2022-11-23T01:08:13.7841701Z  Previous write of size 1 at 0x7b740003ae77 by main thread: 2022-11-23T01:08:13.7844826Z  #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+0x8718e1d) 2022-11-23T01:08:13.7845231Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7845572Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7846089Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7846510Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7846811Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7847127Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7847471Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7847809Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7848873Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7849303Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7849598Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7849988Z #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+0x6562cde) 2022-11-23T01:08:13.7850379Z #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+0x20cf997) 2022-11-23T01:08:13.7850606Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7850913Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7852110Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7852432Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7852759Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7853862Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7854199Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7854900Z #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+0xca56e8) 2022-11-23T01:08:13.7855486Z #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+0x2974180) 2022-11-23T01:08:13.7855844Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7857179Z #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+0x57a0418) 2022-11-23T01:08:13.7857506Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7857914Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7858175Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7858436Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7859025Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7859212Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7859375Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7859555Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7859789Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7860269Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7860459Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7860605Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7860615Z 2022-11-23T01:08:13.7860978Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2022-11-23T01:08:13.7861242Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7861452Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7861694Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7862070Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7862781Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7863186Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7863588Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7864011Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7865661Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7866401Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7866708Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7868038Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7868446Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7868745Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7869196Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7871120Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7871731Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7873639Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7874118Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7874663Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7876756Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7877347Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7879426Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7879979Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7880341Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7880840Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7882779Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7883358Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7885142Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7885556Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7886039Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7887843Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7888368Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7890045Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7890565Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7890889Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7891168Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7892375Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7892621Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7892907Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7893241Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7893608Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7893963Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7894484Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7895071Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7895400Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7895722Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7897075Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7897300Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7897506Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7898230Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7898592Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7899026Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7899411Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7899655Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7900507Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7900775Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7901039Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7901219Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7901387Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7901644Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7901762Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7901884Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7902006Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7902153Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7902471Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7902589Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7902669Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7902676Z 2022-11-23T01:08:13.7902921Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.7903090Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7903383Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7903710Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7903886Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7904180Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7904333Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7904525Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7904939Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7905188Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7905372Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7905565Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7906122Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7906288Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7906515Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7907173Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7907385Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7908180Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7908358Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7908506Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7909090Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7909240Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7909393Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7909762Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7909879Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7910000Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7910122Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7910273Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7910593Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7910715Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7910811Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7910819Z 2022-11-23T01:08:13.7912484Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:13.7912560Z ================== 2022-11-23T01:08:13.7912698Z ================== 2022-11-23T01:08:13.7912870Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.7913049Z  Write of size 1 at 0x7b740003ae86 by thread T3: 2022-11-23T01:08:13.7915287Z  #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+0x8718e64) 2022-11-23T01:08:13.7915554Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7915776Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7916091Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7916381Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7916658Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.7916802Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.7917030Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.7917168Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.7917174Z 2022-11-23T01:08:13.7917366Z  Previous write of size 1 at 0x7b740003ae86 by main thread: 2022-11-23T01:08:13.7919577Z  #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+0x8718e64) 2022-11-23T01:08:13.7919855Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.7920082Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.7920366Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.7920656Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.7920851Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.7921054Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.7921296Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:13.7921509Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.7922240Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.7922479Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.7922702Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7923090Z #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+0x6562cde) 2022-11-23T01:08:13.7923480Z #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+0x20cf997) 2022-11-23T01:08:13.7923697Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7923896Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7924677Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7924881Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7925087Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7925793Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7926044Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7926483Z #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+0xca56e8) 2022-11-23T01:08:13.7926870Z #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+0x2974180) 2022-11-23T01:08:13.7927110Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7927973Z #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+0x57a0418) 2022-11-23T01:08:13.7928183Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7928479Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7928657Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7928822Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7929076Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7929191Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7929309Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7929428Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7929566Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7929879Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7930024Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7930118Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7930123Z 2022-11-23T01:08:13.7930348Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2022-11-23T01:08:13.7930513Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.7930637Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.7930801Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.7931008Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.7931449Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.7931721Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.7931986Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.7932251Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.7933339Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.7933974Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.7934276Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.7935332Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.7935621Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.7935807Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.7936077Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.7937204Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.7937513Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7938676Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7939001Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7939269Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7940411Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7940737Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7941858Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7942163Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7942376Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7942671Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.7943781Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.7944096Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.7945188Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.7945463Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.7945729Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.7946856Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.7947213Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.7948303Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.7948594Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.7948816Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.7948964Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.7949691Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.7949847Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.7950031Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.7950232Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.7950497Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.7950714Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.7951100Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.7951488Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.7951703Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.7951905Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.7952668Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.7952871Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.7953077Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.7953815Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.7954041Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.7954473Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.7954858Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.7955126Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.7956005Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.7956214Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.7956480Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.7956652Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.7956819Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.7957060Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7957176Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7957295Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7957416Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7957561Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7957909Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7958029Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7958123Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7958129Z 2022-11-23T01:08:13.7958350Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.7958515Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.7958738Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.7959054Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.7959218Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.7959510Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.7959690Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.7959881Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.7960287Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.7960509Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.7960695Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.7960888Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.7961442Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.7961606Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.7961830Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.7962491Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.7962740Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.7963510Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.7963690Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.7963834Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.7964408Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.7964579Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.7964729Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.7964986Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.7965100Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.7965219Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.7965330Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.7965476Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.7965788Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.7965905Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.7965997Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.7966002Z 2022-11-23T01:08:13.7967663Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:13.7967734Z ================== 2022-11-23T01:08:13.8242892Z ================== 2022-11-23T01:08:13.8243521Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8243877Z  Write of size 1 at 0x7b740003a30d by thread T1: 2022-11-23T01:08:13.8248007Z  #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+0x871a6ad) 2022-11-23T01:08:13.8248585Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8248990Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8249509Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8250024Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8250524Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8250761Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8251167Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8251399Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8251410Z 2022-11-23T01:08:13.8251761Z  Previous write of size 1 at 0x7b740003a30d by main thread: 2022-11-23T01:08:13.8255812Z  #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+0x871a761) 2022-11-23T01:08:13.8256291Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8256646Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8257133Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8257696Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8258056Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8258428Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8259005Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8259394Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8260788Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.8261196Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.8261554Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8262661Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8262871Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8263084Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8263860Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8264149Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8265012Z #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+0x57a0418) 2022-11-23T01:08:13.8265224Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8265395Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8265683Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8265798Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8265919Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8266038Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8266184Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8266499Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8266618Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8266710Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8266717Z 2022-11-23T01:08:13.8266967Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:13.8267134Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8267256Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8267420Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8267627Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8268071Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8268340Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8268603Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8268895Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8270052Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8270683Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8270989Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8272063Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8272339Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8272543Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.8273185Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.8273365Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.8273574Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.8274350Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8274596Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8275491Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8275705Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8275872Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8276128Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8276242Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8276359Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8276468Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8276617Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8276928Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8277078Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8277169Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8277175Z 2022-11-23T01:08:13.8277390Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.8277557Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8277781Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8278102Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8278278Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8278574Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8278727Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8278918Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8279330Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8279551Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8279728Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8279920Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8280516Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8280685Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8280914Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8281582Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8281793Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8282600Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8282779Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8282923Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8283506Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8283654Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8283811Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8284064Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8284185Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8284307Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8284429Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8284578Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8284891Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8284998Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8285119Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8285125Z 2022-11-23T01:08:13.8286804Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:13.8286892Z ================== 2022-11-23T01:08:13.8367921Z ================== 2022-11-23T01:08:13.8368577Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8369045Z  Write of size 1 at 0x7b740003a88f by thread T1: 2022-11-23T01:08:13.8372796Z  #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+0x871a761) 2022-11-23T01:08:13.8373286Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8373704Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8374129Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8374495Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8374948Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8375179Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8375465Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8375644Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8375655Z 2022-11-23T01:08:13.8375940Z  Previous write of size 1 at 0x7b740003a88f by main thread: 2022-11-23T01:08:13.8379418Z  #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+0x871a761) 2022-11-23T01:08:13.8379906Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8380191Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8380582Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8381001Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8381305Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8381604Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8381881Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8382145Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8383361Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.8383646Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.8383849Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8385089Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8385527Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8385878Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8387094Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8387342Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8388208Z #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+0x57a0418) 2022-11-23T01:08:13.8388438Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8388641Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8388887Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8389006Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8389126Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8389246Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8389398Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8389784Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8389905Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8390001Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8390009Z 2022-11-23T01:08:13.8390256Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:13.8390458Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8390570Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8390732Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8390938Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8391430Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8391696Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8391960Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8392224Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8393290Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8393957Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8394265Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8395297Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8395596Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8395776Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.8396426Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.8396614Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.8396812Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.8397636Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8397882Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8398741Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8398979Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8399147Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8399402Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8399519Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8399639Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8399758Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8399904Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8400218Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8400335Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8400427Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8400433Z 2022-11-23T01:08:13.8400634Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.8400799Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8401021Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8401338Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8401511Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8401802Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8401954Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8402143Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8402573Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8402795Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8402985Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8403173Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8403728Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8403917Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8404142Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8404803Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8405012Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8405784Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8405974Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8406149Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8406732Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8406902Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8407053Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8407302Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8407420Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8407538Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8407658Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8407805Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8408119Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8408237Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8408329Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8408362Z 2022-11-23T01:08:13.8410051Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a761) 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::'lamb 2022-11-23T01:08:13.8410123Z ================== 2022-11-23T01:08:13.8434870Z ================== 2022-11-23T01:08:13.8435211Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8435486Z  Write of size 1 at 0x7b740003c276 by thread T2: 2022-11-23T01:08:13.8438663Z  #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+0x871a635) 2022-11-23T01:08:13.8439209Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8439582Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8440073Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8440531Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8440967Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8441190Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8441634Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8441841Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8441851Z 2022-11-23T01:08:13.8442176Z  Previous write of size 1 at 0x7b740003c276 by main thread: 2022-11-23T01:08:13.8444645Z  #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+0x871a635) 2022-11-23T01:08:13.8444931Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8445163Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8445434Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8445791Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8445972Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8446177Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8446407Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8446619Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8447669Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.8448122Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.8448493Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8449139Z #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+0x6562cde) 2022-11-23T01:08:13.8449675Z #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+0x20cf997) 2022-11-23T01:08:13.8449998Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8450305Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8451550Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8451936Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8452361Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8453690Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8453956Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8454392Z #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+0xca56e8) 2022-11-23T01:08:13.8454825Z #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+0x2974180) 2022-11-23T01:08:13.8455067Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8455930Z #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+0x57a0418) 2022-11-23T01:08:13.8456146Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8456410Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8456589Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8456759Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8457015Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8457133Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8457252Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8457360Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8457536Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8457851Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8457972Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8458066Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8458072Z 2022-11-23T01:08:13.8458314Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2022-11-23T01:08:13.8458642Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8458773Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8458936Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8459180Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8459696Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8460201Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8460657Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8461004Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8462159Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8463215Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8463702Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8465263Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8465744Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8466037Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.8466444Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.8468153Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.8468645Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8470450Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8470911Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8471338Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8472863Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8473353Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8475059Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8475540Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8475837Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8476299Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.8478014Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.8478541Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8479864Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8480148Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8480424Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8482112Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8482607Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8484351Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8484818Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8485130Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8485361Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.8486357Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.8486599Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.8486953Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.8487281Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.8487644Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.8487998Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8488601Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.8489207Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.8489567Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8489896Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8491062Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8491382Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8491703Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8492802Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8493166Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8493862Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.8494472Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.8494845Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8496008Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8496258Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8496523Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8496700Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8496869Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8497127Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8497296Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8497404Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8497525Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8497712Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8498205Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8498397Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8498657Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8498667Z 2022-11-23T01:08:13.8499055Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.8499326Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8499679Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8500178Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8500560Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8500984Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8501234Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8501534Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8502226Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8502503Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8502788Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8503156Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8503979Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8504207Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8504535Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8505657Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8506010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8507222Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8507517Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8507824Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8508692Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8508891Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8509084Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8509456Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8509698Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8509866Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8510097Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8510343Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8510832Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8510999Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8511116Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8511122Z 2022-11-23T01:08:13.8513611Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a635) 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::'lamb 2022-11-23T01:08:13.8513715Z ================== 2022-11-23T01:08:13.8513815Z ================== 2022-11-23T01:08:13.8514082Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8514309Z  Write of size 1 at 0x7b740003c277 by thread T2: 2022-11-23T01:08:13.8517874Z  #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+0x871a6ad) 2022-11-23T01:08:13.8518278Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8518612Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8519003Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8519464Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8519883Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8520077Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8520384Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8520561Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8520570Z 2022-11-23T01:08:13.8520866Z  Previous write of size 1 at 0x7b740003c277 by main thread: 2022-11-23T01:08:13.8524018Z  #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+0x871a6ad) 2022-11-23T01:08:13.8524428Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8524801Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8525222Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8525736Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8526018Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8526277Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8526622Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8526910Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8528022Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.8528341Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.8528611Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8529171Z #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+0x6562cde) 2022-11-23T01:08:13.8529586Z #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+0x20cf997) 2022-11-23T01:08:13.8529882Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8530165Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8531324Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8531618Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8531944Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8533010Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8533417Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8534105Z #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+0xca56e8) 2022-11-23T01:08:13.8534722Z #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+0x2974180) 2022-11-23T01:08:13.8535104Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8536423Z #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+0x57a0418) 2022-11-23T01:08:13.8536738Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8537145Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8537460Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8537718Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8538117Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8538309Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8538612Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8538785Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8538998Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8539488Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8539687Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8539830Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8539842Z 2022-11-23T01:08:13.8540207Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2022-11-23T01:08:13.8540456Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8540583Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8540784Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8541092Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8541784Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8542195Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8542605Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8543022Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8544740Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8545733Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8546219Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8547483Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8547819Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8548082Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.8548486Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.8550349Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.8550834Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8552525Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8552997Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8553424Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8555218Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8555719Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8557484Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8557942Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8558228Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8558700Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.8560489Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.8560943Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8562697Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8563113Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8563387Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8564734Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8565316Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8567315Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8567964Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8568309Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8568588Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.8569907Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.8570193Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.8570519Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.8570814Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.8571189Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.8571521Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8572227Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.8572890Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.8573236Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8573562Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8574914Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8575246Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8575627Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8576979Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8577393Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8578168Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.8578963Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.8579481Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8581057Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8581454Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8581924Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8582240Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8582546Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8582994Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8583206Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8583386Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8583607Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8583878Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8584431Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8584643Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8584798Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8584808Z 2022-11-23T01:08:13.8585289Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.8585602Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8585993Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8586564Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8586886Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8587435Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8587721Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8588066Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8588854Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8589219Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8589549Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8589977Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8591011Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8591275Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8591773Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8592766Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8593106Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8594447Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8594766Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8595031Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8595946Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8596183Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8596440Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8596923Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8597108Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8597235Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8597356Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8597508Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8597822Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8597945Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8598043Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8598049Z 2022-11-23T01:08:13.8599750Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:13.8599824Z ================== 2022-11-23T01:08:13.8599892Z ================== 2022-11-23T01:08:13.8600064Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8600242Z  Write of size 1 at 0x7b740003c278 by thread T2: 2022-11-23T01:08:13.8602448Z  #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+0x871a6f4) 2022-11-23T01:08:13.8602745Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8602970Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8603253Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8603547Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8603818Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8603963Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8604189Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8604329Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8604335Z 2022-11-23T01:08:13.8604525Z  Previous write of size 1 at 0x7b740003c278 by main thread: 2022-11-23T01:08:13.8606719Z  #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+0x871a6f4) 2022-11-23T01:08:13.8606983Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8607204Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8607490Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8607779Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8608013Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8608216Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8608443Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8608660Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8609379Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.8609624Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.8609851Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8610241Z #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+0x6562cde) 2022-11-23T01:08:13.8610645Z #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+0x20cf997) 2022-11-23T01:08:13.8610897Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8611089Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8611856Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8612061Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8612268Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8613008Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8613234Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8613668Z #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+0xca56e8) 2022-11-23T01:08:13.8614056Z #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+0x2974180) 2022-11-23T01:08:13.8614298Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8615190Z #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+0x57a0418) 2022-11-23T01:08:13.8615404Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8615672Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8615847Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8616016Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8616270Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8616375Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8616496Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8616617Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8616797Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8617112Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8617231Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8617324Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8617330Z 2022-11-23T01:08:13.8617552Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2022-11-23T01:08:13.8617718Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8617844Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8617993Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8618202Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8618819Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8619092Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8619358Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8619628Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8620770Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8621401Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8621758Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8622789Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8623069Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8623260Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.8623538Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.8624691Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.8625005Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8626076Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8626393Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8626666Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8627804Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8628150Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8629261Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8629646Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8629845Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8630152Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.8631269Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.8631581Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8632659Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8632953Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8633228Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8634393Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8634716Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8636214Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8636716Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8637003Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8637242Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.8638232Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.8638479Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.8638858Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.8639170Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.8639538Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.8639884Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8640483Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.8641084Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.8641421Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8641740Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8642888Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8643216Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8643590Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8644731Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8645096Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8645642Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.8646175Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.8646489Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8647748Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8648099Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8648422Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8648704Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8648930Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8649345Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8649529Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8649689Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8649935Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8650175Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8650663Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8650865Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8651016Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8651027Z 2022-11-23T01:08:13.8651377Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.8651653Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8651979Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8652475Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8652839Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8653286Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8653519Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8653826Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8654505Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8654871Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8655183Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8655497Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8656362Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8656635Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8656982Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8658063Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8658411Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8659752Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8660037Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8660350Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8661271Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8661508Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8661743Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8662153Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8662342Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8662540Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8662688Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8662932Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8663416Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8663614Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8663760Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8663771Z 2022-11-23T01:08:13.8666661Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:13.8666760Z ================== 2022-11-23T01:08:13.8672403Z ================== 2022-11-23T01:08:13.8673015Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8673309Z  Write of size 1 at 0x7b740003c347 by thread T2: 2022-11-23T01:08:13.8677173Z  #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+0x871a761) 2022-11-23T01:08:13.8677723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8678111Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8678593Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8679086Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8679540Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8679770Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8680140Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8680367Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8680377Z 2022-11-23T01:08:13.8680723Z  Previous write of size 1 at 0x7b740003c347 by main thread: 2022-11-23T01:08:13.8684604Z  #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+0x871a761) 2022-11-23T01:08:13.8685064Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8685486Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8685964Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8686463Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8686799Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8687136Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8687533Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:13.8687906Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8689123Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.8689523Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.8689890Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8690576Z #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+0x6562cde) 2022-11-23T01:08:13.8691236Z #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+0x20cf997) 2022-11-23T01:08:13.8691593Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8691936Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8693237Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8693621Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8693964Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8695163Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8695541Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8696277Z #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+0xca56e8) 2022-11-23T01:08:13.8696935Z #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+0x2974180) 2022-11-23T01:08:13.8697345Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8699074Z #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+0x57a0418) 2022-11-23T01:08:13.8699438Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8699886Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8700193Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8700516Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8700981Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8701185Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8701383Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8701595Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8701863Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8702529Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8702746Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8702912Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8702922Z 2022-11-23T01:08:13.8703352Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2022-11-23T01:08:13.8703660Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8703883Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8704170Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8704547Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8705382Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8705868Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8706354Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8706920Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8708917Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8710216Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8710772Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8712709Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8713221Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8713551Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.8714087Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.8716144Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.8716744Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8718706Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8719206Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8719693Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8721842Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8722428Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8724475Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8725066Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8725423Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8725975Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.8728051Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.8728655Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.8730666Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.8731207Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.8731701Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.8733798Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.8734378Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.8736437Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.8736972Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.8737302Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.8737566Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.8738919Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.8739276Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.8739633Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.8739992Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.8740424Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.8740813Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.8741508Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.8742233Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.8742617Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.8742964Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8744454Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8744829Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8745209Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8746539Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.8746977Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.8747760Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.8748468Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.8748903Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.8750582Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8750963Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8751435Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.8751788Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.8752086Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.8752550Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8752741Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8752955Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8753172Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8753442Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8754037Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8754252Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8754418Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8754469Z 2022-11-23T01:08:13.8754880Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:13.8755180Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8755568Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8756140Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8756450Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8756978Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8757238Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8757581Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8758358Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8758760Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8759106Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8759455Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8760499Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8760797Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8761274Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8762481Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8762874Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8764304Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8764661Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8764917Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8765963Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8766224Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8766486Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8766949Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8767158Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8767368Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8767570Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8767850Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8768436Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8768652Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8768819Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8768829Z 2022-11-23T01:08:13.8772101Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a761) 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::'lamb 2022-11-23T01:08:13.8772226Z ================== 2022-11-23T01:08:13.8894369Z ================== 2022-11-23T01:08:13.8894748Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8895055Z  Write of size 2 at 0x7b8400015a6c by thread T3: 2022-11-23T01:08:13.8898281Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.8899066Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8899376Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8899770Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8900196Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8900493Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8900640Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8900881Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8901139Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8901148Z 2022-11-23T01:08:13.8901382Z  Previous write of size 2 at 0x7b8400015a6c by main thread: 2022-11-23T01:08:13.8903696Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.8904057Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8904302Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8904676Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8905127Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8905446Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8905792Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8906079Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.8906299Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8907343Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.8907570Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.8907774Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8908744Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8909107Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8909431Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8910811Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8911235Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8912623Z #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+0x57a0418) 2022-11-23T01:08:13.8912999Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8913284Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8913835Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8914060Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8914264Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8914436Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8914640Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8914952Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8915059Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8915191Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8915203Z 2022-11-23T01:08:13.8915466Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:13.8915639Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8915766Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8915971Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8916256Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8916723Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8917028Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8917292Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8917614Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8918750Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8919487Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8919802Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8920957Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8921291Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8921530Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.8922217Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.8922416Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.8922625Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.8923471Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8923786Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8924735Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8924952Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8925159Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8925477Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8925583Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8925702Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8925822Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8925971Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8926455Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8926674Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8926821Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8926831Z 2022-11-23T01:08:13.8927219Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.8927489Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8927883Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8928484Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8928665Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8928962Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8929114Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8929304Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8929708Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8929984Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8930170Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8930364Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8930920Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8931091Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8931317Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8932128Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8932342Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8933112Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8933293Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8933439Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8934020Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8934170Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8934322Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8934608Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8934727Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8934853Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8934975Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8935110Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8935424Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8935544Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8935642Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8935648Z 2022-11-23T01:08:13.8937953Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.8938147Z ================== 2022-11-23T01:08:13.8938762Z ================== 2022-11-23T01:08:13.8939145Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8939466Z  Write of size 2 at 0x7b8400015a72 by thread T3: 2022-11-23T01:08:13.8943889Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.8944391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8944967Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8945501Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8946005Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8946474Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8946701Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8947114Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8947351Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8947462Z 2022-11-23T01:08:13.8947801Z  Previous write of size 2 at 0x7b8400015a72 by main thread: 2022-11-23T01:08:13.8951419Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.8951712Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8952010Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8952338Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8952738Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8952989Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.8953456Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.8953854Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.8954111Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.8955186Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.8955550Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.8955833Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.8956857Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.8957159Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.8957541Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.8958488Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8958733Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8959643Z #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+0x57a0418) 2022-11-23T01:08:13.8959862Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8960033Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8960290Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8960408Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8960574Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8960697Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8960884Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8961199Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8961322Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8961416Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8961423Z 2022-11-23T01:08:13.8961672Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:13.8961829Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.8961954Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.8962119Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.8962326Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.8962778Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.8963097Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.8963599Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.8963960Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.8965441Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.8966070Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.8966404Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.8967904Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.8968441Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.8968735Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.8969912Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.8970243Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.8970581Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.8971612Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.8972016Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.8973183Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.8973587Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.8973860Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.8974116Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8974232Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8974355Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8974569Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8974831Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8975303Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8975429Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8975524Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8975530Z 2022-11-23T01:08:13.8975875Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.8976193Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.8976514Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.8976880Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.8977196Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.8977722Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.8977877Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.8978067Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.8978599Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.8978993Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.8979433Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.8979666Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.8980531Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.8980802Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.8981049Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.8982195Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.8982587Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.8983679Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.8983956Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.8984179Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.8984969Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.8985136Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.8985363Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.8985759Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.8986005Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.8986200Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.8986411Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.8986661Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.8987222Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.8987438Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.8987616Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.8987628Z 2022-11-23T01:08:13.8990220Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.8990326Z ================== 2022-11-23T01:08:13.8990431Z ================== 2022-11-23T01:08:13.8990673Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.8990948Z  Write of size 2 at 0x7b8400015a74 by thread T3: 2022-11-23T01:08:13.8994318Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.8994743Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.8995084Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.8995576Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.8996059Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.8996498Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.8996721Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.8997086Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.8997291Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.8997300Z 2022-11-23T01:08:13.8997611Z  Previous write of size 2 at 0x7b8400015a74 by main thread: 2022-11-23T01:08:13.9000882Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.9001326Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9001677Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9002117Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9002587Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9002897Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9003251Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9003694Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9004074Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9005534Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.9005869Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.9006239Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9007552Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9007893Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9008260Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9009765Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9010108Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9010966Z #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+0x57a0418) 2022-11-23T01:08:13.9011225Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9011394Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9011712Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9011923Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9012143Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9012368Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9012567Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9013115Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9013340Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9013499Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9013510Z 2022-11-23T01:08:13.9013752Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:13.9013938Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9014160Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9014451Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9014836Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9015463Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9015731Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9015998Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9016264Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9017331Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9017994Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9018300Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9019533Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9019822Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9020001Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.9020649Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.9020866Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.9021072Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.9021852Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9022095Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9022960Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9023182Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9023350Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9023593Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9023736Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9023857Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9023978Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9024128Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9024437Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9024556Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9024649Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9024655Z 2022-11-23T01:08:13.9024873Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9025040Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9025263Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9025643Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9025947Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9026277Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9026478Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9026695Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9027220Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9027528Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9027833Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9028112Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9028768Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9029015Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9029243Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9030254Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9030522Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9031726Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9031993Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9032196Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9032866Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9033101Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9033264Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9033520Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9033633Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9033751Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9033931Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9034123Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9034438Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9034558Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9034655Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9034662Z 2022-11-23T01:08:13.9036898Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9036994Z ================== 2022-11-23T01:08:13.9044917Z ================== 2022-11-23T01:08:13.9045303Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9045612Z  Write of size 2 at 0x7b8400015a76 by thread T3: 2022-11-23T01:08:13.9049047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.9049417Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9049646Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9049931Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9050222Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9050492Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9050635Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9050919Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9051044Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9051063Z 2022-11-23T01:08:13.9051242Z  Previous write of size 2 at 0x7b8400015a76 by main thread: 2022-11-23T01:08:13.9053432Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.9053695Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9053976Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9054254Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9054546Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9054737Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9054939Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9055167Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9055380Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9056168Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.9056385Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.9056585Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9057365Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9057572Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9057782Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9058778Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9059107Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9059966Z #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+0x57a0418) 2022-11-23T01:08:13.9060180Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9060348Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9060607Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9060723Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9060843Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9060965Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9061113Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9061461Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9061581Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9061664Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9061670Z 2022-11-23T01:08:13.9061901Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:13.9062068Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9062192Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9062355Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9062560Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9063007Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9063307Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9063572Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9063841Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9065371Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9066392Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9066906Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9068445Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9068925Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9069197Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.9070280Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.9070571Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.9070821Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.9071958Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9072419Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9073875Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9074248Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9074514Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9074931Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9075128Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9075320Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9075509Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9075722Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9076233Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9076409Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9076564Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9076574Z 2022-11-23T01:08:13.9076905Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9077100Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9077365Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9077797Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9077974Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9078288Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9078596Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9078901Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9079656Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9080046Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9080379Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9080727Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9081717Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9081967Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9082335Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9083302Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9083658Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9084518Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9084698Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9084840Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9085574Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9085744Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9085908Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9086228Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9086344Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9086465Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9086585Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9086733Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9087099Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9087221Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9087303Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9087322Z 2022-11-23T01:08:13.9088994Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9089094Z ================== 2022-11-23T01:08:13.9089214Z ================== 2022-11-23T01:08:13.9089385Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9089560Z  Write of size 2 at 0x7b8400015a78 by thread T3: 2022-11-23T01:08:13.9091719Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.9091978Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9092203Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9092487Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9092811Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9093081Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9093223Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9093447Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9093582Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9093588Z 2022-11-23T01:08:13.9093776Z  Previous write of size 2 at 0x7b8400015a78 by main thread: 2022-11-23T01:08:13.9095911Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.9096213Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9096436Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9096715Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9097005Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9097199Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9097400Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9097631Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9097844Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9098849Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:13.9099073Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:13.9099277Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9100036Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9100280Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9100486Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9101260Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9101502Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9102388Z #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+0x57a0418) 2022-11-23T01:08:13.9102611Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9102771Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9103024Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9103140Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9103260Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9103380Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9103529Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9103841Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9103994Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9104087Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9104092Z 2022-11-23T01:08:13.9104317Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:13.9104481Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9104593Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9104754Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9104963Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9105406Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9105676Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9105939Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9106205Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9107312Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9107938Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9108240Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9109307Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9109656Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9109836Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:13.9110483Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:13.9110665Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:13.9110871Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:13.9111681Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:13.9111936Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:13.9112795Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9113035Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9113204Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cc805) 2022-11-23T01:08:13.9113458Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9113576Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9113696Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9113817Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9113966Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9114263Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9114381Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9114475Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9114481Z 2022-11-23T01:08:13.9114695Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9114862Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9115086Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9115402Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9115577Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9115900Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9116053Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9116244Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9116652Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9116874Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9117060Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9117254Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9117810Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9118005Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9118233Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9118889Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9119100Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9119873Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9120053Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9120197Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9120796Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9120945Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9121094Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9121349Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9121467Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9121583Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9121704Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9121852Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9122167Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9122315Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9122407Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9122412Z 2022-11-23T01:08:13.9124070Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9124142Z ================== 2022-11-23T01:08:13.9184549Z ================== 2022-11-23T01:08:13.9184893Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9185171Z  Write of size 2 at 0x7b8400016e6c by thread T1: 2022-11-23T01:08:13.9189321Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.9189881Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9190291Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9190809Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9191379Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9191960Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9192217Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9192594Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9192853Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9192864Z 2022-11-23T01:08:13.9193238Z  Previous write of size 2 at 0x7b8400016e6c by main thread: 2022-11-23T01:08:13.9196655Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:13.9197110Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9197425Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9197899Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9198344Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9198630Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9198952Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9199304Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9199594Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9200787Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9201286Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9201676Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9202406Z #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+0x6562cde) 2022-11-23T01:08:13.9203118Z #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+0x20cf997) 2022-11-23T01:08:13.9203509Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9203888Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9205258Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9205636Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9206019Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9207284Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9207688Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9208489Z #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+0xca56e8) 2022-11-23T01:08:13.9209200Z #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+0x2974180) 2022-11-23T01:08:13.9209624Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9211239Z #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+0x57a0418) 2022-11-23T01:08:13.9211617Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9212105Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9212425Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9212727Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9213210Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9213402Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9213621Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9213841Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9214118Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9214701Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9214905Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9215050Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9215061Z 2022-11-23T01:08:13.9215480Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2022-11-23T01:08:13.9215770Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9215994Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9216278Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9216701Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9217530Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9218020Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9218640Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9219140Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9220689Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9221381Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9221687Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9222722Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9223054Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9223242Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9223512Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9224613Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9224951Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9226017Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9226319Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9226591Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9227731Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9228051Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9229174Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9229479Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9229742Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9230042Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9231142Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9231481Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9232541Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9232843Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9233144Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9234286Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9234653Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9235743Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9236042Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9236236Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9236371Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9237047Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9237199Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9237393Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9237592Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9237826Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9238031Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9238428Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9238839Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9239049Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9239249Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9239994Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9240200Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9240405Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9241119Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9241368Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9241792Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9242176Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9242414Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9243277Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9243513Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9243775Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9243947Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9244109Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9244361Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9244475Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9244583Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9244702Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9244848Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9245160Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9245276Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9245367Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9245374Z 2022-11-23T01:08:13.9245629Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.9245798Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9246044Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9246361Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9246537Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9246831Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9246982Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9247174Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9247580Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9247826Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9248009Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9248187Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9248754Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9248919Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9249145Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9249803Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9250013Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9250803Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9250981Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9251125Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9251699Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9251846Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9251995Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9252276Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9252390Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9252507Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9252626Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9252770Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9253173Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9253327Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9253470Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9253482Z 2022-11-23T01:08:13.9256192Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9256344Z ================== 2022-11-23T01:08:13.9256471Z ================== 2022-11-23T01:08:13.9256774Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9257091Z  Write of size 2 at 0x7b8400016e72 by thread T1: 2022-11-23T01:08:13.9261284Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.9261769Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9262163Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9262715Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9263243Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9263743Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9264003Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9264420Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9264644Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9264670Z 2022-11-23T01:08:13.9264972Z  Previous write of size 2 at 0x7b8400016e72 by main thread: 2022-11-23T01:08:13.9268255Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:13.9268674Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9268923Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9269355Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9269871Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9270140Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9270449Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9270859Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9271203Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9272115Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9272461Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9272795Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9273381Z #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+0x6562cde) 2022-11-23T01:08:13.9274054Z #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+0x20cf997) 2022-11-23T01:08:13.9274365Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9274715Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9287945Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9288303Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9288689Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9290021Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9290421Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9290854Z #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+0xca56e8) 2022-11-23T01:08:13.9291244Z #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+0x2974180) 2022-11-23T01:08:13.9291486Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9292363Z #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+0x57a0418) 2022-11-23T01:08:13.9292576Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9292871Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9293050Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9293215Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9293468Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9293571Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9293690Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9293810Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9293960Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9294272Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9294420Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9294515Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9294523Z 2022-11-23T01:08:13.9294777Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2022-11-23T01:08:13.9294945Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9295071Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9295220Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9295425Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9295867Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9296137Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9296402Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9296682Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9297781Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9298411Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9298907Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9299998Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9300272Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9300461Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9300738Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9301900Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9302212Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9303340Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9303654Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9303923Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9305055Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9305390Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9306516Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9306809Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9307028Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9307327Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9308429Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9308742Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9309938Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9310220Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9310489Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9311619Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9311977Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9313070Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9313361Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9313581Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9313730Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9314371Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9314533Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9314717Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9314914Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9315173Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9315391Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9315775Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9316163Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9316379Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9316576Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9317336Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9317542Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9317747Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9318481Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9318706Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9319133Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9319518Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9319793Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9321178Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9321536Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9321922Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9322185Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9322445Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9322859Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9323020Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9323129Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9323248Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9323395Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9323837Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9323962Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9324057Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9324064Z 2022-11-23T01:08:13.9324301Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.9324469Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9324690Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9325008Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9325183Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9325477Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9325662Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9325841Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9326255Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9326476Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9326660Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9326852Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9327403Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9327566Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9327792Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9328465Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9328713Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9329479Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9329654Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9329797Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9330369Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9330542Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9330726Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9331151Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9331321Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9331511Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9331666Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9331861Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9332354Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9332547Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9332720Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9332730Z 2022-11-23T01:08:13.9335764Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9335879Z ================== 2022-11-23T01:08:13.9336052Z ================== 2022-11-23T01:08:13.9336366Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9336650Z  Write of size 2 at 0x7b8400016e74 by thread T1: 2022-11-23T01:08:13.9340668Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.9341184Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9341550Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9342016Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9342530Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9342968Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9343192Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9343539Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9343786Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9343798Z 2022-11-23T01:08:13.9344156Z  Previous write of size 2 at 0x7b8400016e74 by main thread: 2022-11-23T01:08:13.9348069Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:13.9348544Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9348958Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9349480Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9350122Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9350464Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9350847Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9351219Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9351465Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9352178Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9352416Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9352637Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9353025Z #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+0x6562cde) 2022-11-23T01:08:13.9353445Z #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+0x20cf997) 2022-11-23T01:08:13.9353660Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9353863Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9354625Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9354856Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9355061Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9355774Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9355999Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9356430Z #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+0xca56e8) 2022-11-23T01:08:13.9356817Z #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+0x2974180) 2022-11-23T01:08:13.9357059Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9357943Z #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+0x57a0418) 2022-11-23T01:08:13.9358167Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9358430Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9358604Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9358759Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9359013Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9359155Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9359273Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9359393Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9359542Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9359855Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9359974Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9360070Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9360076Z 2022-11-23T01:08:13.9360307Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2022-11-23T01:08:13.9360464Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9360587Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9360747Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9360950Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9361394Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9361663Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9361928Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9362193Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9363301Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9363929Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9364271Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9365315Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9365589Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9365823Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9366096Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9367259Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9367572Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9368687Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9368961Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9369230Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9370399Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9370736Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9371831Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9372146Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9372345Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9372642Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9373765Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9374072Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9375150Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9375441Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9375739Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9376872Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9377209Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9378329Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9378803Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9378998Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9379144Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9379785Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9379995Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9380189Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9380389Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9380626Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9380845Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9381232Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9381619Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9381832Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9382032Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9382820Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9383037Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9383246Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9384308Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9384739Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9385502Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9386109Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9386513Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9387974Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9388322Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9388619Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9388877Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9389131Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9389680Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9389874Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9390054Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9390231Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9390432Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9390904Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9391090Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9391245Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9391254Z 2022-11-23T01:08:13.9391629Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.9391845Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9392100Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9392653Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9392933Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9393431Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9393646Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9393965Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9394555Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9394921Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9395228Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9395535Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9396382Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9396580Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9396946Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9398118Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9398439Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9399670Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9400000Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9400234Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9401095Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9401337Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9401595Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9402005Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9402202Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9402404Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9402596Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9402824Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9403329Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9403545Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9403701Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9403710Z 2022-11-23T01:08:13.9406570Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9406687Z ================== 2022-11-23T01:08:13.9406875Z ================== 2022-11-23T01:08:13.9407167Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9407451Z  Write of size 2 at 0x7b8400016e76 by thread T1: 2022-11-23T01:08:13.9410860Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.9411378Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9411766Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9412247Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9412649Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9413053Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9413265Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9413477Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9413666Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9413675Z 2022-11-23T01:08:13.9413904Z  Previous write of size 2 at 0x7b8400016e76 by main thread: 2022-11-23T01:08:13.9416130Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:13.9416433Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9416655Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9416936Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9417228Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9417424Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9417626Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9417852Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9418064Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9418882Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9419122Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9419393Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9419783Z #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+0x6562cde) 2022-11-23T01:08:13.9420172Z #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+0x20cf997) 2022-11-23T01:08:13.9420384Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9420583Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9421331Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9421594Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9421800Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9422508Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9422745Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9423177Z #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+0xca56e8) 2022-11-23T01:08:13.9423561Z #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+0x2974180) 2022-11-23T01:08:13.9423831Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9424691Z #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+0x57a0418) 2022-11-23T01:08:13.9424904Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9425195Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9425370Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9425536Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9425793Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9425907Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9426028Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9426147Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9426294Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9426608Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9426713Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9426806Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9426812Z 2022-11-23T01:08:13.9427038Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2022-11-23T01:08:13.9427211Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9427334Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9427497Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9427702Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9428143Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9428414Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9428708Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9428975Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9430113Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9430786Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9431092Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9432126Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9432411Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9432630Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9432904Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9434009Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9434347Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9435427Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9435708Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9435979Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9437146Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9437470Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9438563Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9438902Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9439094Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9439390Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9440514Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9440824Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9441887Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9442192Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9442462Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9443597Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9443920Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9445150Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9445546Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9445811Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9446043Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9447027Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9447308Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9447614Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9447941Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9448312Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9448631Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9449251Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9449957Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9450259Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9450539Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9451786Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9452129Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9452492Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9453679Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9454142Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9454930Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9455560Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9455942Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9457424Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9457840Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9458324Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9458719Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9459000Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9459432Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9459713Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9459909Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9460130Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9460387Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9460923Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9461215Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9461384Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9461394Z 2022-11-23T01:08:13.9461812Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.9462098Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9462451Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9462930Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9463210Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9463685Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9463938Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9464236Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9464898Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9465241Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9465509Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9465794Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9466767Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9467035Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9467406Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9468446Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9468782Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9469987Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9470222Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9470367Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9471070Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9471288Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9471492Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9471904Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9472093Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9472315Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9472538Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9472799Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9473301Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9473498Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9473721Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9473733Z 2022-11-23T01:08:13.9476813Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9476943Z ================== 2022-11-23T01:08:13.9477064Z ================== 2022-11-23T01:08:13.9477422Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9477725Z  Write of size 2 at 0x7b8400016e78 by thread T1: 2022-11-23T01:08:13.9481191Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.9481457Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9481679Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9481964Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9482249Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9482518Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9482696Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9482923Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9483062Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9483068Z 2022-11-23T01:08:13.9483258Z  Previous write of size 2 at 0x7b8400016e78 by main thread: 2022-11-23T01:08:13.9485393Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:13.9485695Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9485917Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9486200Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9486489Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9486683Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9486889Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9487116Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:13.9487330Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9488067Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9488307Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9488523Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9488907Z #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+0x6562cde) 2022-11-23T01:08:13.9489293Z #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+0x20cf997) 2022-11-23T01:08:13.9489531Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9489729Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9490500Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9490704Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9490906Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9491612Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9491837Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9492288Z #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+0xca56e8) 2022-11-23T01:08:13.9492672Z #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+0x2974180) 2022-11-23T01:08:13.9492914Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9493769Z #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+0x57a0418) 2022-11-23T01:08:13.9494019Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9494272Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9494446Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9494613Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9494867Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9494981Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9495099Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9495218Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9495370Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9495684Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9495802Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9495896Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9495902Z 2022-11-23T01:08:13.9496123Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2022-11-23T01:08:13.9496276Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9496398Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9496557Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9496761Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9497233Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9497503Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9497766Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9498034Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9499239Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9499914Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9500222Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9501296Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9501572Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9501758Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9502032Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9503189Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9503524Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9504595Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9504887Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9505204Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9506335Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9506689Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9507789Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9508079Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9508268Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9508566Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9509797Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9510111Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9511152Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9511470Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9511738Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9512863Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9513213Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9514319Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9514641Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9514836Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9514984Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9515623Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9515777Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9515970Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9516173Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9516405Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9516624Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9517007Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9517423Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9517640Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9517839Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9518591Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9518832Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9519026Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9519742Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9519969Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9520396Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9520778Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9521015Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9521895Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9522107Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9522369Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9522545Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9522710Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9522964Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9523106Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9523225Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9523345Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9523493Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9523806Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9523928Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9524021Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9524027Z 2022-11-23T01:08:13.9524235Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:13.9524405Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9524628Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9524946Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9525120Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9525413Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9525567Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9525757Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9526159Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9526379Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9526591Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9526782Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9527339Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9527503Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9527731Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9528385Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9528620Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9529390Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9529581Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9529713Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9530301Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9530447Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9530587Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9530842Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9530954Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9531099Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9531221Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9531367Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9531680Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9531797Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9531889Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9531895Z 2022-11-23T01:08:13.9533560Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:13.9533660Z ================== 2022-11-23T01:08:13.9687941Z ================== 2022-11-23T01:08:13.9688505Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9688705Z  Write of size 4 at 0x7b9400041cd8 by thread T3: 2022-11-23T01:08:13.9692125Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:13.9692594Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9692915Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9693470Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9693853Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9694285Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9694498Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9694858Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9695042Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9695050Z 2022-11-23T01:08:13.9695295Z  Previous write of size 4 at 0x7b9400041cd8 by main thread: 2022-11-23T01:08:13.9699146Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:13.9699660Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9700011Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9700447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9700910Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9701216Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9701545Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9701898Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.9702338Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9703519Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9703893Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9704232Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9704810Z #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+0x6562cde) 2022-11-23T01:08:13.9705287Z #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+0x20cf997) 2022-11-23T01:08:13.9705645Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9705929Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9707125Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9707450Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9707771Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9708935Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9709233Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9709929Z #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+0xca56e8) 2022-11-23T01:08:13.9710550Z #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+0x2974180) 2022-11-23T01:08:13.9710998Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9712652Z #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+0x57a0418) 2022-11-23T01:08:13.9712993Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9713299Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9713488Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9713655Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9713917Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9714067Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9714207Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9714317Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9714463Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9714784Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9714947Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9715042Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9715048Z 2022-11-23T01:08:13.9715352Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2022-11-23T01:08:13.9715524Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9715712Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9715877Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9716081Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9716741Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9717015Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9717363Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9717742Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9719619Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9720759Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9721069Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9722136Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9722418Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9722634Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9722903Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9724016Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9724325Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9725432Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9725713Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9725983Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9727120Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9727479Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9728573Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9728861Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9729052Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9729398Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9730511Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9730845Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9731916Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9732193Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9732461Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9733611Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9733948Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9735048Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9735369Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9735566Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9735715Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9736355Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9736510Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9736705Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9736904Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9737137Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9737383Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9737765Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9738204Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9738415Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9738794Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9739601Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9739864Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9740070Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9740783Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9741008Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9741437Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9741820Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9742092Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9742968Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9743179Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9743471Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9743645Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9743811Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9744065Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9744170Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9744290Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9744410Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9744558Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9744870Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9744987Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9745080Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9745087Z 2022-11-23T01:08:13.9745324Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9745492Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9745716Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9746032Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9746206Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9746603Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9746829Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9747073Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9747610Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9747923Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9748212Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9748451Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9749278Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9749622Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9750018Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9751179Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9751519Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9752711Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9753003Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9753227Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9754061Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9754256Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9754469Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9754884Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9755070Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9755259Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9755428Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9755647Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9755967Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9756087Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9756238Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9756247Z 2022-11-23T01:08:13.9758786Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.9758912Z ================== 2022-11-23T01:08:13.9759062Z ================== 2022-11-23T01:08:13.9759391Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9759705Z  Write of size 4 at 0x7b9400041ce0 by thread T3: 2022-11-23T01:08:13.9763442Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:13.9763736Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9764028Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9764382Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9764676Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9764947Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9765131Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9765347Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9765484Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9765490Z 2022-11-23T01:08:13.9765690Z  Previous write of size 4 at 0x7b9400041ce0 by main thread: 2022-11-23T01:08:13.9768098Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:13.9768372Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9768594Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9768875Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9769199Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9769392Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9769667Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9769983Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.9770311Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9771452Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9771863Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9772220Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9772847Z #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+0x6562cde) 2022-11-23T01:08:13.9773379Z #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+0x20cf997) 2022-11-23T01:08:13.9773733Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9774078Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9775347Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9775655Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9776053Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9777145Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9777592Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9778205Z #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+0xca56e8) 2022-11-23T01:08:13.9779024Z #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+0x2974180) 2022-11-23T01:08:13.9779267Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9780135Z #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+0x57a0418) 2022-11-23T01:08:13.9780350Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9780614Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9780792Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9780958Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9781214Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9781329Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9781447Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9781566Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9781773Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9782176Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9782285Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9782378Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9782384Z 2022-11-23T01:08:13.9782638Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2022-11-23T01:08:13.9782805Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9782929Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9783089Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9783296Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9783743Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9784057Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9784323Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9784588Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9785659Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9786327Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9786633Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9787724Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9788027Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9788214Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9788488Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9789673Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9789998Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9791196Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9791479Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9791749Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9792919Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9793240Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9794371Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9794664Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9794858Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9795152Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9796250Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9796598Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9797646Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9797923Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9798191Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9799356Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9799703Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9800805Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9801091Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9801283Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9801429Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9802075Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9802226Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9802448Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9802651Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9802888Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9803106Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9803573Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9803962Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9804208Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9804406Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9805160Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9805367Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9805575Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9806287Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9806515Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9807191Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9807780Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9808069Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9809249Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9809639Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9810073Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9810387Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9810651Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9811114Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9811296Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9811487Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9811665Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9811876Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9812374Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9812587Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9812763Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9812776Z 2022-11-23T01:08:13.9813201Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9813401Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9813666Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9814037Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9814211Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9814551Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9814781Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9815098Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9815856Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9816233Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9816516Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9816775Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9817515Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9817792Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9818176Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9819514Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9819887Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9821250Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9821660Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9821924Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9822917Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9823164Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9823436Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9823894Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9824098Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9824381Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9824584Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9824838Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9825407Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9825602Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9825747Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9825771Z 2022-11-23T01:08:13.9828863Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.9828985Z ================== 2022-11-23T01:08:13.9829174Z ================== 2022-11-23T01:08:13.9829469Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9829847Z  Write of size 4 at 0x7b9400041ce4 by thread T3: 2022-11-23T01:08:13.9833885Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:13.9834371Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9834772Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9835256Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9835779Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9836273Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9836506Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9836907Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9837137Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9837152Z 2022-11-23T01:08:13.9837498Z  Previous write of size 4 at 0x7b9400041ce4 by main thread: 2022-11-23T01:08:13.9841612Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:13.9842097Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9842499Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9842790Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9843079Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9843272Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9843474Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9843703Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.9843948Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9844660Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9844896Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9845115Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9845499Z #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+0x6562cde) 2022-11-23T01:08:13.9845895Z #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+0x20cf997) 2022-11-23T01:08:13.9846109Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9846309Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9847087Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9847290Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9847495Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9848209Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9848460Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9848887Z #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+0xca56e8) 2022-11-23T01:08:13.9849277Z #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+0x2974180) 2022-11-23T01:08:13.9849516Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9850390Z #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+0x57a0418) 2022-11-23T01:08:13.9850604Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9850866Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9851066Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9851233Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9851489Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9851605Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9851714Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9851833Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9851980Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9852294Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9852415Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9852507Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9852512Z 2022-11-23T01:08:13.9852739Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2022-11-23T01:08:13.9852932Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9853057Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9853207Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9853411Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9853866Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9854134Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9854397Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9854662Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9855759Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9856385Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9856705Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9857735Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9858036Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9858222Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9858627Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9859884Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9860196Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9861249Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9861574Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9861842Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9862972Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9863296Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9864419Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9864709Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9864902Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9865196Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9866328Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9866636Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9867724Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9868013Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9868282Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9869406Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9869917Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9871741Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9872289Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9872613Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9872872Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9874064Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9874324Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9874685Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9875049Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9875475Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9875854Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9876577Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9877293Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9877686Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9878051Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9879408Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9879773Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9880138Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9881418Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9881835Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9882612Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9883312Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9883780Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9885368Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9885752Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9886339Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9886644Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9886934Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9887393Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9887578Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9887783Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9887999Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9888274Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9888822Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9889032Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9889185Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9889194Z 2022-11-23T01:08:13.9889664Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9889965Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9890367Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9890928Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9891245Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9891757Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9892033Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9892386Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9893185Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9893601Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9893933Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9894261Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9895302Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9895577Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9895951Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9897146Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9897547Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9899098Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9899415Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9899672Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9900759Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9901075Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9901344Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9901818Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9902026Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9902241Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9902433Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9902619Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9902933Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9903052Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9903146Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9903152Z 2022-11-23T01:08:13.9904906Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.9904986Z ================== 2022-11-23T01:08:13.9905049Z ================== 2022-11-23T01:08:13.9905221Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9905397Z  Write of size 4 at 0x7b9400041ce8 by thread T3: 2022-11-23T01:08:13.9907560Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:13.9907849Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9908078Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9908362Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9908654Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9908922Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9909066Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9909290Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9909425Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9909431Z 2022-11-23T01:08:13.9909692Z  Previous write of size 4 at 0x7b9400041ce8 by main thread: 2022-11-23T01:08:13.9911868Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:13.9912144Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9912362Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9912645Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9912932Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9913138Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9913339Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9913565Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.9913777Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9914499Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9914738Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9914959Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9915344Z #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+0x6562cde) 2022-11-23T01:08:13.9915731Z #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+0x20cf997) 2022-11-23T01:08:13.9915981Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9916183Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9916930Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9917138Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9917343Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9918081Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9918307Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9918736Z #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+0xca56e8) 2022-11-23T01:08:13.9919131Z #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+0x2974180) 2022-11-23T01:08:13.9919372Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9920259Z #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+0x57a0418) 2022-11-23T01:08:13.9920471Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9920735Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9920910Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9921077Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9921332Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9921448Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9921568Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9921676Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9921851Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9922163Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9922281Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9922373Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9922379Z 2022-11-23T01:08:13.9922600Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2022-11-23T01:08:13.9922765Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9922891Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9923052Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9923256Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9923698Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9923966Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9924232Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9924506Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9925597Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9926237Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9926567Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9927590Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9927868Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9928055Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9928325Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9929464Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9929773Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9930843Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9931151Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9931423Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9933164Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9933784Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9935784Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9936313Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9936616Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9937161Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:13.9938929Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:13.9939486Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:13.9941463Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:13.9942050Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:13.9942554Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:13.9944704Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:13.9945249Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:13.9947277Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:13.9947848Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:13.9948182Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:13.9948447Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:13.9949692Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:13.9949955Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:13.9950338Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:13.9950717Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:13.9951149Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:13.9951549Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9952274Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:13.9952957Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:13.9953325Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9953697Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9955063Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9955403Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9955842Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9957106Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9957528Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9958291Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:13.9959046Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:13.9959474Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9960984Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:13.9961376Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9961863Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9962185Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9962476Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9962923Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9963116Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9963334Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9963591Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9963869Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9964456Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9964675Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9964842Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9964854Z 2022-11-23T01:08:13.9965181Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:13.9965357Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:13.9965582Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:13.9965903Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:13.9966114Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:13.9966416Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:13.9966572Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:13.9966765Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:13.9967171Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:13.9967394Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:13.9967583Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:13.9967774Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:13.9968327Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:13.9968493Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:13.9968722Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:13.9969410Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:13.9969620Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:13.9970393Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:13.9970585Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:13.9970745Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:13.9971337Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:13.9971486Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:13.9971639Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:13.9971881Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9972000Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9972120Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9972241Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9972388Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9972700Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9972820Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9972915Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9972921Z 2022-11-23T01:08:13.9974619Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:13.9974693Z ================== 2022-11-23T01:08:13.9974761Z ================== 2022-11-23T01:08:13.9974930Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:13.9975105Z  Write of size 4 at 0x7b9400041cec by thread T3: 2022-11-23T01:08:13.9977231Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:13.9977524Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9977749Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9978030Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9978320Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9978751Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:13.9978948Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:13.9979175Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:13.9979315Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:13.9979322Z 2022-11-23T01:08:13.9979512Z  Previous write of size 4 at 0x7b9400041cec by main thread: 2022-11-23T01:08:13.9981684Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:13.9981950Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:13.9982206Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:13.9982487Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:13.9982777Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:13.9982973Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:13.9983176Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:13.9983465Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:13.9983678Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:13.9984395Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:13.9984637Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:13.9984856Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:13.9985271Z #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+0x6562cde) 2022-11-23T01:08:13.9985663Z #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+0x20cf997) 2022-11-23T01:08:13.9985879Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:13.9986080Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:13.9986844Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:13.9987075Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:13.9987281Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:13.9987990Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:13.9988216Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:13.9988649Z #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+0xca56e8) 2022-11-23T01:08:13.9989035Z #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+0x2974180) 2022-11-23T01:08:13.9989275Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:13.9990247Z #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+0x57a0418) 2022-11-23T01:08:13.9990468Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:13.9990734Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:13.9990913Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:13.9991114Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:13.9991358Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:13.9991474Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:13.9991593Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:13.9991717Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:13.9991867Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:13.9992185Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:13.9992307Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:13.9992399Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:13.9992405Z 2022-11-23T01:08:13.9992628Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2022-11-23T01:08:13.9992795Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:13.9992907Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:13.9993068Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:13.9993337Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:13.9993784Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:13.9994057Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:13.9994324Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:13.9994631Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:13.9995704Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:13.9996385Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:13.9996692Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:13.9997721Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:13.9997997Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:13.9998185Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:13.9998480Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:13.9999598Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:13.9999933Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.0001012Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.0001289Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.0001557Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.0002708Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.0003043Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.0004143Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.0004463Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.0004660Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.0004957Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.0006066Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.0006399Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.0007477Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.0007808Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.0008075Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.0009203Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.0009537Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.0010657Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.0010948Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.0011140Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.0011288Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.0011925Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.0012106Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.0012304Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.0012509Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.0012743Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.0012965Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.0013351Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.0013744Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.0013960Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.0014161Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.0014953Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.0015161Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.0015368Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.0016076Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.0016327Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.0016757Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.0017141Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.0017384Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.0018245Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.0018599Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.0018960Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.0019174Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.0019344Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.0019605Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.0019721Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.0019843Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.0019963Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.0020113Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.0020431Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.0020552Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.0020647Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.0020655Z 2022-11-23T01:08:14.0020924Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.0021080Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.0021304Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.0021624Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.0021799Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.0022096Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.0022252Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.0022447Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.0022854Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.0023077Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.0023267Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.0023461Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.0024016Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.0024183Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.0024448Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.0025115Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.0025326Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.0026113Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.0026319Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.0026462Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.0027042Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.0027189Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.0027341Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.0027599Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.0027704Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.0027822Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.0027944Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.0028096Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.0028406Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.0028526Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.0028620Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.0028626Z 2022-11-23T01:08:14.0030394Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.0030470Z ================== 2022-11-23T01:08:14.0931151Z ================== 2022-11-23T01:08:14.0932451Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.0932646Z  Write of size 8 at 0x7ba4000473b0 by thread T2: 2022-11-23T01:08:14.0934895Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.0935349Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.0935576Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.0935865Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.0936156Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.0936427Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.0936569Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.0936796Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.0936981Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.0936990Z 2022-11-23T01:08:14.0937182Z  Previous write of size 8 at 0x7ba4000473b0 by main thread: 2022-11-23T01:08:14.0939746Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.0940194Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.0940429Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.0940965Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.0943356Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.0943775Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.0944151Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.0944568Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.0944840Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.0945554Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.0945859Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.0946083Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.0946473Z #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+0x6562cde) 2022-11-23T01:08:14.0946863Z #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+0x20cf997) 2022-11-23T01:08:14.0947079Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.0947313Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.0948063Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.0948271Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.0948478Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.0949354Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.0949826Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.0950472Z #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+0xca56e8) 2022-11-23T01:08:14.0951114Z #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+0x2974180) 2022-11-23T01:08:14.0951526Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.0952994Z #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+0x57a0418) 2022-11-23T01:08:14.0953416Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.0953855Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.0954160Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.0954462Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.0954877Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.0955061Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.0955260Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.0955449Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.0955683Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.0956186Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.0956392Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.0956562Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.0956572Z 2022-11-23T01:08:14.0957048Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2022-11-23T01:08:14.0957358Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.0957588Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.0957871Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.0958096Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.0958720Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.0959167Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.0959562Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.0959941Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.0961554Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.0962591Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.0963068Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.0964686Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.0965124Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.0965404Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.0965823Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.0967447Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.0967809Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.0969337Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.0969751Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.0970159Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.0971969Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.0972462Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.0974224Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.0974679Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.0974935Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.0975240Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.0976437Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.0976928Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.0978629Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.0979161Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.0979545Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.0981301Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.0981776Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.0983455Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.0983913Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.0984277Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.0984476Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.0985469Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.0985696Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.0985998Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.0986298Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.0986657Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.0987003Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.0987566Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.0988165Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.0988528Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.0988826Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.0990071Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.0990401Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.0990761Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.0991829Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.0992162Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.0992664Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.0993056Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.0993297Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.0994282Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.0994614Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.0995086Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.0995414Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.0995690Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.0996110Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.0996303Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.0996484Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.0996720Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.0996905Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.0997402Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.0997594Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.0997747Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.0997758Z 2022-11-23T01:08:14.0998192Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.0998506Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.0998866Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.0999386Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.0999680Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1000159Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1000412Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1000684Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1001336Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1001699Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1001999Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1002300Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1003115Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1003344Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1003670Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1004733Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1005160Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1006431Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1006726Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1006974Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1007827Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1008062Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1008319Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1008734Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1008918Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1009044Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1009179Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1009415Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1009991Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1010151Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1010287Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1010297Z 2022-11-23T01:08:14.1012476Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.1012640Z ================== 2022-11-23T01:08:14.1012751Z ================== 2022-11-23T01:08:14.1012974Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1013154Z  Write of size 8 at 0x7ba4000473b8 by thread T2: 2022-11-23T01:08:14.1015908Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.1016250Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1016543Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1016830Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1017238Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1017581Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1017816Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1018142Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1018317Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1018326Z 2022-11-23T01:08:14.1018719Z  Previous write of size 8 at 0x7ba4000473b8 by main thread: 2022-11-23T01:08:14.1021662Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.1022181Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1022539Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1023010Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1023477Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1023806Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1024140Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1024519Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.1024857Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1026033Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.1026282Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.1026499Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1026888Z #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+0x6562cde) 2022-11-23T01:08:14.1027323Z #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+0x20cf997) 2022-11-23T01:08:14.1027535Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1027737Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1028486Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1028692Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1028900Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1029670Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1029933Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1030368Z #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+0xca56e8) 2022-11-23T01:08:14.1030755Z #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+0x2974180) 2022-11-23T01:08:14.1030998Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1031864Z #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+0x57a0418) 2022-11-23T01:08:14.1032111Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1032373Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1032549Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1032715Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1032968Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1033084Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1033192Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1033314Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1033464Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1033777Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1033897Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1033991Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1033997Z 2022-11-23T01:08:14.1034238Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2022-11-23T01:08:14.1034407Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1034530Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1034707Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1034914Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1035377Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1035646Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1035913Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1036179Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1037280Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1037909Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1038226Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1039292Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1039568Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1039759Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.1040029Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.1041174Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.1041484Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1042553Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1042868Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1043139Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1044268Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1044615Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1045719Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1046011Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1046205Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1046502Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.1047640Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.1047950Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1049028Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1049316Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1049586Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1050744Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1051065Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1052162Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1052578Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1052774Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1052924Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.1053562Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.1053718Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.1053948Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.1054150Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.1054385Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.1054602Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1055039Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.1055432Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.1055648Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1055848Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1056613Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1056845Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1057049Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1057901Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1058238Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1058886Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.1059505Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.1059855Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1061194Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1061529Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1061832Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1062023Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1062298Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1062723Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1062925Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1063105Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1063274Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1063500Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1064036Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1064261Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1064408Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1064419Z 2022-11-23T01:08:14.1064757Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.1065015Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1065368Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1065964Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1066245Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1066648Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1066876Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1067176Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1067855Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1068276Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1068609Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1068924Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1069983Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1070292Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1070716Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1071877Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1072239Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1073626Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1073962Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1074226Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1075292Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1075542Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1075806Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1076330Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1076541Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1076767Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1076949Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1077219Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1077803Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1078022Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1078181Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1078190Z 2022-11-23T01:08:14.1081291Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.1081468Z ================== 2022-11-23T01:08:14.1081689Z ================== 2022-11-23T01:08:14.1081985Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1082298Z  Write of size 8 at 0x7ba4000473c0 by thread T2: 2022-11-23T01:08:14.1086314Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.1086811Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1087265Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1087786Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1088288Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1088633Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1088776Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1089041Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1089245Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1089314Z 2022-11-23T01:08:14.1089621Z  Previous write of size 8 at 0x7ba4000473c0 by main thread: 2022-11-23T01:08:14.1093218Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.1093484Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1093706Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1093986Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1094275Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1094465Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1094702Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1094931Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.1095145Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1095855Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.1096093Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.1096339Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1096722Z #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+0x6562cde) 2022-11-23T01:08:14.1097112Z #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+0x20cf997) 2022-11-23T01:08:14.1097327Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1097527Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1098276Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1098580Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1098787Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1099589Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1099814Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1100246Z #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+0xca56e8) 2022-11-23T01:08:14.1100630Z #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+0x2974180) 2022-11-23T01:08:14.1100904Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1101765Z #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+0x57a0418) 2022-11-23T01:08:14.1101978Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1102237Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1102413Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1102578Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1102836Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1102952Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1103070Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1103190Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1103338Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1103675Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1103794Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1103874Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1103883Z 2022-11-23T01:08:14.1104112Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2022-11-23T01:08:14.1104279Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1104403Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1104563Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1104768Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1105213Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1105508Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1105772Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1106036Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1107124Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1107747Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1108079Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1109121Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1109426Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1109680Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.1109950Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.1111053Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.1111373Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1112475Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1112756Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1113029Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1114170Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1114521Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1115611Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1115940Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1116134Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1116434Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.1117531Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.1117867Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1118932Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1119209Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1119478Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1120639Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1120964Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1122060Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1122391Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1122583Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1122730Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.1123369Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.1123524Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.1123718Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.1123920Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.1124178Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.1124398Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1124780Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.1125172Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.1125386Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1125611Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1126360Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1126565Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1126769Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1127480Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1127704Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1128132Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.1128549Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.1128790Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1129689Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1129926Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1130186Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1130358Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1130525Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1130778Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1130896Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1131016Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1131136Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1131272Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1131586Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1131704Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1131800Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1131806Z 2022-11-23T01:08:14.1132026Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.1132191Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1132413Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1132728Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1132900Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1133220Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1133374Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1133567Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1133977Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1134196Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1134382Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1134575Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1135129Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1135321Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1135546Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1136211Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1136423Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1137194Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1137372Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1137513Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1138111Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1138261Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1138413Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1138767Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1138887Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1139007Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1139133Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1139282Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1139594Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1139762Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1139843Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1139848Z 2022-11-23T01:08:14.1141525Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.1141597Z ================== 2022-11-23T01:08:14.1239628Z ================== 2022-11-23T01:08:14.1239968Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1240303Z  Write of size 8 at 0x7ba400047a38 by thread T2: 2022-11-23T01:08:14.1244574Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.1244944Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1245218Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1245625Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1246040Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1246498Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1246720Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1247031Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1247248Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1247255Z 2022-11-23T01:08:14.1247569Z  Previous write of size 8 at 0x7ba400047a38 by main thread: 2022-11-23T01:08:14.1251094Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.1251529Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1251911Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1252435Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1252896Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1253198Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1253531Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1253881Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.1258340Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1259504Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.1259934Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.1260259Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1260812Z #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+0x6562cde) 2022-11-23T01:08:14.1261396Z #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+0x20cf997) 2022-11-23T01:08:14.1261741Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1262051Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1263152Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1263495Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1263779Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1264890Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1265247Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1266031Z #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+0xca56e8) 2022-11-23T01:08:14.1266669Z #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+0x2974180) 2022-11-23T01:08:14.1267073Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1268459Z #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+0x57a0418) 2022-11-23T01:08:14.1268800Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1269287Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1269685Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1269985Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1270486Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1270712Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1270937Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1271097Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1271246Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1271559Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1271677Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1271769Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1271775Z 2022-11-23T01:08:14.1272034Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2022-11-23T01:08:14.1272208Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1272336Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1272500Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1272796Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1273241Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1273513Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1273778Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1274045Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1275112Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1275780Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1276086Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1277123Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1277439Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1277625Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.1277902Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.1279009Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.1279345Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1280410Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1280685Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1280986Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1282130Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1282453Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1283573Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1283874Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1284065Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1284365Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.1285466Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.1285808Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1286870Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1287170Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1287441Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1288581Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1288925Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1290019Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1290322Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1290516Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1290651Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.1291326Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.1291478Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.1291673Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.1291873Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.1292107Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.1292312Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1292712Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.1293123Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.1293337Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1293539Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1294285Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1294488Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1294692Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1295404Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1295653Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1296080Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.1296469Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.1296710Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1297581Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1297821Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1298084Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1298260Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1298426Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1298808Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1298924Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1299034Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1299156Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1299306Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1299622Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1299743Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1299838Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1299844Z 2022-11-23T01:08:14.1300065Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.1300233Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1300512Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1301093Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1301333Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1301728Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1301939Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1302212Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1302804Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1303131Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1303305Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1303500Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1304075Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1304242Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1304469Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1305134Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1305345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1306150Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1306327Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1306474Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1307055Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1307201Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1307355Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1307650Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1307765Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1307883Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1308003Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1308150Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1308461Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1308568Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1308661Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1308668Z 2022-11-23T01:08:14.1310430Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.1310524Z ================== 2022-11-23T01:08:14.1339628Z ================== 2022-11-23T01:08:14.1339972Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1340210Z  Write of size 8 at 0x7ba400046868 by thread T2: 2022-11-23T01:08:14.1346672Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.1347136Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1347523Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1348033Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1348518Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1348972Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1349203Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1349672Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1349909Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1349919Z 2022-11-23T01:08:14.1350359Z  Previous write of size 8 at 0x7ba400046868 by main thread: 2022-11-23T01:08:14.1353889Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.1354253Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1354525Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1354877Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1355252Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1355512Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1355805Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1356188Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.1356498Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1357621Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.1357997Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.1358324Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1358888Z #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+0x6562cde) 2022-11-23T01:08:14.1359459Z #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+0x20cf997) 2022-11-23T01:08:14.1377344Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1377744Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1379294Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1379527Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1379731Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1380438Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1380698Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1381122Z #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+0xca56e8) 2022-11-23T01:08:14.1381505Z #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+0x2974180) 2022-11-23T01:08:14.1381736Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1382586Z #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+0x57a0418) 2022-11-23T01:08:14.1382790Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1383074Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1383245Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1383403Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1383649Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1383761Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1383878Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1383998Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1384150Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1384463Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1384610Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1384702Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1384709Z 2022-11-23T01:08:14.1384962Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2022-11-23T01:08:14.1385120Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1385244Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1385398Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1385597Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1386036Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1386299Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1386556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1386816Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1387915Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1388535Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1388840Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1389990Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1390263Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1390445Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.1390710Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.1391847Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.1392164Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1393215Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1393516Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1393782Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1394914Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1395230Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1396368Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1396658Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1396874Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1397166Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.1398260Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.1398578Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.1399680Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.1399955Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.1400223Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.1401366Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.1401711Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.1402804Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.1403094Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.1403312Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.1403459Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.1404102Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.1404286Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.1404485Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.1404684Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.1404948Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.1405165Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.1405548Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.1405934Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.1406146Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.1406344Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1407095Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1407311Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1407514Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1408250Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.1408473Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.1408898Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.1409279Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.1409544Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.1410407Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1410620Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1410881Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3de1) 2022-11-23T01:08:14.1411055Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.1411219Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cca5e) 2022-11-23T01:08:14.1411473Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1411587Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1411707Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1411825Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1411972Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1412309Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1412428Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1412522Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1412528Z 2022-11-23T01:08:14.1412739Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.1412909Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1413126Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1413441Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1413615Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1413904Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1414087Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1414277Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1414685Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1414906Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1415090Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1415279Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1415833Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1415999Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1416227Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1416890Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1417126Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1417909Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1418085Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1418218Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1418961Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1419163Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1419314Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1419561Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1419674Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1419793Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1419913Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1420059Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1420372Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1420491Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1420582Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1420589Z 2022-11-23T01:08:14.1422277Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.1422347Z ================== 2022-11-23T01:08:14.1773796Z [ OK ] LazyOpsTest.TestMultiIndexPut (517 ms) 2022-11-23T01:08:14.1774174Z [ RUN ] LazyOpsTest.TestMultiIndexPutHeadNull 2022-11-23T01:08:14.1803647Z ================== 2022-11-23T01:08:14.1804265Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1804479Z  Write of size 4 at 0x7b88000040e8 by main thread: 2022-11-23T01:08:14.1808574Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.1809273Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1809690Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1810079Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1810640Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1810992Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1811297Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1811653Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.1812033Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1813615Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.1813994Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.1814376Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1815686Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1815927Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1816133Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1816909Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1817154Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1818019Z #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+0x57a0418) 2022-11-23T01:08:14.1818245Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1818421Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1818896Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1819017Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1819139Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1819319Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1819532Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1820029Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1820229Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1820377Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1820415Z 2022-11-23T01:08:14.1820808Z  Previous write of size 4 at 0x7b88000040e8 by thread T3: 2022-11-23T01:08:14.1824210Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.1824541Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1824764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1825053Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1825339Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1825610Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1825753Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1825975Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1826134Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1826185Z 2022-11-23T01:08:14.1826539Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.1826738Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1826864Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1827068Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1827397Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1828069Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1828498Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1829081Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1829634Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1830753Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1831398Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1831702Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1832770Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1833058Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1833263Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.1833915Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.1834095Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.1834304Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.1835078Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1835321Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1836202Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1836428Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1836602Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1836862Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1836980Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1837100Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1837224Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1837372Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1837731Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1837848Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1837940Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1837946Z 2022-11-23T01:08:14.1838173Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.1838340Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1838549Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1838868Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1839045Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1839339Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1839490Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1839679Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1840088Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1840310Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1840497Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1840687Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1841272Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1841440Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1841667Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1842327Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1842562Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1843347Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1843525Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1843669Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1844249Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1844396Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1844546Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1844801Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1844917Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1845023Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1845141Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1845289Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1845600Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1845744Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1845838Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1845844Z 2022-11-23T01:08:14.1847506Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.1847610Z ================== 2022-11-23T01:08:14.1851367Z ================== 2022-11-23T01:08:14.1851771Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1852126Z  Write of size 4 at 0x7b88000040ec by main thread: 2022-11-23T01:08:14.1854860Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.1855140Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1855394Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1855683Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1855983Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1856177Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1856505Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1856738Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.1856955Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1857746Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.1857997Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.1858197Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1859150Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1859358Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1860172Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1861402Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1861870Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1863317Z #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+0x57a0418) 2022-11-23T01:08:14.1863594Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1863865Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1864222Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1864459Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1864652Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1864826Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1865060Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1865600Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1865780Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1865928Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1865938Z 2022-11-23T01:08:14.1866269Z  Previous write of size 4 at 0x7b88000040ec by thread T3: 2022-11-23T01:08:14.1870000Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.1870446Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1870736Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1871060Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1871487Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1871865Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1872054Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1872357Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1872539Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1872599Z 2022-11-23T01:08:14.1872911Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.1873153Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1873334Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1873578Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1873888Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1874575Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1874871Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1875138Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1875405Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1876948Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1877892Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1878326Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1879805Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1880124Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1880304Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.1881211Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.1881466Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.1881769Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.1882884Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1883236Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1884496Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1884847Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1885106Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1885476Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1885660Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1885827Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1886009Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1886160Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1886473Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1886591Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1886684Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1886690Z 2022-11-23T01:08:14.1886915Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.1887135Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1887455Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1887902Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1888144Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1888555Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1888770Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1889084Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1889690Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1890009Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1890274Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1890568Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1891396Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1891718Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1892034Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1892978Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1893194Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1893962Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1894191Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1894371Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1895238Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1895475Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1895690Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1896019Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1896164Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1896286Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1896423Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1896608Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1897098Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1897376Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1897532Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1897543Z 2022-11-23T01:08:14.1900426Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.1900550Z ================== 2022-11-23T01:08:14.1900658Z ================== 2022-11-23T01:08:14.1900889Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1901162Z  Write of size 4 at 0x7b88000040f0 by main thread: 2022-11-23T01:08:14.1905303Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.1905804Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1906211Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1906642Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1907062Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1907297Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1907675Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1907985Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.1908297Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1909684Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.1910104Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.1910430Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1911677Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1912008Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1912402Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1913548Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1913935Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1914919Z #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+0x57a0418) 2022-11-23T01:08:14.1915210Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1915483Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1915874Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1916049Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1916234Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1916424Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1916652Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1917137Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1917322Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1917427Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1917450Z 2022-11-23T01:08:14.1917746Z  Previous write of size 4 at 0x7b88000040f0 by thread T3: 2022-11-23T01:08:14.1921199Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.1921607Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1921958Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1922445Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1922906Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1923336Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1923495Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1923720Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1923859Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1923866Z 2022-11-23T01:08:14.1924157Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.1924464Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1924650Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1924892Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1925170Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1925865Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1926280Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1926699Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1927169Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1928828Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1929844Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1930301Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1931454Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1931878Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1932151Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.1933178Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.1933473Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.1933787Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.1934981Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1935396Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1936722Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1937051Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1937341Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1937669Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1937789Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1937910Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1938031Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1938180Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1938671Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1938802Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1938926Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1938934Z 2022-11-23T01:08:14.1939313Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.1939559Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1939871Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1940298Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1940564Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1941058Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1941326Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1941673Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1942307Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1942648Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1942938Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1943237Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1943933Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1944140Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1944422Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1945387Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1945702Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1946658Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1946856Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1946988Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1947934Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1948225Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1948470Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1948917Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1949098Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1949309Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1949522Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1949874Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1950417Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1950597Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1950750Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1950761Z 2022-11-23T01:08:14.1954888Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.1955006Z ================== 2022-11-23T01:08:14.1955176Z ================== 2022-11-23T01:08:14.1955461Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1955758Z  Write of size 4 at 0x7b88000040f4 by main thread: 2022-11-23T01:08:14.1959750Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.1960265Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1960671Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1961190Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1961711Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1962079Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.1962392Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.1962620Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.1962834Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.1963626Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.1963846Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.1964082Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.1964829Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.1965036Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.1965244Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.1966059Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1966303Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1967180Z #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+0x57a0418) 2022-11-23T01:08:14.1967389Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1967579Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1967836Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1967953Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1968059Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1968180Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1968356Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1968670Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1968790Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1968881Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1968887Z 2022-11-23T01:08:14.1969082Z  Previous write of size 4 at 0x7b88000040f4 by thread T3: 2022-11-23T01:08:14.1971248Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.1971543Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.1971767Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.1972051Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.1972337Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.1972607Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.1972750Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.1972979Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.1973113Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.1973118Z 2022-11-23T01:08:14.1973337Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.1973504Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.1973630Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.1973791Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.1974024Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.1974467Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.1974735Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.1974999Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.1975263Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.1976351Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.1976991Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.1977296Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.1978355Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.1978753Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.1978921Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.1979582Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.1979810Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.1980017Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.1980793Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.1981039Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.1981900Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.1982145Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.1982335Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.1982592Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1982737Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1982924Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1983097Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1983325Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1983871Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1984133Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1984309Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1984318Z 2022-11-23T01:08:14.1984781Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.1985057Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.1985370Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.1985869Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.1986150Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.1986696Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.1986951Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.1987263Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.1987996Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.1988407Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.1988714Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.1989021Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.1989956Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.1990236Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.1990719Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.1991849Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.1992166Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.1993426Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.1993811Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.1994056Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.1995112Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.1995389Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.1995657Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.1995927Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.1996048Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.1996168Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.1996288Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.1996426Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.1996741Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.1996861Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.1996959Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.1996965Z 2022-11-23T01:08:14.1998677Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.1998753Z ================== 2022-11-23T01:08:14.1998818Z ================== 2022-11-23T01:08:14.1998990Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.1999169Z  Write of size 4 at 0x7b88000040f8 by main thread: 2022-11-23T01:08:14.2001340Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.2001646Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2001979Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2002418Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2002842Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2003202Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2003560Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2003993Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2004398Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2005703Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.2005930Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.2006134Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2006918Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2007123Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2007436Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2008714Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2009115Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2010241Z #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+0x57a0418) 2022-11-23T01:08:14.2010580Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2010873Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2011268Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2011448Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2011638Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2011823Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2012052Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2012569Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2012754Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2012911Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2012920Z 2022-11-23T01:08:14.2013229Z  Previous write of size 4 at 0x7b88000040f8 by thread T3: 2022-11-23T01:08:14.2016606Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.2016887Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2017114Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2017533Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2018025Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2018450Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2018785Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2019139Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2019341Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2019348Z 2022-11-23T01:08:14.2019701Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.2019978Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2020163Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2020413Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2020714Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2021490Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2021910Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2022328Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2022719Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2024191Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2024957Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2025431Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2027127Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2027581Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2027895Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.2029010Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.2029299Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.2029660Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.2030774Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2031093Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2032478Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2032894Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2033256Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2033746Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2033959Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2034144Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2034330Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2034560Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2035019Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2035204Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2035355Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2035364Z 2022-11-23T01:08:14.2035727Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.2036023Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2036392Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2036907Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2037193Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2037650Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2037836Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2038150Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2038810Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2039266Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2039554Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2039848Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2040770Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2041039Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2041376Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2042476Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2042810Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2044003Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2044320Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2044537Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2045541Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2045779Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2045939Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2046249Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2046354Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2046478Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2046597Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2046745Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2047062Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2047180Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2047272Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2047279Z 2022-11-23T01:08:14.2048968Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2049072Z ================== 2022-11-23T01:08:14.2049137Z ================== 2022-11-23T01:08:14.2049307Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2049487Z  Write of size 4 at 0x7b88000040fc by main thread: 2022-11-23T01:08:14.2051652Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.2051915Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2052167Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2052451Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2052745Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2052936Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2053137Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2053367Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2053580Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2054390Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.2054607Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.2054809Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2055572Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2055776Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2055980Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2056778Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2057023Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2057885Z #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+0x57a0418) 2022-11-23T01:08:14.2058124Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2058364Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2058736Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2058852Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2058960Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2059083Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2059231Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2059541Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2059660Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2059753Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2059759Z 2022-11-23T01:08:14.2059948Z  Previous write of size 4 at 0x7b88000040fc by thread T3: 2022-11-23T01:08:14.2062179Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.2062449Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2062671Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2062955Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2063243Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2063548Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2063688Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2063912Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2064048Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2064054Z 2022-11-23T01:08:14.2064275Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.2064442Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2064565Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2064726Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2064929Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2065370Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2065644Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2065909Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2066172Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2067267Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2067907Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2068238Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2069264Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2069545Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2069808Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.2070472Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.2070692Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.2070903Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.2071679Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2071922Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2072822Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2073036Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2073220Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2073477Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2073592Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2073712Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2073836Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2073984Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2074295Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2074416Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2074511Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2074516Z 2022-11-23T01:08:14.2074729Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.2074883Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2075104Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2075452Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2075628Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2075922Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2076074Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2076267Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2076674Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2076893Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2077111Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2077303Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2077866Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2078028Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2078255Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2078915Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2079127Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2079933Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2080112Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2080258Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2080836Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2080984Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2081135Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2081389Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2081518Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2081636Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2081756Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2081903Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2082218Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2082335Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2082430Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2082436Z 2022-11-23T01:08:14.2084088Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2084159Z ================== 2022-11-23T01:08:14.2123895Z ================== 2022-11-23T01:08:14.2124395Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2124690Z  Write of size 4 at 0x7b88000070e8 by thread T1: 2022-11-23T01:08:14.2128763Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.2129237Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2129620Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2130216Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2130742Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2131255Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2131458Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2131685Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2131824Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2131832Z 2022-11-23T01:08:14.2132031Z  Previous write of size 4 at 0x7b88000070e8 by main thread: 2022-11-23T01:08:14.2135846Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.2136213Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2136581Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2137077Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2137612Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2137809Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2137997Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2138294Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2138763Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2139762Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2140176Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2140542Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2141189Z #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+0x6562cde) 2022-11-23T01:08:14.2141805Z #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+0x20cf997) 2022-11-23T01:08:14.2142143Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2142521Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2143826Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2144167Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2144501Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2145632Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2146086Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2146765Z #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+0xca56e8) 2022-11-23T01:08:14.2147380Z #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+0x2974180) 2022-11-23T01:08:14.2147774Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2149193Z #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+0x57a0418) 2022-11-23T01:08:14.2149466Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2149863Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2150043Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2150284Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2150583Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2150744Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2150924Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2151109Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2151348Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2151862Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2152105Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2152234Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2152244Z 2022-11-23T01:08:14.2152634Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2152875Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2153072Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2153320Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2153639Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2154321Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2154735Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2155150Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2155566Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2157283Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2158294Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2159716Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2161550Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2163683Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2164398Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2165148Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2167309Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2168994Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2171102Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2173359Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2174190Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2176398Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2178804Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2181042Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2183215Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2183914Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2184420Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2186326Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2188726Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2191334Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2193269Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2194191Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2196575Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2199031Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2201480Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2204055Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2204895Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2205541Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2206927Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2208193Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2208806Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2209471Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2210207Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2211092Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2212144Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2213147Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2214161Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2214945Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2216378Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2217680Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2218265Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2219711Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2221061Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2221998Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2223232Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2224261Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2225818Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2227251Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2227937Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2228598Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2229121Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2229902Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2230507Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2230907Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2231299Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2231730Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2232514Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2233158Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2233496Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2233650Z 2022-11-23T01:08:14.2234009Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2234470Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2234959Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2235715Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2236398Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2237103Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2237812Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2238318Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2239172Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2239831Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2240420Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2240963Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2242055Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2243049Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2243644Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2244913Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2246121Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2247906Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2249459Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2250009Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2251280Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2252541Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2253052Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2253774Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2254428Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2254868Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2255298Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2255783Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2256600Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2257333Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2257707Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2257922Z 2022-11-23T01:08:14.2261002Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2262777Z ================== 2022-11-23T01:08:14.2263037Z ================== 2022-11-23T01:08:14.2263493Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2264120Z  Write of size 4 at 0x7b88000070ec by thread T1: 2022-11-23T01:08:14.2268161Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.2271043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2271871Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2272734Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2273713Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2274670Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2275365Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2276009Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2276620Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2276897Z 2022-11-23T01:08:14.2277211Z  Previous write of size 4 at 0x7b88000070ec by main thread: 2022-11-23T01:08:14.2281331Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.2283799Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2284555Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2285323Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2286272Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2287029Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2287662Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2288343Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2289024Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2290196Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2291612Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2292302Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2293259Z #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+0x6562cde) 2022-11-23T01:08:14.2294478Z #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+0x20cf997) 2022-11-23T01:08:14.2295399Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2296058Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2297143Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2298662Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2299298Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2300733Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2302128Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2303141Z #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+0xca56e8) 2022-11-23T01:08:14.2304390Z #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+0x2974180) 2022-11-23T01:08:14.2305346Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2307130Z #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+0x57a0418) 2022-11-23T01:08:14.2308721Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2309488Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2310281Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2310878Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2311567Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2312208Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2312468Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2312731Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2313008Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2313491Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2314183Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2314531Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2314712Z 2022-11-23T01:08:14.2315166Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2315774Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2316252Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2316776Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2317476Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2318695Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2319652Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2320433Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2321189Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2323361Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2326157Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2327680Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2329935Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2332170Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2332946Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2333741Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2336078Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2338607Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2341103Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2343124Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2343969Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2346224Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2348580Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2350804Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2352947Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2353626Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2354405Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2356574Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2358832Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2360581Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2362750Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2363665Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2365863Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2368183Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2370402Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2372623Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2373379Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2373917Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2375262Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2376087Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2376566Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2377182Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2377847Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2378753Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2379775Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2381202Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2382313Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2383053Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2384938Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2386593Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2387357Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2388625Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2390248Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2391486Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2392954Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2394030Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2396068Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2397920Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2398808Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2399632Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2400282Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2401147Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2401813Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2402282Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2402726Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2403258Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2404107Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2404912Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2405322Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2405555Z 2022-11-23T01:08:14.2405971Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2406320Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2406682Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2407257Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2407745Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2408226Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2408677Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2409041Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2409641Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2410133Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2410552Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2410945Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2411708Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2412415Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2412821Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2413742Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2414592Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2415583Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2416520Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2416851Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2417589Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2418281Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2418678Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2419109Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2419490Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2419747Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2419996Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2420287Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2420769Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2421205Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2421424Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2421552Z 2022-11-23T01:08:14.2423284Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2424308Z ================== 2022-11-23T01:08:14.2424473Z ================== 2022-11-23T01:08:14.2424741Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2425046Z  Write of size 4 at 0x7b88000070f0 by thread T1: 2022-11-23T01:08:14.2427395Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.2429020Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2429511Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2430114Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2430698Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2431264Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2431684Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2432060Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2432426Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2432590Z 2022-11-23T01:08:14.2432784Z  Previous write of size 4 at 0x7b88000070f0 by main thread: 2022-11-23T01:08:14.2436144Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.2439065Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2439827Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2440744Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2441539Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2442295Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2442919Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2443616Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2444331Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2445981Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2447596Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2448419Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2449561Z #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+0x6562cde) 2022-11-23T01:08:14.2450954Z #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+0x20cf997) 2022-11-23T01:08:14.2452025Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2452814Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2454567Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2456314Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2457047Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2458829Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2460501Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2461698Z #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+0xca56e8) 2022-11-23T01:08:14.2463069Z #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+0x2974180) 2022-11-23T01:08:14.2463757Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2464885Z #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+0x57a0418) 2022-11-23T01:08:14.2465923Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2466461Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2466908Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2467275Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2467726Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2468110Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2468355Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2468615Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2468904Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2469384Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2469895Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2470118Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2470247Z 2022-11-23T01:08:14.2470499Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2470831Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2471085Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2471391Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2471779Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2472440Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2473143Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2473719Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2474243Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2475594Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2477389Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2478288Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2479622Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2480997Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2481490Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2481947Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2483353Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2484848Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2486240Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2487649Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2488196Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2489642Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2491149Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2492577Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2494067Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2494548Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2495047Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2496490Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2497957Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2499447Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2500883Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2501429Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2502835Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2504340Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2505817Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2507261Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2507745Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2508130Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2508942Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2509802Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2510170Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2510568Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2511013Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2511474Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2512090Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2512867Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2513461Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2513888Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2514875Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2515790Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2516223Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2517803Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2518833Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2519502Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2520316Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2520946Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2522059Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2523126Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2523628Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2524085Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2524439Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2524890Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2525269Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2525524Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2525774Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2526066Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2526543Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2527022Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2527242Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2527370Z 2022-11-23T01:08:14.2527609Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2527945Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2528305Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2528839Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2529335Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2529815Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2530267Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2530630Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2531247Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2531726Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2532142Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2532531Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2533321Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2534017Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2534425Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2535321Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2536167Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2537187Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2538109Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2538446Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2539392Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2540364Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2540841Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2541611Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2542280Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2542744Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2543192Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2543714Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2544565Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2545358Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2545859Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2546076Z 2022-11-23T01:08:14.2549140Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2551084Z ================== 2022-11-23T01:08:14.2551332Z ================== 2022-11-23T01:08:14.2551900Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2552489Z  Write of size 4 at 0x7b88000070f4 by thread T1: 2022-11-23T01:08:14.2556046Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.2558498Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2559151Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2559971Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2560839Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2561694Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2562390Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2562955Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2563492Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2563751Z 2022-11-23T01:08:14.2564069Z  Previous write of size 4 at 0x7b88000070f4 by main thread: 2022-11-23T01:08:14.2567465Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.2569926Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2570644Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2571412Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2572292Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2573034Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2573641Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2574215Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2574669Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2575962Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2577325Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2577997Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2579006Z #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+0x6562cde) 2022-11-23T01:08:14.2580173Z #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+0x20cf997) 2022-11-23T01:08:14.2581165Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2581794Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2582816Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2584196Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2584861Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2586353Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2587844Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2589004Z #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+0xca56e8) 2022-11-23T01:08:14.2590385Z #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+0x2974180) 2022-11-23T01:08:14.2591444Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2593199Z #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+0x57a0418) 2022-11-23T01:08:14.2595011Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2595743Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2596466Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2597028Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2597639Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2598180Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2598557Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2598827Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2599261Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2599912Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2600523Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2600860Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2601071Z 2022-11-23T01:08:14.2601463Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2601909Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2602336Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2602821Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2603448Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2604226Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2604941Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2605466Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2606003Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2607686Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2610351Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2611718Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2613779Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2615693Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2616349Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2617070Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2619218Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2621494Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2623186Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2625216Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2626102Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2628266Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2630489Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2632111Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2634403Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2635130Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2635921Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2638043Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2640347Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2642308Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2644609Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2645477Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2647719Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2650351Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2652218Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2654272Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2654961Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2655490Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2656727Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2657883Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2658454Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2659154Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2659836Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2660528Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2661470Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2662490Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2663404Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2664036Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2665485Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2666886Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2667503Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2668727Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2669976Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2670945Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2672166Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2673098Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2674466Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2674820Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2675227Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2675485Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2675759Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2676180Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2676299Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2676419Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2676541Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2676691Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2677033Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2677206Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2677333Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2677345Z 2022-11-23T01:08:14.2677699Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2677945Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2678289Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2678770Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2679040Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2679506Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2679762Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2680063Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2680730Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2681084Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2681471Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2681785Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2682600Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2682872Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2683203Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2683976Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2684267Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2685450Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2685714Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2685941Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2686889Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2687118Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2687368Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2687809Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2687987Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2688229Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2688410Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2688663Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2689135Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2689263Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2689407Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2689419Z 2022-11-23T01:08:14.2691978Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2692161Z ================== 2022-11-23T01:08:14.2692853Z ================== 2022-11-23T01:08:14.2693171Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2693472Z  Write of size 4 at 0x7b88000070f8 by thread T1: 2022-11-23T01:08:14.2697150Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.2697581Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2697929Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2698388Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2698790Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2699066Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2699211Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2699438Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2699579Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2699586Z 2022-11-23T01:08:14.2699788Z  Previous write of size 4 at 0x7b88000070f8 by main thread: 2022-11-23T01:08:14.2701952Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.2702290Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2702501Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2702789Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2703098Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2703279Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2703483Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2703747Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2703965Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2704698Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2704940Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2705157Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2705570Z #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+0x6562cde) 2022-11-23T01:08:14.2705956Z #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+0x20cf997) 2022-11-23T01:08:14.2706169Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2706372Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2707119Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2707325Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2707529Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2708259Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2708486Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2708913Z #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+0xca56e8) 2022-11-23T01:08:14.2722798Z #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+0x2974180) 2022-11-23T01:08:14.2723148Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2724017Z #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+0x57a0418) 2022-11-23T01:08:14.2724234Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2724517Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2724696Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2724879Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2725140Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2725259Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2725381Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2725502Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2725639Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2725954Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2726075Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2726170Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2726178Z 2022-11-23T01:08:14.2726482Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2726655Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2726784Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2726946Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2727156Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2727603Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2727990Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2728427Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2728831Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2730415Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2731382Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2731856Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2733462Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2733900Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2734232Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2734644Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2736288Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2736752Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2738410Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2738836Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2739180Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2740876Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2741429Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2743084Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2743540Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2743813Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2744318Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2745799Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2746147Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2747645Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2748073Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2748483Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2750283Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2750744Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2752394Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2752885Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2753177Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2753401Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2754372Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2754614Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2754898Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2755207Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2755574Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2755933Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2756527Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2757117Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2757453Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2757719Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2758886Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2759203Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2759517Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2760580Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2760924Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2761589Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2762202Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2762468Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2763430Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2763759Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2764233Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2764499Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2764783Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2765184Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2765370Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2765562Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2765728Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2765972Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2766482Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2766669Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2766817Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2766827Z 2022-11-23T01:08:14.2767203Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2767493Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2767851Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2768377Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2768640Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2769116Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2769349Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2769725Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2770411Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2770761Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2771053Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2771363Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2772264Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2772578Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2772880Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2773940Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2774308Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2775528Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2775825Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2776055Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2776996Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2777189Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2777399Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2777807Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2777997Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2778162Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2778314Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2778579Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2779062Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2779357Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2779500Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2779509Z 2022-11-23T01:08:14.2782012Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2782137Z ================== 2022-11-23T01:08:14.2782222Z ================== 2022-11-23T01:08:14.2782449Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2782689Z  Write of size 4 at 0x7b88000070fc by thread T1: 2022-11-23T01:08:14.2785713Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.2786071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2786421Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2786711Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2787041Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2787382Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2787601Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2787832Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2787969Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2787975Z 2022-11-23T01:08:14.2788157Z  Previous write of size 4 at 0x7b88000070fc by main thread: 2022-11-23T01:08:14.2790743Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.2791021Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2791324Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2791669Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2792164Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2792401Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2792715Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2793040Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.2793376Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2794436Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.2794849Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.2795171Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2795740Z #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+0x6562cde) 2022-11-23T01:08:14.2796323Z #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+0x20cf997) 2022-11-23T01:08:14.2796621Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2796938Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2798026Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2798391Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2798695Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2799769Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2800115Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2800740Z #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+0xca56e8) 2022-11-23T01:08:14.2801360Z #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+0x2974180) 2022-11-23T01:08:14.2801746Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2803163Z #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+0x57a0418) 2022-11-23T01:08:14.2803510Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2803949Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2804229Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2804518Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2804902Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2805074Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2805315Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2805491Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2805718Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2806203Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2806376Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2806529Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2806538Z 2022-11-23T01:08:14.2806890Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2022-11-23T01:08:14.2807147Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2807334Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2807582Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2807905Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2808615Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2809030Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2809449Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2809867Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2811555Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2812562Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2813030Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2814630Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2815108Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2815401Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.2815810Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.2817431Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.2817895Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2819634Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2820025Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2820484Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2822111Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2822570Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2824264Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2824787Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2825126Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2825622Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.2827504Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.2828111Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.2830090Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.2830578Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.2831084Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.2833037Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.2833630Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.2835512Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.2836021Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.2836352Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.2836616Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.2837727Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.2838023Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.2838362Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.2838722Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.2839116Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.2839504Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.2840179Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.2840844Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.2841254Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.2841592Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2842936Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2843290Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2843646Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2844866Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.2845254Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.2846020Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.2846705Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.2847124Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.2848584Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2848986Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2849447Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.2849744Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.2850057Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.2850481Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2850671Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2850868Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2851067Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2851307Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2851854Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2852060Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2852216Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2852227Z 2022-11-23T01:08:14.2852632Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.2852911Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2853282Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2853856Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2854154Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2854654Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2854921Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2855246Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2855996Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2856393Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2856778Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2857118Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2858129Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2858355Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2858803Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2859820Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2860139Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2861277Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2861616Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2861823Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2862681Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2862890Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2863126Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2863512Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2863750Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2863933Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2864110Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2864328Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2864794Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2864976Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2865100Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2865125Z 2022-11-23T01:08:14.2867809Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.2867929Z ================== 2022-11-23T01:08:14.2868033Z ================== 2022-11-23T01:08:14.2868291Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2868574Z  Write of size 1 at 0x7b680007c02c by main thread: 2022-11-23T01:08:14.2872134Z  #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+0x8718e64) 2022-11-23T01:08:14.2872566Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2872914Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2873399Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2873863Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2874175Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2874504Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2874868Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.2875205Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2876437Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.2876751Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.2877067Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2878239Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2878559Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2878877Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2880087Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2880518Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2881804Z #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+0x57a0418) 2022-11-23T01:08:14.2882117Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2882407Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2882786Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2882961Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2883143Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2883315Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2883558Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2884012Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2884192Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2884335Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2884341Z 2022-11-23T01:08:14.2884702Z  Previous write of size 1 at 0x7b680007c02c by thread T2: 2022-11-23T01:08:14.2888113Z  #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+0x8718da5) 2022-11-23T01:08:14.2888633Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2889026Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2889494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2889983Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2890443Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2890675Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2891049Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2891268Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2891293Z 2022-11-23T01:08:14.2891671Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.2891957Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2892158Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2892434Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2892785Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2893584Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2894044Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2894502Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2894964Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2896814Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2897941Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2898462Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2900426Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2900915Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2901220Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.2902352Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.2902662Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.2903068Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.2904436Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2904871Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2906376Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2906748Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2907069Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2907510Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2907700Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2907937Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2908141Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2908377Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2908914Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2909114Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2909275Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2909286Z 2022-11-23T01:08:14.2909714Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.2910001Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2910381Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2910922Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2911273Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2911766Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2912020Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2912345Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2913063Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2913428Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2913739Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2914065Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2915003Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2915281Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2915668Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2916860Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2917228Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2918535Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2918888Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2919136Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2920151Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2920413Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2920687Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2921115Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2921292Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2921468Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2921641Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2921847Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2922329Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2922514Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2922644Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2922673Z 2022-11-23T01:08:14.2925201Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.2925322Z ================== 2022-11-23T01:08:14.2925405Z ================== 2022-11-23T01:08:14.2925639Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2925911Z  Write of size 1 at 0x7b680007c02e by main thread: 2022-11-23T01:08:14.2929134Z  #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+0x8718e64) 2022-11-23T01:08:14.2929583Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2929916Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2930339Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2930768Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2931109Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2931432Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2931782Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.2932104Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2933292Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.2933623Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.2933910Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2934993Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2935353Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2935659Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2936797Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2937152Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2938705Z #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+0x57a0418) 2022-11-23T01:08:14.2939144Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2939446Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2939837Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2940022Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2940201Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2940383Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2940609Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2941085Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2941260Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2941407Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2941416Z 2022-11-23T01:08:14.2941706Z  Previous write of size 1 at 0x7b680007c02e by thread T2: 2022-11-23T01:08:14.2945142Z  #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+0x8718e64) 2022-11-23T01:08:14.2945561Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2945889Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2946297Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2946744Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2947139Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.2947359Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.2947749Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.2947945Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.2947974Z 2022-11-23T01:08:14.2948311Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.2948561Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.2948753Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.2948990Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.2949304Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.2950032Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.2950482Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.2950895Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.2951300Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.2953180Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.2954255Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.2954822Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.2956629Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.2957153Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.2957452Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.2958545Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.2958855Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.2959207Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.2960551Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2960954Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2962462Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.2962824Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2963134Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2963571Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2963772Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2964016Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2964216Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2964468Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2965016Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2965199Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2965360Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2965369Z 2022-11-23T01:08:14.2965759Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.2966051Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.2966436Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.2966984Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.2967280Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.2967799Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.2968067Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.2968390Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.2969114Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.2969493Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.2969812Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.2970143Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.2971147Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.2971428Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.2971819Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.2972955Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.2973364Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.2974701Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.2975008Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.2975247Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.2976230Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.2976476Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.2976724Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.2977147Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2977325Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2977517Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2977716Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2978011Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.2978665Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.2978875Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.2979034Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.2979042Z 2022-11-23T01:08:14.2981978Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.2982170Z ================== 2022-11-23T01:08:14.2982277Z ================== 2022-11-23T01:08:14.2982567Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.2982848Z  Write of size 1 at 0x7b680007c041 by main thread: 2022-11-23T01:08:14.2986916Z  #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+0x8718e1d) 2022-11-23T01:08:14.2987388Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.2987786Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.2988302Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.2988925Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.2989202Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.2989503Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.2989932Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.2990263Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.2991484Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.2991936Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.2992288Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.2993549Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.2993900Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.2994258Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.2995680Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.2996134Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.2997516Z #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+0x57a0418) 2022-11-23T01:08:14.2997889Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.2998251Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.2998671Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.2998854Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.2999061Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.2999268Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.2999532Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3000116Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3000333Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3000483Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3000494Z 2022-11-23T01:08:14.3000859Z  Previous write of size 1 at 0x7b680007c041 by thread T2: 2022-11-23T01:08:14.3005033Z  #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+0x8718e1d) 2022-11-23T01:08:14.3005560Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3005959Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3006458Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3006956Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3007436Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3007686Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3008125Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3008361Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3008372Z 2022-11-23T01:08:14.3008779Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.3009067Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3009277Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3009548Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3009880Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3010630Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3011058Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3011496Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3011898Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3013886Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3014963Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3015477Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3017257Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3017709Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3018008Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3019189Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3019490Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3019838Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3021347Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3021771Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3023305Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3023754Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3024085Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3024531Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3024738Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3024940Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3025149Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3025393Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3025958Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3026166Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3026324Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3026334Z 2022-11-23T01:08:14.3026744Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.3027047Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3027413Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3027961Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3028259Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3028848Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3029118Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3029468Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3030307Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3030698Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3031026Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3031361Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3032361Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3032734Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3033130Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3034308Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3034686Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3036100Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3036415Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3036665Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3037732Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3037990Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3038251Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3038715Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3038906Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3039106Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3039302Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3039552Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3040140Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3040348Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3040490Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3040501Z 2022-11-23T01:08:14.3043444Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.3043559Z ================== 2022-11-23T01:08:14.3043667Z ================== 2022-11-23T01:08:14.3043931Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3044211Z  Write of size 1 at 0x7b680007c043 by main thread: 2022-11-23T01:08:14.3048286Z  #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+0x8718ed1) 2022-11-23T01:08:14.3048805Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3049220Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3049749Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3050287Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3050678Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3051052Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3051438Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.3051792Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3053162Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.3053566Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.3053903Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3055215Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3055646Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3056026Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3057390Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3057786Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3059558Z #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+0x57a0418) 2022-11-23T01:08:14.3059952Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3060290Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3060736Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3060923Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3061120Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3061317Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3061552Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3062105Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3062307Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3062459Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3062470Z 2022-11-23T01:08:14.3062831Z  Previous write of size 1 at 0x7b680007c043 by thread T2: 2022-11-23T01:08:14.3067006Z  #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+0x8718ed1) 2022-11-23T01:08:14.3067427Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3067822Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3068235Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3068660Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3069036Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3069242Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3069651Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3069835Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3069845Z 2022-11-23T01:08:14.3070214Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.3070459Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3070651Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3070888Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3071188Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3071856Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3072254Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3072653Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3073046Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3074664Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3075751Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3076223Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3077776Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3078216Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3078472Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3079436Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3079708Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3080023Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3081147Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3081552Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3082865Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3083207Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3083493Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3083891Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3084065Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3084227Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3084401Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3084631Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3085155Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3085342Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3085483Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3085491Z 2022-11-23T01:08:14.3085829Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.3086074Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3086397Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3086842Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3087089Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3087996Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3088281Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3088564Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3089215Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3089592Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3089915Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3090242Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3091191Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3091490Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3091856Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3093011Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3093432Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3094786Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3095089Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3095331Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3096322Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3096606Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3096857Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3097288Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3097470Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3097666Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3097875Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3098128Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3098751Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3098957Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3099117Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3099126Z 2022-11-23T01:08:14.3102092Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:14.3102230Z ================== 2022-11-23T01:08:14.3102322Z ================== 2022-11-23T01:08:14.3102703Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3103014Z  Write of size 1 at 0x7b680007d82c by main thread: 2022-11-23T01:08:14.3106796Z  #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+0x8718e64) 2022-11-23T01:08:14.3107328Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3107712Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3108184Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3108678Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3108997Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3109314Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3109766Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.3110125Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3111401Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3111885Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3112289Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3112985Z #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+0x6562cde) 2022-11-23T01:08:14.3113696Z #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+0x20cf997) 2022-11-23T01:08:14.3114085Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3114486Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3115861Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3116186Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3116500Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3117703Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3118069Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3118819Z #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+0xca56e8) 2022-11-23T01:08:14.3119597Z #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+0x2974180) 2022-11-23T01:08:14.3120033Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3121580Z #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+0x57a0418) 2022-11-23T01:08:14.3122010Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3122486Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3122782Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3123092Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3123526Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3123711Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3123909Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3124106Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3124324Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3124853Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3125055Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3125214Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3125229Z 2022-11-23T01:08:14.3125586Z  Previous write of size 1 at 0x7b680007d82c by thread T3: 2022-11-23T01:08:14.3129438Z  #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+0x8718da5) 2022-11-23T01:08:14.3129929Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3130302Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3130786Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3131331Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3131780Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3132001Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3132386Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3132615Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3132626Z 2022-11-23T01:08:14.3133028Z  Location is heap block of size 1512 at 0x7b680007d400 allocated by main thread: 2022-11-23T01:08:14.3133315Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3133512Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3133781Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3134133Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3134932Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3135414Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3135883Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3136354Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3138331Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3139587Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3140188Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3141948Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3142429Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3142734Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3143173Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3145227Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3145792Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3147788Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3148308Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3148819Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3150788Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3151303Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3152876Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3153352Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3153622Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3154067Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3155642Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3156096Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3157663Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3158070Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3158520Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3160290Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3160796Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3162480Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3162918Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3163216Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3163401Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3164373Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3164645Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3164934Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3165234Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3165571Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3165883Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3166472Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3167098Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3167435Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3167744Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3168940Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3169256Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3169559Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3170623Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3171006Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3171635Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3172204Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3172544Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3173841Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3174152Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3174536Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3174804Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3175060Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3175497Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3175672Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3175844Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3176012Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3176211Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3176692Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3176861Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3176986Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3176996Z 2022-11-23T01:08:14.3177355Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3177599Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3177972Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3178428Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3178792Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3179235Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3179457Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3179707Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3180323Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3180696Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3181026Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3181370Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3182266Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3182505Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3182834Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3183952Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3184326Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3185649Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3186000Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3186241Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3187215Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3187470Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3187718Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3188158Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3188350Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3188549Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3188757Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3188991Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3189540Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3189814Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3189968Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3189978Z 2022-11-23T01:08:14.3192948Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.3193068Z ================== 2022-11-23T01:08:14.3193179Z ================== 2022-11-23T01:08:14.3193467Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3193771Z  Write of size 1 at 0x7b680007d82e by main thread: 2022-11-23T01:08:14.3197585Z  #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+0x8718e64) 2022-11-23T01:08:14.3198115Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3198497Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3198976Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3199482Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3199810Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3200153Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3200540Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.3200908Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3202194Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3202628Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3203000Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3203661Z #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+0x6562cde) 2022-11-23T01:08:14.3204349Z #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+0x20cf997) 2022-11-23T01:08:14.3204709Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3205054Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3206340Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3206688Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3207047Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3208274Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3208689Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3209435Z #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+0xca56e8) 2022-11-23T01:08:14.3210095Z #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+0x2974180) 2022-11-23T01:08:14.3210511Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3212016Z #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+0x57a0418) 2022-11-23T01:08:14.3212405Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3212906Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3213207Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3213517Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3213963Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3214155Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3214365Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3214582Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3214847Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3215431Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3215646Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3215805Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3215815Z 2022-11-23T01:08:14.3216162Z  Previous write of size 1 at 0x7b680007d82e by thread T3: 2022-11-23T01:08:14.3219778Z  #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+0x8718e64) 2022-11-23T01:08:14.3220227Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3220551Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3220957Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3221371Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3221780Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3221984Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3222309Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3222502Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3222511Z 2022-11-23T01:08:14.3222831Z  Location is heap block of size 1512 at 0x7b680007d400 allocated by main thread: 2022-11-23T01:08:14.3223076Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3223253Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3223488Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3223783Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3224418Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3224827Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3225220Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3225627Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3227314Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3228327Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3228780Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3230344Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3230800Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3231081Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3231485Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3233084Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3233628Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3235305Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3235734Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3236137Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3237874Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3238364Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3240049Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3240479Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3240766Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3241200Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3242852Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3243308Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3244855Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3245337Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3245733Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3247368Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3247857Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3249689Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3250193Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3250551Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3250801Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3251899Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3252244Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3252588Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3252926Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3253320Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3253686Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3254347Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3255013Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3255369Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3255763Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3257044Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3257390Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3257745Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3259190Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3259591Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3260313Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3260974Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3261385Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3262883Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3263336Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3263823Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3264115Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3264443Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3264880Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3265075Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3265281Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3265488Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3265746Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3266352Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3266536Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3266681Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3266690Z 2022-11-23T01:08:14.3267091Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3267380Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3267769Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3268294Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3268593Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3269087Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3269338Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3269732Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3270461Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3270844Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3271164Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3271485Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3272502Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3272782Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3273161Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3274283Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3274674Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3275978Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3276277Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3276524Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3277525Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3277773Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3278025Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3278469Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3278659Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3278857Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3279058Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3279306Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3279879Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3280091Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3280266Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3280281Z 2022-11-23T01:08:14.3283407Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.3283592Z ================== 2022-11-23T01:08:14.3283704Z ================== 2022-11-23T01:08:14.3283975Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3284235Z  Write of size 1 at 0x7b680007d83f by main thread: 2022-11-23T01:08:14.3288004Z  #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+0x8718e1d) 2022-11-23T01:08:14.3288451Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3288855Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3289375Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3289883Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3290290Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3290626Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3291003Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.3291354Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3292578Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3293072Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3293462Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3294183Z #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+0x6562cde) 2022-11-23T01:08:14.3294898Z #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+0x20cf997) 2022-11-23T01:08:14.3295291Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3295659Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3297074Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3297427Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3297778Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3299282Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3299690Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3300442Z #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+0xca56e8) 2022-11-23T01:08:14.3301212Z #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+0x2974180) 2022-11-23T01:08:14.3301629Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3303164Z #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+0x57a0418) 2022-11-23T01:08:14.3303523Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3304016Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3304281Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3304587Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3304977Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3305162Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3305351Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3305551Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3305809Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3306441Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3306660Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3306807Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3306835Z 2022-11-23T01:08:14.3307172Z  Previous write of size 1 at 0x7b680007d83f by thread T3: 2022-11-23T01:08:14.3311056Z  #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+0x8718e1d) 2022-11-23T01:08:14.3311593Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3311945Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3312405Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3312897Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3313377Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3313620Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3314010Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3314247Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3314259Z 2022-11-23T01:08:14.3314655Z  Location is heap block of size 1512 at 0x7b680007d400 allocated by main thread: 2022-11-23T01:08:14.3314915Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3315115Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3315394Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3315827Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3316630Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3317120Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3317590Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3318044Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3320032Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3321151Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3321700Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3323668Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3324162Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3324504Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3324993Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3327035Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3327603Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3329552Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3330103Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3330562Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3332564Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3333199Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3335180Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3335685Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3335995Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3336482Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3338622Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3339192Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3341236Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3341764Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3342266Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3344478Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3345033Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3346976Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3347553Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3347892Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3348160Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3349331Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3349664Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3350006Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3350324Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3350702Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3351079Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3351842Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3352570Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3352968Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3353291Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3354585Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3355022Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3355393Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3356626Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3357051Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3357832Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3358473Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3358833Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3360156Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3360478Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3360867Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3361118Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3361431Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3361808Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3361960Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3362136Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3362309Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3362517Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3362970Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3363155Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3363288Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3363298Z 2022-11-23T01:08:14.3363643Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3363904Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3364232Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3364661Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3364913Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3365353Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3365578Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3365859Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3366453Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3366866Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3367169Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3367518Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3368369Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3368616Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3368954Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3369965Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3370274Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3371400Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3371656Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3371876Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3372753Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3372961Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3373176Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3373611Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3373787Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3373972Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3374156Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3374370Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3374825Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3374999Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3375137Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3375146Z 2022-11-23T01:08:14.3377744Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.3377920Z ================== 2022-11-23T01:08:14.3378010Z ================== 2022-11-23T01:08:14.3378247Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3378625Z  Write of size 1 at 0x7b680007d843 by main thread: 2022-11-23T01:08:14.3381856Z  #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+0x8718ed1) 2022-11-23T01:08:14.3382309Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3382773Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3383241Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3383744Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3384070Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3384405Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3384789Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.3385148Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3386447Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3386846Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3387234Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3387882Z #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+0x6562cde) 2022-11-23T01:08:14.3388535Z #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+0x20cf997) 2022-11-23T01:08:14.3388889Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3389231Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3390634Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3390976Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3391314Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3392539Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3392984Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3393759Z #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+0xca56e8) 2022-11-23T01:08:14.3394433Z #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+0x2974180) 2022-11-23T01:08:14.3394839Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3396322Z #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+0x57a0418) 2022-11-23T01:08:14.3396689Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3397147Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3397432Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3397765Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3398205Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3398398Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3398593Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3398791Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3399038Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3399574Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3399773Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3399934Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3399946Z 2022-11-23T01:08:14.3400286Z  Previous write of size 1 at 0x7b680007d843 by thread T3: 2022-11-23T01:08:14.3404166Z  #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+0x8718ed1) 2022-11-23T01:08:14.3404590Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3404910Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3405308Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3405745Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3406150Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3406354Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3406704Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3406920Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3406930Z 2022-11-23T01:08:14.3407262Z  Location is heap block of size 1512 at 0x7b680007d400 allocated by main thread: 2022-11-23T01:08:14.3407513Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3407682Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3407881Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3408187Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3408838Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3409300Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3409683Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3410086Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3411589Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3412477Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3413060Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3414618Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3415059Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3415326Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3415721Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3417336Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3417792Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3419519Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3419964Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3420383Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3421999Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3422532Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3424061Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3424505Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3424768Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3425178Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3426722Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3427303Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3429119Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3429704Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3430183Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3432188Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3432745Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3434631Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3435168Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3435489Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3435732Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3436831Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3437097Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3437419Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3437768Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3438221Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3438592Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3439252Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3439928Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3440298Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3440674Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3441936Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3442302Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3442637Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3443860Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3444253Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3444989Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3445681Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3446088Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3447563Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3447975Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3448477Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3448769Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3449032Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3449306Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3449427Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3449548Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3449671Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3449819Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3450132Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3450251Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3450348Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3450356Z 2022-11-23T01:08:14.3450596Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3450763Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3450988Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3451305Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3451479Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3451831Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3451986Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3452181Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3452589Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3452812Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3452997Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3453191Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3453745Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3453955Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3454183Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3454841Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3455052Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3455819Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3456011Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3456142Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3456760Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3456908Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3457059Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3457301Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3457417Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3457536Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3457658Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3457803Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3458118Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3458267Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3458361Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3458368Z 2022-11-23T01:08:14.3460166Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:14.3460242Z ================== 2022-11-23T01:08:14.3460680Z ================== 2022-11-23T01:08:14.3460848Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3461027Z  Write of size 1 at 0x7b680007c02d by main thread: 2022-11-23T01:08:14.3463259Z  #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+0x871a6ad) 2022-11-23T01:08:14.3463526Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3463750Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3464033Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3464323Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3464552Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3464754Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3464981Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.3465193Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3465978Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.3466197Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.3466401Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3467167Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3467402Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3467612Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3468393Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3468635Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3469527Z #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+0x57a0418) 2022-11-23T01:08:14.3469911Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3470195Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3470543Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3470720Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3470904Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3471073Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3471316Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3471791Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3472003Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3472178Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3472187Z 2022-11-23T01:08:14.3472527Z  Previous write of size 1 at 0x7b680007c02d by thread T1: 2022-11-23T01:08:14.3476746Z  #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+0x871a6ad) 2022-11-23T01:08:14.3477139Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3477541Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3477970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3478420Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3478843Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3479068Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3479396Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3479601Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3479610Z 2022-11-23T01:08:14.3479947Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.3480197Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3480378Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3480582Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3480873Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3481632Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3482053Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3482551Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3482982Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3484572Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3485605Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3486149Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3487795Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3488277Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3488639Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3489648Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3489857Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3490056Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3490846Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3491133Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3491994Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3492211Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3492401Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3492661Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3492780Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3492899Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3493022Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3493172Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3493514Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3493634Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3493729Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3493738Z 2022-11-23T01:08:14.3493961Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.3494129Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3494351Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3494672Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3494849Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3495144Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3495343Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3495537Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3495948Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3496169Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3496361Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3496556Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3497113Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3497276Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3497507Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3498168Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3498380Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3499311Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3499509Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3499640Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3500231Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3500411Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3500563Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3500805Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3500923Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3501041Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3501162Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3501312Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3501624Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3501742Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3501834Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3501841Z 2022-11-23T01:08:14.3503502Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.3503576Z ================== 2022-11-23T01:08:14.3503643Z ================== 2022-11-23T01:08:14.3503813Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3504023Z  Write of size 1 at 0x7b680007ea31 by main thread: 2022-11-23T01:08:14.3506196Z  #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+0x871a6ad) 2022-11-23T01:08:14.3506486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3506707Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3506995Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3507285Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3507478Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3507680Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3507906Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.3508120Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3508831Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3509097Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3509317Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3509780Z #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+0x6562cde) 2022-11-23T01:08:14.3510171Z #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+0x20cf997) 2022-11-23T01:08:14.3510390Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3510624Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3511389Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3511591Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3511798Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3512514Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3512739Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3513172Z #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+0xca56e8) 2022-11-23T01:08:14.3513587Z #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+0x2974180) 2022-11-23T01:08:14.3513829Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3514684Z #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+0x57a0418) 2022-11-23T01:08:14.3514951Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3515231Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3515396Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3515579Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3515833Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3515947Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3516069Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3516189Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3516338Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3516649Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3516769Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3516864Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3516870Z 2022-11-23T01:08:14.3517061Z  Previous write of size 1 at 0x7b680007ea31 by thread T2: 2022-11-23T01:08:14.3519280Z  #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+0x871a6ad) 2022-11-23T01:08:14.3519541Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3519764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3520047Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3520339Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3520633Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3520773Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3520996Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3521133Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3521139Z 2022-11-23T01:08:14.3521358Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2022-11-23T01:08:14.3521526Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3521639Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3521797Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3522001Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3522447Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3522716Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3522980Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3523246Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3524354Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3524985Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3525342Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3526368Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3526640Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3526827Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3527097Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3528237Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3528547Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3529631Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3529918Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3530189Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3531344Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3531669Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3532774Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3533088Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3533283Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3533579Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3534694Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3535000Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3536073Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3536364Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3536657Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3537782Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3538106Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3539342Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3539636Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3539826Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3539975Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3540620Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3540805Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3541000Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3541198Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3541436Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3541654Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3542038Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3542425Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3542645Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3542846Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3543619Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3543826Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3544031Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3544755Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3545001Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3545432Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3545819Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3546059Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3546917Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3547127Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3547406Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3547580Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3547762Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3548044Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3548161Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3548286Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3548406Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3548553Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3548867Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3548991Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3549073Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3549079Z 2022-11-23T01:08:14.3549300Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.3549465Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3549759Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3550110Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3550286Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3550584Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3550739Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3550929Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3551340Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3551560Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3551745Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3551937Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3552492Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3552659Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3552885Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3553575Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3553789Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3554561Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3554769Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3554911Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3555485Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3555645Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3555783Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3556038Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3556153Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3556271Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3556390Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3556539Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3556847Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3556966Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3557061Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3557067Z 2022-11-23T01:08:14.3558748Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.3558820Z ================== 2022-11-23T01:08:14.3558884Z ================== 2022-11-23T01:08:14.3559051Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3559220Z  Write of size 1 at 0x7b680007ea43 by main thread: 2022-11-23T01:08:14.3561420Z  #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+0x871a761) 2022-11-23T01:08:14.3561726Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3561950Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3562232Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3562523Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3562715Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3562917Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3563142Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.3563357Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3564097Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3564362Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3564673Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3565223Z #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+0x6562cde) 2022-11-23T01:08:14.3565779Z #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+0x20cf997) 2022-11-23T01:08:14.3566112Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3566442Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3567719Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3568114Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3568448Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3569744Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3570220Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3570997Z #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+0xca56e8) 2022-11-23T01:08:14.3571680Z #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+0x2974180) 2022-11-23T01:08:14.3572094Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3573671Z #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+0x57a0418) 2022-11-23T01:08:14.3574091Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3574587Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3574904Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3575210Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3575649Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3575860Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3576074Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3576296Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3576542Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3577122Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3577322Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3577473Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3577484Z 2022-11-23T01:08:14.3577837Z  Previous write of size 1 at 0x7b680007ea43 by thread T2: 2022-11-23T01:08:14.3582146Z  #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+0x871a761) 2022-11-23T01:08:14.3582627Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3583058Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3583564Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3584049Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3584518Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3584779Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3585186Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3585433Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3585442Z 2022-11-23T01:08:14.3585813Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2022-11-23T01:08:14.3586126Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3586338Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3586609Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3586991Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3587791Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3588278Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3588799Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3589271Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3591237Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3592416Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3592948Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3594824Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3595372Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3595718Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3596233Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3597881Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3598225Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3599298Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3599586Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3599858Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3601027Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3601364Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3602461Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3602780Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3602972Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3603272Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3604405Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3604715Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3605764Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3606088Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3606356Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3607478Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3607798Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3608916Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3609207Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3609399Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3609571Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3610214Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3610369Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3610569Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3610773Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3611007Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3611224Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3611609Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3612000Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3612213Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3612414Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3613196Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3613412Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3613607Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3614329Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3614582Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3615009Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3615393Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3615633Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3616489Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3616731Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3617010Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3617185Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3617369Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3617621Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3617735Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3617857Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3617979Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3618128Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3618442Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3618693Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3618787Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3618794Z 2022-11-23T01:08:14.3619014Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.3619181Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3619399Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3619719Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3619893Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3620186Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3620341Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3620531Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3620939Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3621163Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3621351Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3621540Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3622141Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3622308Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3622535Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3623194Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3623402Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3624207Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3624398Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3624531Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3625122Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3625282Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3625506Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3625879Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3626058Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3626240Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3626426Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3626659Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3627178Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3627436Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3627599Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3627609Z 2022-11-23T01:08:14.3630465Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a761) 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::'lamb 2022-11-23T01:08:14.3630568Z ================== 2022-11-23T01:08:14.3630735Z ================== 2022-11-23T01:08:14.3631026Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3631319Z  Write of size 2 at 0x7b780000d458 by main thread: 2022-11-23T01:08:14.3635089Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.3635525Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3635920Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3636432Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3636968Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3637206Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3637547Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3637913Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3638235Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3639460Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.3639830Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.3640163Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3641389Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3641723Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3642112Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3643413Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3643852Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3645346Z #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+0x57a0418) 2022-11-23T01:08:14.3645775Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3646113Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3646564Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3646819Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3647048Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3647246Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3647497Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3647982Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3648162Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3648323Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3648333Z 2022-11-23T01:08:14.3648681Z  Previous write of size 2 at 0x7b780000d458 by thread T3: 2022-11-23T01:08:14.3652119Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.3652491Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3652861Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3653410Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3653934Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3654413Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3654641Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3655065Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3655309Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3655319Z 2022-11-23T01:08:14.3655623Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.3655839Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3655963Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3656187Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3656546Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3657205Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3657479Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3657748Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3658017Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3659277Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3659934Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3660257Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3661293Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3661623Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3661802Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3662455Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3662636Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3662848Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3663654Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3663898Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3664774Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3665015Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3665200Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3665453Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3665558Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3665678Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3665797Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3665946Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3666258Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3666377Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3666470Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3666476Z 2022-11-23T01:08:14.3666697Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3666864Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3667088Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3667408Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3667585Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3667879Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3668019Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3668245Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3668654Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3668877Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3669064Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3669259Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3669912Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3670115Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3670341Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3671002Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3671231Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3672003Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3672188Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3672331Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3672939Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3673087Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3673239Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3673496Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3673611Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3673729Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3673838Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3673983Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3674297Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3674416Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3674539Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3674545Z 2022-11-23T01:08:14.3676205Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3676277Z ================== 2022-11-23T01:08:14.3676341Z ================== 2022-11-23T01:08:14.3676508Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3676687Z  Write of size 2 at 0x7b780000d45a by main thread: 2022-11-23T01:08:14.3678873Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.3679135Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3679362Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3679643Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3679935Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3680129Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3680335Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3680590Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3680804Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3681591Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.3681820Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.3682019Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3682768Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3682975Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3683180Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3683971Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3684216Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3685092Z #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+0x57a0418) 2022-11-23T01:08:14.3685357Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3685541Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3685799Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3685904Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3686023Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3686146Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3686293Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3686606Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3686726Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3686825Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3686833Z 2022-11-23T01:08:14.3687020Z  Previous write of size 2 at 0x7b780000d45a by thread T3: 2022-11-23T01:08:14.3690643Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.3691140Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3691519Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3692023Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3692611Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3693099Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3693352Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3693758Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3694017Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3694028Z 2022-11-23T01:08:14.3694445Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.3694761Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3694990Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3695253Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3695634Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3696271Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3696764Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3697226Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3697765Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3699271Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3700161Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3700612Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3702190Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3702560Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3702809Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3703835Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3704155Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3704493Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3705840Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3706296Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3707737Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3708098Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3708313Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3708687Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3708829Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3708976Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3709170Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3709371Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3709891Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3710082Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3710232Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3710239Z 2022-11-23T01:08:14.3710592Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3710873Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3711154Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3711559Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3711847Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3712337Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3712551Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3712847Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3713611Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3713965Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3714260Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3714576Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3715504Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3715781Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3716148Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3717247Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3717503Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3718335Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3718519Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3718666Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3719247Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3719423Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3719575Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3719831Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3719947Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3720066Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3720173Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3720321Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3720636Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3720757Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3720850Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3720856Z 2022-11-23T01:08:14.3722545Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3722619Z ================== 2022-11-23T01:08:14.3722994Z ================== 2022-11-23T01:08:14.3723167Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3723348Z  Write of size 2 at 0x7b780000d45e by main thread: 2022-11-23T01:08:14.3725561Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.3725848Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3726076Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3726357Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3726651Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3726845Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3727048Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3727278Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3727492Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3728287Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.3728504Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.3728731Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3729481Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3729686Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3729894Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3730668Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3730956Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3731835Z #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+0x57a0418) 2022-11-23T01:08:14.3732045Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3732232Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3732486Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3732600Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3732707Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3732827Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3732976Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3733316Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3733437Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3733530Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3733536Z 2022-11-23T01:08:14.3733723Z  Previous write of size 2 at 0x7b780000d45e by thread T3: 2022-11-23T01:08:14.3735899Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.3736192Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3736415Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3736702Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3736986Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3737259Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3737399Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3737624Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3737759Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3737765Z 2022-11-23T01:08:14.3737983Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.3738149Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3738272Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3738432Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3738813Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3739258Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3739533Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3739800Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3740070Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3741174Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3741822Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3742128Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3743193Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3743482Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3743646Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.3744304Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.3744509Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.3744716Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.3745494Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.3745736Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.3746600Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3746817Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3747032Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.3747290Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3747407Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3747526Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3747649Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3747796Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3748109Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3748230Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3748321Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3748327Z 2022-11-23T01:08:14.3748540Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.3748723Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3748945Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3749261Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3749434Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3749819Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3749975Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3750169Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3750577Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3750799Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3750991Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3751184Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3751737Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3751905Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3752167Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3752827Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3753040Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3753823Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3754026Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3754169Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3754749Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3754899Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3755048Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3755302Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3755421Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3755530Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3755650Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3755800Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3756113Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3756231Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3756324Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3756330Z 2022-11-23T01:08:14.3758027Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3758100Z ================== 2022-11-23T01:08:14.3758165Z ================== 2022-11-23T01:08:14.3758336Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3758516Z  Write of size 2 at 0x7b780000e05a by main thread: 2022-11-23T01:08:14.3760662Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.3760952Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3769544Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3769931Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3770229Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3770431Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3770623Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3770853Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3771153Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3771881Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3772120Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3772342Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3772733Z #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+0x6562cde) 2022-11-23T01:08:14.3773168Z #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+0x20cf997) 2022-11-23T01:08:14.3773385Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3773583Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3774335Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3774543Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3774756Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3775497Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3775725Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3776156Z #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+0xca56e8) 2022-11-23T01:08:14.3776557Z #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+0x2974180) 2022-11-23T01:08:14.3776799Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3777690Z #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+0x57a0418) 2022-11-23T01:08:14.3777901Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3778181Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3778356Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3778699Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3778957Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3779072Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3779193Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3779305Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3779454Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3779769Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3779888Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3779980Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3779988Z 2022-11-23T01:08:14.3780214Z  Previous write of size 2 at 0x7b780000e05a by thread T1: 2022-11-23T01:08:14.3782483Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.3782791Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3783012Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3783293Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3783588Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3783859Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3783987Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3784211Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3784347Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3784353Z 2022-11-23T01:08:14.3784576Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2022-11-23T01:08:14.3784743Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3784865Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3785028Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3785232Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3785671Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3785972Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3786238Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3786504Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3787575Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3788241Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3788543Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3789661Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3789986Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3790176Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3790449Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3791545Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3791881Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3792960Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3793241Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3793511Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3794678Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3795000Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3796118Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3796425Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3796618Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3796915Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3798039Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3798349Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3799421Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3799722Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3799991Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3801140Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3801459Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3802576Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3802883Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3803116Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3803252Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3803908Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3804062Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3804256Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3804454Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3804677Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3804897Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3805279Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3805680Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3805893Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3806117Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3806863Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3807071Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3807275Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3808012Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3808235Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3808664Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3809052Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3809291Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3810184Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3810395Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3810675Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3810851Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3811034Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3811292Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3811397Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3811515Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3811633Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3811810Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3812123Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3812243Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3812336Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3812342Z 2022-11-23T01:08:14.3812563Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.3812730Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3812958Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3813272Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3813446Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3813739Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3813894Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3814073Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3814476Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3814696Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3814881Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3815070Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3815657Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3815823Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3816048Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3816722Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3816959Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3817732Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3817913Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3818054Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3818737Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3818885Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3819039Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3819297Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3819415Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3819534Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3819655Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3819790Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3820143Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3820270Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3820365Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3820372Z 2022-11-23T01:08:14.3822038Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3822146Z ================== 2022-11-23T01:08:14.3822210Z ================== 2022-11-23T01:08:14.3822381Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3822560Z  Write of size 2 at 0x7b780000e05c by main thread: 2022-11-23T01:08:14.3824727Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.3824990Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3825215Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3825498Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3825789Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3826013Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3826214Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3826442Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3826655Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3827366Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3827645Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3827865Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3828251Z #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+0x6562cde) 2022-11-23T01:08:14.3828635Z #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+0x20cf997) 2022-11-23T01:08:14.3828853Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3829051Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3829864Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3830073Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3830312Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3831025Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3831250Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3831681Z #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+0xca56e8) 2022-11-23T01:08:14.3832096Z #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+0x2974180) 2022-11-23T01:08:14.3832339Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3833220Z #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+0x57a0418) 2022-11-23T01:08:14.3833433Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3833714Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3833892Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3834076Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3834333Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3834447Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3834553Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3834672Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3834841Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3835157Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3835277Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3835368Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3835375Z 2022-11-23T01:08:14.3835564Z  Previous write of size 2 at 0x7b780000e05c by thread T1: 2022-11-23T01:08:14.3837703Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.3838000Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3838223Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3838500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3838788Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3839063Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3839206Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3839434Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3839573Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3839579Z 2022-11-23T01:08:14.3839799Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2022-11-23T01:08:14.3839966Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3840090Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3840254Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3840493Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3840936Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3841209Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3841480Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3841749Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3842847Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3843490Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3843799Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3844861Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3845154Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3845345Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3845619Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3846749Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3847059Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3848142Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3848446Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3848717Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3849849Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3850225Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3851318Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3851610Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3851807Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3852106Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3853245Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3853554Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3854669Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3854948Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3855217Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3856838Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3857180Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3858839Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3859388Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3859710Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3859967Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3861078Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3861311Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3861595Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3861932Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3862315Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3862715Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3863483Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3864205Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3864547Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3864775Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3866079Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3866395Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3866718Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3867907Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3868307Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3869091Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3869540Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3869941Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3871104Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3871377Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3871726Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3871961Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3872319Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3872641Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3872762Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3872931Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3873105Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3873314Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3873723Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3873907Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3874014Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3874022Z 2022-11-23T01:08:14.3874323Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.3874578Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3874856Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3875332Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3875607Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3876086Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3876375Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3876731Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3877447Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3877909Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3878217Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3878585Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3879548Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3879845Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3880270Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3881317Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3881712Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3883121Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3883387Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3883606Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3884471Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3884718Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3884970Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3885346Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3885506Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3885682Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3885877Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3886112Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3886553Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3886741Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3886878Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3886890Z 2022-11-23T01:08:14.3889577Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3889775Z ================== 2022-11-23T01:08:14.3889853Z ================== 2022-11-23T01:08:14.3890125Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3890390Z  Write of size 2 at 0x7b780000e066 by main thread: 2022-11-23T01:08:14.3893780Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.3894200Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3894598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3895012Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3895468Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3895766Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3896052Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3896400Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.3896723Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3897564Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3897921Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3898271Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3899057Z #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+0x6562cde) 2022-11-23T01:08:14.3899662Z #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+0x20cf997) 2022-11-23T01:08:14.3899995Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3900305Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3901541Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3901865Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3902176Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3903280Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3903685Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3904141Z #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+0xca56e8) 2022-11-23T01:08:14.3904548Z #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+0x2974180) 2022-11-23T01:08:14.3904798Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3906122Z #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+0x57a0418) 2022-11-23T01:08:14.3906450Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3906875Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3907148Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3907473Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3907866Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3908023Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3908203Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3908378Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3908624Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3909091Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3909284Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3909428Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3909439Z 2022-11-23T01:08:14.3909801Z  Previous write of size 2 at 0x7b780000e066 by thread T1: 2022-11-23T01:08:14.3913300Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.3913723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3914063Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3914483Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3914961Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3915366Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.3915553Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.3915953Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.3916189Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.3916202Z 2022-11-23T01:08:14.3916557Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2022-11-23T01:08:14.3916808Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.3916999Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.3917253Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.3917573Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.3918278Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.3918745Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.3919153Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.3919525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.3920785Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.3921564Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.3922034Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.3923806Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.3924420Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.3924781Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.3925223Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.3927045Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.3927598Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3929560Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3930033Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3930484Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3932307Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3932891Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3934596Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3935126Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3935432Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3935819Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.3937518Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.3938083Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.3939907Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.3940343Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.3940685Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.3942221Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.3942656Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.3944179Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.3944576Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.3944847Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.3945030Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.3945952Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.3946201Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.3946533Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.3946823Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.3947218Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.3947595Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3948227Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.3948784Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.3949141Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3949412Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3950424Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3950664Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3950951Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3952054Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3952412Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3953084Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.3953747Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.3954124Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3955461Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.3955852Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3956286Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3956544Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3956813Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3957210Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3957373Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3957554Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3957738Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3957967Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3958456Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3958633Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3958773Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3958783Z 2022-11-23T01:08:14.3959127Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.3959380Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.3959709Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.3960200Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.3960465Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.3960961Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.3961135Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.3961331Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.3961871Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.3962278Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.3962557Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.3962861Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.3963699Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.3964005Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.3964343Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.3965363Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.3965697Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.3966908Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.3967189Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.3967406Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.3968203Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.3968359Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.3968514Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.3968767Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3968904Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3969084Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3969279Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3969504Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3969983Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3970229Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3970381Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3970391Z 2022-11-23T01:08:14.3973005Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.3973121Z ================== 2022-11-23T01:08:14.3973443Z ================== 2022-11-23T01:08:14.3973713Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.3973990Z  Write of size 4 at 0x7b880000b8e8 by main thread: 2022-11-23T01:08:14.3977414Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:14.3977822Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3978173Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3978753Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3979222Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.3979604Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.3979896Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.3980227Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.3980565Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.3981661Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.3982034Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.3982366Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.3982936Z #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+0x6562cde) 2022-11-23T01:08:14.3983536Z #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+0x20cf997) 2022-11-23T01:08:14.3983865Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.3984226Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.3985035Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.3985247Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.3985536Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.3986543Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.3986891Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.3987540Z #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+0xca56e8) 2022-11-23T01:08:14.3988164Z #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+0x2974180) 2022-11-23T01:08:14.3988568Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.3990136Z #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+0x57a0418) 2022-11-23T01:08:14.3990537Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.3991008Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.3991317Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.3991628Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.3992059Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.3992262Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.3992453Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.3992640Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.3992929Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.3993434Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.3993646Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.3993804Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.3993814Z 2022-11-23T01:08:14.3994184Z  Previous write of size 4 at 0x7b880000b8e8 by thread T3: 2022-11-23T01:08:14.3997921Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.3998427Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.3998842Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.3999359Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.3999962Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4000476Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4000743Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4001118Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4001366Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4001378Z 2022-11-23T01:08:14.4001799Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4002129Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4002326Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4002501Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4002888Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4003688Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4004200Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4004591Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4005050Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4006829Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4008042Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4008573Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4010451Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4010988Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4011290Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4011799Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4013830Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4014431Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4016321Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4016887Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4017386Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4018902Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4019234Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4020383Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4020692Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4020886Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4021185Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4022283Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4022639Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4023698Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4024011Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4024282Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4025413Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4025765Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4026852Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4027154Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4027347Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4027485Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4028164Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4028321Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4028518Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4028717Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4028939Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4029159Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4029544Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4030080Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4030294Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4030496Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4031245Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4031452Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4031657Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4032367Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4032615Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4033045Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4033428Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4033668Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4034537Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4034774Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4035054Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4035230Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4035413Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4035664Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4035768Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4035889Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4036009Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4036156Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4036471Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4036590Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4036686Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4036692Z 2022-11-23T01:08:14.4036927Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4037095Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4037352Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4037670Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4037846Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4038141Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4038282Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4038477Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4038892Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4039139Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4039322Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4039514Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4040074Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4040240Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4040465Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4041147Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4041361Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4042169Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4042351Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4042493Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4043071Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4043215Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4043365Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4043650Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4043764Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4043881Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4044002Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4044137Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4044509Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4044692Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4044836Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4044849Z 2022-11-23T01:08:14.4047663Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4047783Z ================== 2022-11-23T01:08:14.4047859Z ================== 2022-11-23T01:08:14.4048114Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4048436Z  Write of size 4 at 0x7b880000b8ec by main thread: 2022-11-23T01:08:14.4052165Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:14.4052707Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4053035Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4053398Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4053821Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4054069Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4054339Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4054634Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.4054963Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4056122Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4056501Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4056831Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4057456Z #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+0x6562cde) 2022-11-23T01:08:14.4058059Z #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+0x20cf997) 2022-11-23T01:08:14.4058298Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4058709Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4059811Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4060157Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4060416Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4061554Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4061923Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4062550Z #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+0xca56e8) 2022-11-23T01:08:14.4063133Z #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+0x2974180) 2022-11-23T01:08:14.4063511Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4065034Z #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+0x57a0418) 2022-11-23T01:08:14.4065306Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4065611Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4065825Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4066104Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4066469Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4066656Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4066850Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4067035Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4067272Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4067770Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4067958Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4068098Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4068108Z 2022-11-23T01:08:14.4068444Z  Previous write of size 4 at 0x7b880000b8ec by thread T3: 2022-11-23T01:08:14.4071452Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.4071896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4072227Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4072662Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4073124Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4073567Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4073798Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4074153Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4074355Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4074364Z 2022-11-23T01:08:14.4074727Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4074989Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4075188Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4075422Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4075746Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4076421Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4076848Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4077241Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4077668Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4079312Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4080276Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4080758Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4082402Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4082886Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4083188Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4083616Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4085095Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4085561Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4087199Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4087679Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4088096Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4089869Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4090361Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4091772Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4092117Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4092457Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4092906Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4094650Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4095130Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4096797Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4097258Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4097682Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4099536Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4100137Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4101847Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4102291Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4102656Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4102887Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4103857Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4104090Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4104400Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4104720Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4105149Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4105491Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4106092Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4106650Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4106980Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4107248Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4108003Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4108301Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4108540Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4109783Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4110132Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4110796Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4111488Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4111835Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4113019Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4113348Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4113749Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4114023Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4114333Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4114757Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4114949Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4115159Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4115371Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4115620Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4116229Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4116430Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4116603Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4116614Z 2022-11-23T01:08:14.4117026Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4117336Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4117734Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4118299Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4118596Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4119134Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4119445Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4119776Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4120537Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4120945Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4121265Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4121618Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4122629Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4122931Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4123314Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4124530Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4124928Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4126366Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4126675Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4126947Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4127982Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4128286Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4128559Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4129025Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4129215Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4129417Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4129612Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4129891Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4130455Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4130669Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4130839Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4130847Z 2022-11-23T01:08:14.4133918Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4134043Z ================== 2022-11-23T01:08:14.4134563Z ================== 2022-11-23T01:08:14.4134873Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4135206Z  Write of size 4 at 0x7b880000b8f0 by main thread: 2022-11-23T01:08:14.4139218Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.4139554Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4139779Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4140062Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4140356Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4140548Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4140755Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4140985Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.4141198Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4141914Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4142189Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4142410Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4142795Z #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+0x6562cde) 2022-11-23T01:08:14.4143194Z #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+0x20cf997) 2022-11-23T01:08:14.4143406Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4143634Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4144382Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4144586Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4144790Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4145500Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4145724Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4146152Z #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+0xca56e8) 2022-11-23T01:08:14.4146563Z #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+0x2974180) 2022-11-23T01:08:14.4146804Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4147671Z #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+0x57a0418) 2022-11-23T01:08:14.4147907Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4148185Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4148360Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4148544Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4148796Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4148900Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4149018Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4149138Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4149285Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4149663Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4149785Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4149881Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4149887Z 2022-11-23T01:08:14.4150086Z  Previous write of size 4 at 0x7b880000b8f0 by thread T3: 2022-11-23T01:08:14.4152292Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.4152555Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4152779Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4153064Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4153392Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4153659Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4153802Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4154026Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4154162Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4154168Z 2022-11-23T01:08:14.4154388Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4154559Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4154687Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4154847Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4155053Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4155496Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4155766Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4156034Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4156297Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4157406Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4158042Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4158376Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4159407Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4159685Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4159872Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4160140Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4161279Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4161587Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4162685Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4162959Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4163229Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4164380Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4164717Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4165814Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4166136Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4166331Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4166628Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4167821Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4168309Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4170122Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4170593Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4171082Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4172824Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4173370Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4175266Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4175766Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4176101Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4176363Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4177445Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4177753Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4178076Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4178410Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4178911Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4179269Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4179904Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4180509Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4180875Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4181234Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4182703Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4182920Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4183210Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4184010Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4184354Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4184788Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4185272Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4185530Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4186557Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4186860Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4187141Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4187318Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4187500Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4187856Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4187998Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4188205Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4188409Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4188679Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4189216Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4189397Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4189618Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4189630Z 2022-11-23T01:08:14.4189919Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4190173Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4190568Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4191075Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4191357Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4191811Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4192058Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4192280Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4192951Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4193326Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4193610Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4194108Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4195055Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4195345Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4195776Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4196737Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4197150Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4198054Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4198270Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4198420Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4199003Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4199150Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4199301Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4199557Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4199675Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4199793Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4199900Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4200048Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4200362Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4200481Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4200575Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4200582Z 2022-11-23T01:08:14.4202303Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4202379Z ================== 2022-11-23T01:08:14.4202447Z ================== 2022-11-23T01:08:14.4202617Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4202800Z  Write of size 4 at 0x7b880000b8f4 by main thread: 2022-11-23T01:08:14.4204969Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.4205261Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4205483Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4205766Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4206059Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4206251Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4206455Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4206683Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.4206899Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4207639Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4207896Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4208101Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4208500Z #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+0x6562cde) 2022-11-23T01:08:14.4208912Z #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+0x20cf997) 2022-11-23T01:08:14.4209124Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4209326Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4210071Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4210276Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4210479Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4211196Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4211444Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4211875Z #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+0xca56e8) 2022-11-23T01:08:14.4212259Z #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+0x2974180) 2022-11-23T01:08:14.4212500Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4213371Z #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+0x57a0418) 2022-11-23T01:08:14.4213611Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4213890Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4214068Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4214251Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4214505Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4214620Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4214729Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4214848Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4214996Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4215309Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4215429Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4215522Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4215528Z 2022-11-23T01:08:14.4215717Z  Previous write of size 4 at 0x7b880000b8f4 by thread T3: 2022-11-23T01:08:14.4217892Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.4218179Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4218402Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4218816Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4219110Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4219383Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4219530Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4219755Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4219895Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4219901Z 2022-11-23T01:08:14.4220128Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4220297Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4220422Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4220584Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4220793Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4221235Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4221559Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4221827Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4222095Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4223176Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4223851Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4224158Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4225189Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4225508Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4225684Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4225961Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4227076Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4227422Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4228494Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4228772Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4229044Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4230287Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4230630Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4231720Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4232045Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4232240Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4232541Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4233673Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4233982Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4235048Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4235364Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4235636Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4236760Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4237095Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4238204Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4238496Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4238715Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4238863Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4239504Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4239660Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4239858Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4240060Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4240295Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4240512Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4240898Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4241286Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4241500Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4241724Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4242486Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4242689Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4242896Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4243628Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4243853Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4244283Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4244668Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4244906Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4245762Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4246015Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4246294Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4246471Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4246641Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4246895Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4247011Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4247132Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4247253Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4247400Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4247741Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4247859Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4247953Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4247959Z 2022-11-23T01:08:14.4248180Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4248347Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4248556Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4248874Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4249050Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4249344Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4249495Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4249685Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4250094Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4250320Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4250507Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4250700Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4251297Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4251462Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4251686Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4252354Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4252596Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4253386Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4253561Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4253705Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4254279Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4254424Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4254575Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4254829Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4254946Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4255052Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4255173Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4255319Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4255630Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4255775Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4255869Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4255874Z 2022-11-23T01:08:14.4257539Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4257650Z ================== 2022-11-23T01:08:14.4257713Z ================== 2022-11-23T01:08:14.4257882Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4258061Z  Write of size 4 at 0x7b880000b8f8 by main thread: 2022-11-23T01:08:14.4260316Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.4260583Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4260808Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4261094Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4261384Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4261578Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4261829Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4262060Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.4262276Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4262991Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4263275Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4263495Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4263881Z #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+0x6562cde) 2022-11-23T01:08:14.4264269Z #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+0x20cf997) 2022-11-23T01:08:14.4264487Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4264688Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4265456Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4265662Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4265871Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4266606Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4266837Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4267267Z #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+0xca56e8) 2022-11-23T01:08:14.4267656Z #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+0x2974180) 2022-11-23T01:08:14.4267925Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4268799Z #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+0x57a0418) 2022-11-23T01:08:14.4269014Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4269296Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4269472Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4269721Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4269980Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4270082Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4270204Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4270324Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4270474Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4270817Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4270938Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4271035Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4271041Z 2022-11-23T01:08:14.4271236Z  Previous write of size 4 at 0x7b880000b8f8 by thread T3: 2022-11-23T01:08:14.4273381Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.4273674Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4273893Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4274180Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4274468Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4274739Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4274884Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4275111Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4275251Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4275257Z 2022-11-23T01:08:14.4275475Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4275644Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4275769Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4275929Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4276148Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4276607Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4276880Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4277145Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4277413Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4278773Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4279962Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4280534Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4282394Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4282920Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4283197Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4283637Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4285648Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4286216Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4287944Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4288431Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4288868Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4290607Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4291177Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4292868Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4293338Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4293652Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4294117Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4295917Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4296417Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4298222Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4298611Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4298885Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4300092Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4300422Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4301524Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4301864Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4302059Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4302195Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4302847Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4303001Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4303201Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4303402Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4303627Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4303847Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4304232Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4304658Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4304874Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4305074Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4305825Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4306056Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4306261Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4306973Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4307201Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4307629Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4308012Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4308257Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4309148Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4309361Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4309714Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4309891Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4310074Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4310364Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4310466Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4310589Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4310708Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4310857Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4311172Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4311293Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4311388Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4311395Z 2022-11-23T01:08:14.4311646Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4311814Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4312037Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4312354Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4312528Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4312833Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4312986Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4313163Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4313572Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4313840Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4314027Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4314216Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4314773Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4314936Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4315164Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4316026Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4316236Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4317002Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4317180Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4317324Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4317900Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4318048Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4318198Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4318481Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4318598Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4318717Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4318842Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4318978Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4319289Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4319407Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4319499Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4319505Z 2022-11-23T01:08:14.4321363Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4321514Z ================== 2022-11-23T01:08:14.4321581Z ================== 2022-11-23T01:08:14.4321756Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4321988Z  Write of size 4 at 0x7b880000b8fc by main thread: 2022-11-23T01:08:14.4325466Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.4325912Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4326261Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4326769Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4327244Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4327530Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4327859Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4328247Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.4328601Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4329766Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4330221Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4330597Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4331225Z #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+0x6562cde) 2022-11-23T01:08:14.4331878Z #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+0x20cf997) 2022-11-23T01:08:14.4332233Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4332568Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4333843Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4334191Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4334533Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4335732Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4336199Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4336906Z #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+0xca56e8) 2022-11-23T01:08:14.4337590Z #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+0x2974180) 2022-11-23T01:08:14.4337983Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4339505Z #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+0x57a0418) 2022-11-23T01:08:14.4339873Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4340344Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4340655Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4340983Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4341550Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4341734Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4341944Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4342156Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4342438Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4342870Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4342994Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4343087Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4343094Z 2022-11-23T01:08:14.4343318Z  Previous write of size 4 at 0x7b880000b8fc by thread T3: 2022-11-23T01:08:14.4345514Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.4345849Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4346073Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4346349Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4346651Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4346923Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4347053Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4347278Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4347443Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4347450Z 2022-11-23T01:08:14.4347673Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2022-11-23T01:08:14.4347841Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4347966Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4348127Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4348330Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4348771Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4349040Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4349334Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4349679Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4350759Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4351407Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4351711Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4352773Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4353061Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4353278Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4353547Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4354656Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4354967Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4356060Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4356339Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4356609Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4357756Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4358102Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4359193Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4359496Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4359715Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4360014Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4361114Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4361449Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4362512Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4362788Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4363059Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4364649Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4365153Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4366635Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4367177Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4367532Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4367771Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4368936Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4369219Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4369577Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4369945Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4370386Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4370688Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4371343Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4372039Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4372416Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4372764Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4374174Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4374542Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4374902Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4376182Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4376590Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4377370Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4378068Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4378604Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4380171Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4380637Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4381148Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4381474Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4381794Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4382245Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4382441Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4382645Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4382854Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4383106Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4383693Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4383907Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4384076Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4384087Z 2022-11-23T01:08:14.4384516Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.4384822Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4385225Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4385814Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4386131Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4386671Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4386999Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4387253Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4387656Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4387876Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4388061Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4388253Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4388811Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4389009Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4389237Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4389980Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4390191Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4390959Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4391140Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4391285Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4391891Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4392041Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4392192Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4392449Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4392566Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4392684Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4392805Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4392941Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4393252Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4393400Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4393495Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4393500Z 2022-11-23T01:08:14.4395165Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.4395237Z ================== 2022-11-23T01:08:14.4395301Z ================== 2022-11-23T01:08:14.4395467Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4395643Z  Write of size 8 at 0x7b9800029160 by main thread: 2022-11-23T01:08:14.4397826Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4398104Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4398330Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4398601Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4398903Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4399083Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4399313Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4399541Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4399752Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4400546Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.4400763Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.4400963Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4401714Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4401919Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4402150Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4402926Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4403173Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4404046Z #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+0x57a0418) 2022-11-23T01:08:14.4404301Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4404489Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4404747Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4404862Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4404980Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4405088Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4405236Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4405550Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4405671Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4405766Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4405772Z 2022-11-23T01:08:14.4405955Z  Previous write of size 8 at 0x7b9800029160 by thread T1: 2022-11-23T01:08:14.4408129Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.4408393Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4408616Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4408925Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4409212Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4409482Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4409621Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4409847Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4409984Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4409990Z 2022-11-23T01:08:14.4410212Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.4410377Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4410499Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4410659Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4410865Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4411310Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4411577Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4411840Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4412131Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4413202Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4413872Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4414174Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4415205Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4415489Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4415665Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.4416343Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.4416603Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.4416925Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.4418216Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4418809Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4420391Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4420790Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4421133Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4421535Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4421749Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4421966Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4422188Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4422460Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4423012Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4423232Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4423478Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4423491Z 2022-11-23T01:08:14.4423912Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.4424232Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4424603Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4425192Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4425503Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4425998Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4426252Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4426658Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4427438Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4427805Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4428135Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4428496Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4429495Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4429858Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4430287Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4431501Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4431907Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4433374Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4433707Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4433968Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4435053Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4435328Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4435495Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4435811Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4435977Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4436097Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4436208Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4436355Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4436726Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4436911Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4437065Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4437076Z 2022-11-23T01:08:14.4439166Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4439240Z ================== 2022-11-23T01:08:14.4439472Z ================== 2022-11-23T01:08:14.4439643Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4439822Z  Write of size 8 at 0x7b9800029168 by main thread: 2022-11-23T01:08:14.4442018Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.4442310Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4442535Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4442821Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4443109Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4443306Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4443509Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4443736Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4443949Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4444748Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.4444967Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.4445196Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4445948Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4446156Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4446363Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4447168Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4447410Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4448291Z #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+0x57a0418) 2022-11-23T01:08:14.4448503Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4448688Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4448945Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4449061Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4449169Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4449290Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4449463Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4449777Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4449898Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4449993Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4449999Z 2022-11-23T01:08:14.4450184Z  Previous write of size 8 at 0x7b9800029168 by thread T1: 2022-11-23T01:08:14.4452315Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.4452605Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4452828Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4453112Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4453397Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4453667Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4453809Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4454031Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4454167Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4454173Z 2022-11-23T01:08:14.4454391Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.4454555Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4454677Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4454864Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4455069Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4455514Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4455783Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4456051Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4456315Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4457426Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4458065Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4458370Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4459552Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4459848Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4460014Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.4460671Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.4460886Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.4461095Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.4461874Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4462119Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4462973Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4463220Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4463408Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4463665Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4463782Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4463906Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4464026Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4464178Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4464496Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4464617Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4464711Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4464746Z 2022-11-23T01:08:14.4464963Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.4465119Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4465343Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4465660Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4465836Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4466131Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4466286Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4466478Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4466883Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4467105Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4467295Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4467489Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4468048Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4468216Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4468471Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4469132Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4469343Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4470262Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4470485Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4470634Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4471206Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4471355Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4471512Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4471768Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4471886Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4471995Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4472116Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4472267Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4472582Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4472703Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4472798Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4472803Z 2022-11-23T01:08:14.4474491Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4474566Z ================== 2022-11-23T01:08:14.4474634Z ================== 2022-11-23T01:08:14.4474803Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4474982Z  Write of size 8 at 0x7b9800029170 by main thread: 2022-11-23T01:08:14.4477125Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4477421Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4477644Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4477931Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4478224Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4478420Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4478627Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4478857Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4479100Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4479882Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.4480104Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.4480305Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4481099Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4481301Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4481512Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4482291Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4482536Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4483424Z #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+0x57a0418) 2022-11-23T01:08:14.4483648Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4483822Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4484076Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4484190Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4484311Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4484430Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4484578Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4484916Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4485034Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4485127Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4485133Z 2022-11-23T01:08:14.4485319Z  Previous write of size 8 at 0x7b9800029170 by thread T1: 2022-11-23T01:08:14.4487455Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4487716Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4487939Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4488224Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4488555Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4488824Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4488968Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4489191Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4489327Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4489333Z 2022-11-23T01:08:14.4489552Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.4489720Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4489842Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4489988Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4490228Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4490669Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4490949Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4491213Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4491481Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4492547Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4493282Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4493604Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4494628Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4494929Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4495106Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.4495753Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.4495933Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.4496139Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.4496950Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4497193Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4498052Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4498266Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4498576Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4498836Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4498953Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4499074Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4499193Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4499343Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4499661Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4499782Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4499862Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4499880Z 2022-11-23T01:08:14.4500087Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.4500254Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4500475Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4500796Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4500969Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4501268Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4501422Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4501611Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4502014Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4502285Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4502476Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4502669Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4503230Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4503396Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4503622Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4504319Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4504528Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4505300Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4505480Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4505624Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4506217Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4506362Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4506502Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4506784Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4506901Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4507022Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4507145Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4507292Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4507603Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4507722Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4507813Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4507819Z 2022-11-23T01:08:14.4509494Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4509664Z ================== 2022-11-23T01:08:14.4509731Z ================== 2022-11-23T01:08:14.4509902Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4510081Z  Write of size 8 at 0x7b9800029218 by main thread: 2022-11-23T01:08:14.4512225Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.4512486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4512744Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4513031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4513320Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4513513Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4513716Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4513944Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4514160Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4514974Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.4515189Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.4515392Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4516148Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4516364Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4516558Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4517368Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4517612Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4518468Z #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+0x57a0418) 2022-11-23T01:08:14.4518707Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4518892Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4519147Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4519263Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4519383Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4519506Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4519654Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4519965Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4520125Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4520219Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4520224Z 2022-11-23T01:08:14.4520397Z  Previous write of size 8 at 0x7b9800029218 by thread T1: 2022-11-23T01:08:14.4523260Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.4523696Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4524033Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4524481Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4524918Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4525445Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4525690Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4526043Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4526280Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4526291Z 2022-11-23T01:08:14.4526704Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.4526964Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4527165Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4527409Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4527758Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4528485Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4528864Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4529270Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4529688Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4531373Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4532321Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4532877Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4534336Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4534776Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4535070Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.4535962Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.4536241Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.4536511Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.4537522Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.4537971Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.4539869Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4540233Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4540465Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cd89c) 2022-11-23T01:08:14.4540781Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4540950Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4541109Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4541273Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4541465Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4541920Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4542095Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4542224Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4542231Z 2022-11-23T01:08:14.4542556Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.4542833Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4543066Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4543622Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4543906Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4544386Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4544649Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4544948Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4545627Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4545987Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4546371Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4546680Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4547607Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4547863Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4548240Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4549325Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4549746Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4551036Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4551244Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4551426Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4552023Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4552172Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4552325Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4552569Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4552719Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4552840Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4552960Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4553107Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4553419Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4553543Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4553635Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4553642Z 2022-11-23T01:08:14.4555331Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4555406Z ================== 2022-11-23T01:08:14.4555554Z ================== 2022-11-23T01:08:14.4555723Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4555903Z  Write of size 8 at 0x7b9800041160 by main thread: 2022-11-23T01:08:14.4558099Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4558377Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4558604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4558915Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4559206Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4559399Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4559603Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4559819Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4560033Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4560759Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4560998Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4561217Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4561606Z #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+0x6562cde) 2022-11-23T01:08:14.4562019Z #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+0x20cf997) 2022-11-23T01:08:14.4562234Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4562433Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4563187Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4563423Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4563628Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4564337Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4564563Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4565004Z #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+0xca56e8) 2022-11-23T01:08:14.4565391Z #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+0x2974180) 2022-11-23T01:08:14.4565634Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4566525Z #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+0x57a0418) 2022-11-23T01:08:14.4566742Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4567023Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4567201Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4567382Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4567682Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4567797Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4567915Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4568036Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4568170Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4568488Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4568606Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4568703Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4568709Z 2022-11-23T01:08:14.4568896Z  Previous write of size 8 at 0x7b9800041160 by thread T2: 2022-11-23T01:08:14.4571027Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.4571333Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4571555Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4571841Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4572128Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4572397Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4572540Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4572753Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4572942Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4572948Z 2022-11-23T01:08:14.4573169Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2022-11-23T01:08:14.4573338Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4573463Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4573623Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4573826Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4574271Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4574542Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4574808Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4575076Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4576164Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4576807Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4577109Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4578174Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4578448Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4578774Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4579049Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4580201Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4580512Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4581583Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4581897Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4582165Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4583407Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4583816Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4585630Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4586105Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4586460Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4586928Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4588661Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4589154Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4591024Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4591446Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4591893Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4593722Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4594306Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4596002Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4596496Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4596813Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4597099Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4598159Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4598382Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4598649Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4598926Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4599289Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4599639Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4600145Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4600791Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4601145Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4601504Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4602754Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4603047Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4603338Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4604544Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4604905Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4605549Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4606153Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4606616Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4607978Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4608313Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4608733Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4608970Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4609255Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4609676Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4609874Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4610063Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4610226Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4610438Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4610960Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4611158Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4611310Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4611327Z 2022-11-23T01:08:14.4611707Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.4611991Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4612351Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4612823Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4613086Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4613573Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4613879Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4614197Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4614778Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4615052Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4615266Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4615530Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4616339Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4616581Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4616915Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4617920Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4618255Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4619660Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4619939Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4620172Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4621075Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4621370Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4621604Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4621997Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4622163Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4622341Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4622528Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4622762Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4623231Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4623396Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4623536Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4623545Z 2022-11-23T01:08:14.4626052Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4626142Z ================== 2022-11-23T01:08:14.4626354Z ================== 2022-11-23T01:08:14.4626620Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4626959Z  Write of size 8 at 0x7b9800041168 by main thread: 2022-11-23T01:08:14.4630426Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.4630879Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4631220Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4631654Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4632102Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4632402Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4632619Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4632846Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4633062Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4634021Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4634438Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4634777Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4635371Z #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+0x6562cde) 2022-11-23T01:08:14.4635959Z #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+0x20cf997) 2022-11-23T01:08:14.4636285Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4636602Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4637810Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4638106Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4638431Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4639507Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4639855Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4640519Z #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+0xca56e8) 2022-11-23T01:08:14.4641122Z #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+0x2974180) 2022-11-23T01:08:14.4641501Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4642809Z #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+0x57a0418) 2022-11-23T01:08:14.4643194Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4643629Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4643920Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4644185Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4644579Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4644742Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4644931Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4645125Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4645353Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4645843Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4646029Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4646180Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4646192Z 2022-11-23T01:08:14.4646501Z  Previous write of size 8 at 0x7b9800041168 by thread T2: 2022-11-23T01:08:14.4649441Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.4649830Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4650145Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4650578Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4651019Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4651520Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4651759Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4652164Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4652428Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4652440Z 2022-11-23T01:08:14.4652799Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2022-11-23T01:08:14.4653063Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4653267Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4653502Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4653812Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4654526Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4654908Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4655307Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4655718Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4657362Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4658330Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4658980Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4660387Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4660743Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4661000Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4661395Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4662925Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4663394Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4664958Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4665410Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4665840Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4667516Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4667884Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4669465Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4669991Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4670264Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4670771Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4672246Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4672657Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4674366Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4674830Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4675323Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4676888Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4688849Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4690447Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4690752Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4690950Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4691101Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4691740Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4691920Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4692113Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4692309Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4692545Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4692763Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4693159Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4693727Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4694070Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4694376Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4695579Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4695902Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4696217Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4697331Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4697681Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4698397Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4699102Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4699467Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4700808Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4701139Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4701579Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4701838Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4702120Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4702605Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4702802Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4702993Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4703186Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4703408Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4703753Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4703875Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4703980Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4703990Z 2022-11-23T01:08:14.4704335Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.4704598Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4704910Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4705460Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4705734Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4706191Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4706427Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4706723Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4707372Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4707713Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4708007Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4708302Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4709148Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4709409Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4709821Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4710734Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4710951Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4712039Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4712385Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4712586Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4713475Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4713706Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4713931Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4714333Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4714515Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4714691Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4714877Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4715086Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4715568Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4715757Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4715906Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4715916Z 2022-11-23T01:08:14.4718612Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4718719Z ================== 2022-11-23T01:08:14.4718939Z ================== 2022-11-23T01:08:14.4719220Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4719471Z  Write of size 8 at 0x7b9800041170 by main thread: 2022-11-23T01:08:14.4722864Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4723337Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4723671Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4724105Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4724556Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4724833Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4725141Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4725500Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4725820Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4726776Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4727020Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4727240Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4727755Z #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+0x6562cde) 2022-11-23T01:08:14.4728449Z #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+0x20cf997) 2022-11-23T01:08:14.4728736Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4729072Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4730391Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4730749Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4731090Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4732242Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4732679Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4733228Z #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+0xca56e8) 2022-11-23T01:08:14.4733862Z #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+0x2974180) 2022-11-23T01:08:14.4734221Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4735577Z #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+0x57a0418) 2022-11-23T01:08:14.4735915Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4736320Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4736590Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4736876Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4737295Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4737482Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4737662Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4737862Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4738085Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4738723Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4738926Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4739078Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4739088Z 2022-11-23T01:08:14.4739364Z  Previous write of size 8 at 0x7b9800041170 by thread T2: 2022-11-23T01:08:14.4742803Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.4743262Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4743692Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4744148Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4744637Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4745055Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4745295Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4745640Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4745851Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4745859Z 2022-11-23T01:08:14.4746248Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2022-11-23T01:08:14.4746501Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4746672Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4746901Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4747188Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4747875Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4748281Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4748755Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4749203Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4750985Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4752139Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4752636Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4754254Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4754671Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4754930Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4755220Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4756767Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4757339Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4758857Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4759163Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4759468Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4760647Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4760973Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4762072Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4762402Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4762596Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4762891Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4764015Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4764323Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4765397Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4765699Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4765971Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4767113Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4767437Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4768551Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4768854Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4769047Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4769235Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4769876Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4770029Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4770228Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4770431Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4770666Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4770885Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4771272Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4771662Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4771876Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4772076Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4772850Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4773058Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4773267Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4773977Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4774227Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4774656Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4775041Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4775285Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4776159Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4776396Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4776676Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4776855Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4777039Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4777295Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4777410Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4777518Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4777640Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4777787Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4778100Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4778250Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4778343Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4778350Z 2022-11-23T01:08:14.4778699Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.4778872Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4779093Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4779413Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4779587Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4779881Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4780034Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4780226Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4780638Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4780847Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4781035Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4781227Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4781835Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4782002Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4782228Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4782901Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4783111Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4783918Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4784095Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4784240Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4784817Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4784963Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4785116Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4785371Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4785489Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4785610Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4785732Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4785881Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4786179Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4786297Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4786421Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4786428Z 2022-11-23T01:08:14.4788094Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4788165Z ================== 2022-11-23T01:08:14.4788320Z ================== 2022-11-23T01:08:14.4788517Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4788695Z  Write of size 8 at 0x7b9800041218 by main thread: 2022-11-23T01:08:14.4790938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.4791201Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4791424Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4791708Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4791997Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4792189Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4792433Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4792664Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.4792877Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4793593Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4793830Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4794079Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4794463Z #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+0x6562cde) 2022-11-23T01:08:14.4794849Z #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+0x20cf997) 2022-11-23T01:08:14.4795067Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4795266Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4796030Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4796235Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4796440Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4797176Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4797401Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4797835Z #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+0xca56e8) 2022-11-23T01:08:14.4798217Z #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+0x2974180) 2022-11-23T01:08:14.4798485Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4799346Z #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+0x57a0418) 2022-11-23T01:08:14.4799571Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4799850Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4800014Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4800198Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4800459Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4800573Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4800691Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4800814Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4800962Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4801304Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4801425Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4801516Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4801524Z 2022-11-23T01:08:14.4801711Z  Previous write of size 8 at 0x7b9800041218 by thread T2: 2022-11-23T01:08:14.4803872Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.4804169Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4804394Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4804678Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4804969Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4805236Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4805379Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4805603Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4805741Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4805747Z 2022-11-23T01:08:14.4805968Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2022-11-23T01:08:14.4806133Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4806241Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4806400Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4806605Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4807077Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4807348Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4807614Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4807882Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4808967Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4809620Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4809939Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4810999Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4811277Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4811510Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4811906Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4813025Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4813369Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4814422Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4814710Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4815011Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4816149Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4816496Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4817604Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4817894Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4818090Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4818387Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4819669Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4819983Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4821037Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4821366Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4821635Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4822790Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4823116Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4824217Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4824530Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4824723Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4824872Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4825509Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4825665Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4825861Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4826066Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4826302Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4826521Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4826905Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4827341Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4827559Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4827759Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4828507Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4828740Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4828948Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4829746Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4829976Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4830404Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4830791Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4831034Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4831931Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4832147Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4832425Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4d3f) 2022-11-23T01:08:14.4832603Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4832787Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2cdbb0) 2022-11-23T01:08:14.4833082Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4833199Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4833319Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4833438Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4833585Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4833900Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4834017Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4834099Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4834105Z 2022-11-23T01:08:14.4834332Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.4834500Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4834721Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4835124Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4835340Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4835734Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4835900Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4836092Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4836571Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4836794Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4837016Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4837211Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4837770Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4837933Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4838160Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4838824Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4839061Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4839832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4840012Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4840156Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4840734Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4840893Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4841033Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4841288Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4841431Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4841553Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4841673Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4841824Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4842137Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4842256Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4842349Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4842354Z 2022-11-23T01:08:14.4844025Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.4844122Z ================== 2022-11-23T01:08:14.4844347Z [ OK ] LazyOpsTest.TestMultiIndexPutHeadNull (306 ms) 2022-11-23T01:08:14.4844549Z [ RUN ] LazyOpsTest.TestMultiIndexPutMiddleNull 2022-11-23T01:08:14.4898040Z ================== 2022-11-23T01:08:14.4898697Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4898994Z  Write of size 4 at 0x7b880000e8e8 by thread T1: 2022-11-23T01:08:14.4902358Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.4902690Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4903144Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4903682Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4904009Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4904276Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4904418Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4904643Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4904795Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4904845Z 2022-11-23T01:08:14.4905044Z  Previous write of size 4 at 0x7b880000e8e8 by main thread: 2022-11-23T01:08:14.4907212Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.4907472Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4907695Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4907979Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4908266Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4908461Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4908691Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4908921Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.4909136Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4909926Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4910192Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4910525Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4911097Z #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+0x6562cde) 2022-11-23T01:08:14.4911553Z #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+0x20cf997) 2022-11-23T01:08:14.4912153Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4912487Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4913790Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4914149Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4914555Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4915859Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4916203Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4916888Z #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+0xca56e8) 2022-11-23T01:08:14.4917503Z #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+0x2974180) 2022-11-23T01:08:14.4917945Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4919270Z #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+0x57a0418) 2022-11-23T01:08:14.4919610Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4920034Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.4920271Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4920553Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.4920880Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4921064Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4921234Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4921401Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4921589Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4922076Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4922245Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4922394Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4922404Z 2022-11-23T01:08:14.4922698Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.4922895Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4923088Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4923350Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4923673Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4924355Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4924811Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4925160Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.4925549Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.4927040Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.4928041Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.4928605Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.4930207Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.4930697Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.4930979Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.4931399Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.4933148Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.4933636Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4935348Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4935789Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4936218Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4937653Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4938209Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4940036Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4940561Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4940869Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4941328Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.4943025Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.4943471Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.4944721Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.4945152Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.4945580Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.4947349Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.4947869Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.4949535Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.4950092Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.4950401Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.4950633Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.4951625Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.4951939Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.4952236Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.4952545Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.4952944Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.4953298Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4953891Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.4954493Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.4954826Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4955162Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4956286Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4956605Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4956927Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4958035Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4958390Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4959032Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.4959502Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.4959749Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4960883Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.4961265Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4961708Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.4961987Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4962269Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.4962582Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4962746Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4962866Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4963004Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4963216Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4963627Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4963784Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4963912Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4963919Z 2022-11-23T01:08:14.4964230Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.4964473Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.4964767Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.4965161Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.4965384Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.4965813Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.4966029Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.4966244Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.4966805Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.4967106Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.4967354Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.4967635Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.4968380Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.4968661Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.4968936Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.4969758Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.4970026Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.4970978Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.4971207Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.4971408Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.4972361Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.4972591Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.4972825Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.4973244Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4973403Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4973563Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4973710Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4973919Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4974447Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4974731Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4974877Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4974885Z 2022-11-23T01:08:14.4977496Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.4977606Z ================== 2022-11-23T01:08:14.4977779Z ================== 2022-11-23T01:08:14.4978014Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.4978305Z  Write of size 4 at 0x7b880000e8ec by thread T1: 2022-11-23T01:08:14.4981775Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.4982178Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4982454Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4982798Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4983150Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4983535Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.4983679Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.4983905Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.4984042Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.4984048Z 2022-11-23T01:08:14.4984238Z  Previous write of size 4 at 0x7b880000e8ec by main thread: 2022-11-23T01:08:14.4986427Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:14.4986690Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.4986912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.4987229Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.4987519Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.4987713Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.4987915Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.4988140Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.4988353Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.4989152Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.4989636Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.4989912Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.4990432Z #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+0x6562cde) 2022-11-23T01:08:14.4991142Z #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+0x20cf997) 2022-11-23T01:08:14.4991487Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.4991689Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.4992486Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.4992706Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.4992900Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.4993620Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.4993842Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.4994298Z #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+0xca56e8) 2022-11-23T01:08:14.4994682Z #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+0x2974180) 2022-11-23T01:08:14.4994921Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.4995780Z #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+0x57a0418) 2022-11-23T01:08:14.4995991Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.4996273Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.4996449Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.4996636Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.4996918Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.4997035Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.4997155Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.4997277Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.4997423Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.4997734Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.4997852Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.4997944Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.4997950Z 2022-11-23T01:08:14.4998174Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.4998343Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.4998468Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.4998630Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.4998872Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.4999318Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.4999588Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.4999852Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5000120Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5001199Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5001845Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5002152Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5003196Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5003500Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5003687Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5003959Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5005058Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5005400Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5006448Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5006751Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5007019Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5008152Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5008477Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5009607Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5009897Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5010088Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5010389Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5011479Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5011832Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5012877Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5013183Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5013452Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5014591Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5014939Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5016035Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5016324Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5016519Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5016667Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5017330Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5017485Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5017715Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5017916Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5018151Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5018411Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5019002Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5019630Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5019912Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5020219Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5021387Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5021769Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5022156Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5023247Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5023786Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5024458Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5025017Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5025358Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5026668Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5027066Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5027496Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5027731Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5028010Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5028429Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5028619Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5028828Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5029036Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5029273Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5029858Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5030039Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5030210Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5030220Z 2022-11-23T01:08:14.5030605Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5030888Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5031330Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5031889Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5032197Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5032672Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5032913Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5033213Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5033851Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5034285Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5034590Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5034864Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5035676Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5035934Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5036316Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5037472Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5037807Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5038953Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5039194Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5039414Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5040486Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5040743Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5041013Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5041533Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5041747Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5041967Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5042118Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5042267Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5042759Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5042922Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5043068Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5043080Z 2022-11-23T01:08:14.5045658Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.5045744Z ================== 2022-11-23T01:08:14.5045907Z ================== 2022-11-23T01:08:14.5046138Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5046372Z  Write of size 4 at 0x7b880000e8f0 by thread T1: 2022-11-23T01:08:14.5049300Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.5049572Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5049828Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5050112Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5050402Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5050670Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5050812Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5051037Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5051173Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5051179Z 2022-11-23T01:08:14.5051375Z  Previous write of size 4 at 0x7b880000e8f0 by main thread: 2022-11-23T01:08:14.5053557Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.5053830Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5054052Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5054335Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5054625Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5054816Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5055059Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5055275Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.5055487Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5056214Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5056451Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5056669Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5057058Z #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+0x6562cde) 2022-11-23T01:08:14.5057444Z #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+0x20cf997) 2022-11-23T01:08:14.5057655Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5057855Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5058759Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5058968Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5059177Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5059886Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5060156Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5060597Z #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+0xca56e8) 2022-11-23T01:08:14.5060987Z #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+0x2974180) 2022-11-23T01:08:14.5061227Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5062086Z #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+0x57a0418) 2022-11-23T01:08:14.5062344Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5062629Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5062806Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5062995Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5063250Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5063367Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5063486Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5063607Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5063745Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5064058Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5064204Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5064297Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5064304Z 2022-11-23T01:08:14.5064532Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.5064699Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5064822Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5064983Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5065193Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5065639Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5065909Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5066176Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5066442Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5067540Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5068181Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5068486Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5069544Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5069895Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5070083Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5070354Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5071482Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5071792Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5072859Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5073163Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5073434Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5074579Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5074901Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5076016Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5076321Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5076527Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5076825Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5077940Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5078249Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5079412Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5079752Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5080131Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5081840Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5082357Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5083971Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5084319Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5084649Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5084884Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5085872Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5086125Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5086375Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5086692Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5087154Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5087420Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5087825Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5088406Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5088696Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5088966Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5089900Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5090136Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5090427Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5091389Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5091737Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5092404Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5093018Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5093419Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5094707Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5095003Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5095394Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5095623Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5095915Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5096331Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5096498Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5096675Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5096867Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5097072Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5097548Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5097743Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5097889Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5097897Z 2022-11-23T01:08:14.5098254Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5098600Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5098956Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5099420Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5099664Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5100148Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5100423Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5100741Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5101389Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5101719Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5102002Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5102269Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5103029Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5103290Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5103719Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5104737Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5105109Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5106266Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5106538Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5106709Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5107563Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5107862Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5108052Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5108418Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5108604Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5108785Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5108978Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5109222Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5109798Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5109992Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5110140Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5110149Z 2022-11-23T01:08:14.5112149Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.5112223Z ================== 2022-11-23T01:08:14.5112356Z ================== 2022-11-23T01:08:14.5112528Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5112706Z  Write of size 4 at 0x7b880000e8f4 by thread T1: 2022-11-23T01:08:14.5114859Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.5115151Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5115376Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5115660Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5115950Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5116221Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5116362Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5116588Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5116726Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5116734Z 2022-11-23T01:08:14.5116924Z  Previous write of size 4 at 0x7b880000e8f4 by main thread: 2022-11-23T01:08:14.5119095Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.5119356Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5119581Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5119862Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5120181Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5120372Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5120576Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5120803Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.5121018Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5121729Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5121967Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5122187Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5122575Z #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+0x6562cde) 2022-11-23T01:08:14.5122992Z #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+0x20cf997) 2022-11-23T01:08:14.5123210Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5123409Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5124169Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5124396Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5124599Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5125305Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5125530Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5125961Z #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+0xca56e8) 2022-11-23T01:08:14.5126345Z #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+0x2974180) 2022-11-23T01:08:14.5126585Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5127469Z #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+0x57a0418) 2022-11-23T01:08:14.5127695Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5127977Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5128155Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5128329Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5128620Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5128735Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5128854Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5128973Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5129121Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5129435Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5129555Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5129647Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5129653Z 2022-11-23T01:08:14.5129875Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.5130041Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5130152Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5130312Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5130517Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5130961Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5131231Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5131494Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5131758Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5132866Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5133489Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5133821Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5134870Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5135146Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5135331Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5135603Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5136753Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5137062Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5138157Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5138445Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5138850Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5140021Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5140344Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5141968Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5142495Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5142705Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5143148Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5144919Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5145434Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5147152Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5147441Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5147819Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5149501Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5150105Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5151991Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5152429Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5152730Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5152952Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5153909Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5154211Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5154525Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5154809Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5155164Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5155515Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5156021Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5156624Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5156929Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5157271Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5158443Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5158671Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5158998Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5160150Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5160463Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5161031Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5161603Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5161952Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5163347Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5163805Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5164262Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5164560Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5164931Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5165346Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5165534Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5165732Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5165911Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5166144Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5166667Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5166869Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5166990Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5166999Z 2022-11-23T01:08:14.5167381Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5167630Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5168033Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5168518Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5168737Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5169207Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5169436Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5169749Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5170333Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5170603Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5170846Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5171045Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5171613Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5171780Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5171994Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5172712Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5172924Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5173694Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5173901Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5174045Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5174617Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5174763Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5174912Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5175168Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5175282Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5175400Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5175521Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5175670Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5175981Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5176089Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5176181Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5176188Z 2022-11-23T01:08:14.5177882Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.5177968Z ================== 2022-11-23T01:08:14.5178020Z ================== 2022-11-23T01:08:14.5178188Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5178365Z  Write of size 4 at 0x7b880000e8f8 by thread T1: 2022-11-23T01:08:14.5180635Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.5180965Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5181190Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5181470Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5181762Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5182029Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5182172Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5182381Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5182519Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5182525Z 2022-11-23T01:08:14.5182748Z  Previous write of size 4 at 0x7b880000e8f8 by main thread: 2022-11-23T01:08:14.5184903Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.5185206Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5185427Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5185711Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5186001Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5186196Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5186395Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5186623Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.5186837Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5187548Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5187786Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5188035Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5188424Z #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+0x6562cde) 2022-11-23T01:08:14.5188813Z #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+0x20cf997) 2022-11-23T01:08:14.5189028Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5189228Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5190067Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5190275Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5190482Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5191192Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5191428Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5191860Z #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+0xca56e8) 2022-11-23T01:08:14.5192280Z #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+0x2974180) 2022-11-23T01:08:14.5192521Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5193382Z #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+0x57a0418) 2022-11-23T01:08:14.5193594Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5193906Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5194083Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5194270Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5194532Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5194647Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5194766Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5194889Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5195036Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5195352Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5195458Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5195550Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5195556Z 2022-11-23T01:08:14.5195780Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.5195949Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5196075Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5196237Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5196443Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5196887Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5197198Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5197464Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5197731Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5198800Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5199465Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5199768Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5200808Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5201119Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5201307Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5201578Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5202840Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5203389Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5205012Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5205465Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5205946Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5207661Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5208179Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5209875Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5210373Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5210714Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5211143Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5213046Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5213556Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5214970Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5215470Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5215968Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5217630Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5218163Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5220014Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5220406Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5220768Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5221010Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5222028Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5222276Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5222588Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5222860Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5223222Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5223571Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5224205Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5224833Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5225154Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5225454Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5226627Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5226964Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5227289Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5228477Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5228839Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5229405Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5230085Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5230412Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5231594Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5231812Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5232095Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5232270Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5232459Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5232715Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5232830Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5232952Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5233061Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5233210Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5233557Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5233676Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5233769Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5233776Z 2022-11-23T01:08:14.5234017Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5234184Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5234406Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5234722Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5234896Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5235191Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5235348Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5235542Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5235950Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5236173Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5236347Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5236541Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5237151Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5237316Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5237541Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5238201Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5238439Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5239208Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5239388Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5239531Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5240108Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5240253Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5240404Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5240661Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5240776Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5240895Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5241013Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5241162Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5241500Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5241607Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5241699Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5241708Z 2022-11-23T01:08:14.5243388Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.5243507Z ================== 2022-11-23T01:08:14.5243560Z ================== 2022-11-23T01:08:14.5243729Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5243905Z  Write of size 4 at 0x7b880000e8fc by thread T1: 2022-11-23T01:08:14.5246050Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.5246327Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5246551Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5246835Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5247130Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5247427Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5247569Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5247784Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5247921Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5247926Z 2022-11-23T01:08:14.5248116Z  Previous write of size 4 at 0x7b880000e8fc by main thread: 2022-11-23T01:08:14.5250242Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.5250543Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5250766Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5251048Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5251340Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5251531Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5251735Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5251963Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.5252175Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5252910Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5253151Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5253368Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5253757Z #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+0x6562cde) 2022-11-23T01:08:14.5254169Z #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+0x20cf997) 2022-11-23T01:08:14.5254382Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5254583Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5255336Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5255542Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5255751Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5256473Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5256697Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5257152Z #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+0xca56e8) 2022-11-23T01:08:14.5257538Z #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+0x2974180) 2022-11-23T01:08:14.5257778Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5258754Z #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+0x57a0418) 2022-11-23T01:08:14.5259020Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5259302Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5259480Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5259669Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5259927Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5260042Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5260160Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5260281Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5260430Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5260742Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5260850Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5260943Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5260948Z 2022-11-23T01:08:14.5261175Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2022-11-23T01:08:14.5261343Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5261467Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5261628Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5261872Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5262317Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5262587Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5262853Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5263117Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5264209Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5264851Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5265154Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5266225Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5266501Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5266688Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5266960Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5268090Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5268397Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5269487Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5269895Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5270165Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5271304Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5271650Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5272748Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5273050Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5273244Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5273538Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5274660Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5274970Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5276071Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5276348Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5276614Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5277777Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5278101Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5279192Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5279516Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5279707Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5279841Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5280494Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5280647Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5280842Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5281046Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5281283Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5281487Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5281909Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5282303Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5282518Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5282715Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5283467Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5283696Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5283904Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5284616Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5284840Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5285270Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5285656Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5285894Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5286916Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5287173Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5287597Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5287877Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5288239Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5288594Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5288772Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5288951Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5289139Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5289373Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5289893Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5290112Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5290264Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5290276Z 2022-11-23T01:08:14.5290668Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5290951Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5291355Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5291948Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5292228Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5292749Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5293031Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5293327Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5294071Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5294525Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5294864Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5295202Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5296204Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5296529Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5296930Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5298182Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5298644Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5300052Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5300374Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5300625Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5301659Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5301923Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5302181Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5302720Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5302926Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5303125Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5303343Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5303615Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5304198Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5304388Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5304550Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5304562Z 2022-11-23T01:08:14.5307725Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.5307919Z ================== 2022-11-23T01:08:14.5308112Z ================== 2022-11-23T01:08:14.5308347Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5308514Z  Write of size 1 at 0x7b680007c037 by thread T2: 2022-11-23T01:08:14.5310798Z  #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+0x8718e1d) 2022-11-23T01:08:14.5311058Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5311319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5311606Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5311895Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5312165Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5312307Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5312534Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5312670Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5312723Z 2022-11-23T01:08:14.5312912Z  Previous write of size 1 at 0x7b680007c037 by main thread: 2022-11-23T01:08:14.5315081Z  #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+0x8718e1d) 2022-11-23T01:08:14.5315340Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5315559Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5315840Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5316127Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5316319Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5316548Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5316775Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.5316991Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5317771Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.5318023Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.5318222Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5318978Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5319194Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5319398Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5320172Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5320413Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5321300Z #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+0x57a0418) 2022-11-23T01:08:14.5321513Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5321701Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5321959Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5322074Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5322221Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5322343Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5322491Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5322806Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5322924Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5323017Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5323022Z 2022-11-23T01:08:14.5323235Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.5323402Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5323525Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5323690Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5323896Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5324342Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5324611Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5324875Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5325138Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5326241Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5326871Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5327206Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5328244Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5328521Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5328697Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.5329369Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.5329549Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.5329756Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.5330535Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5330775Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5331676Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5331886Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5332074Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5332333Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5332449Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5332567Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5332678Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5332826Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5333137Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5333257Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5333350Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5333355Z 2022-11-23T01:08:14.5333568Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.5333734Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5333952Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5334298Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5334474Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5334770Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5334922Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5335113Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5335525Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5335746Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5335971Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5336152Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5336718Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5336880Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5337110Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5337771Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5337982Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5338896Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5339079Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5339226Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5339799Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5339946Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5340096Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5340353Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5340504Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5340623Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5340743Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5340890Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5341204Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5341324Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5341404Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5341409Z 2022-11-23T01:08:14.5343092Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.5343165Z ================== 2022-11-23T01:08:14.5352787Z ================== 2022-11-23T01:08:14.5353154Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5353404Z  Write of size 1 at 0x7b680007f62f by main thread: 2022-11-23T01:08:14.5356800Z  #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+0x8718e1d) 2022-11-23T01:08:14.5357202Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5357565Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5357995Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5358372Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5358567Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5358771Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5358997Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.5359228Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5360040Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5360282Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5360498Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5360883Z #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+0x6562cde) 2022-11-23T01:08:14.5361307Z #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+0x20cf997) 2022-11-23T01:08:14.5361582Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5361785Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5362595Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5362837Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5363098Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5363933Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5364159Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5364654Z #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+0xca56e8) 2022-11-23T01:08:14.5365041Z #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+0x2974180) 2022-11-23T01:08:14.5365281Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5366271Z #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+0x57a0418) 2022-11-23T01:08:14.5366489Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5366853Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5367034Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5367221Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5367581Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5367699Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5367850Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5368008Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5368157Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5368470Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5368607Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5368700Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5368707Z 2022-11-23T01:08:14.5368929Z  Previous write of size 1 at 0x7b680007f62f by thread T3: 2022-11-23T01:08:14.5371360Z  #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+0x8718e1d) 2022-11-23T01:08:14.5371723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5371948Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5372233Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5372522Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5372790Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5372935Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5373247Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5373482Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5373488Z 2022-11-23T01:08:14.5373717Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2022-11-23T01:08:14.5373884Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5374006Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5374155Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5374363Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5374870Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5375251Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5375517Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5375785Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5376886Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5377514Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5377952Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5379498Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5379918Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5380204Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5380548Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5382305Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5382902Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5384020Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5384338Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5384606Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5385742Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5386078Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5387193Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5387481Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5387713Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5388012Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5389121Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5389430Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5390595Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5390888Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5391192Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5392331Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5392685Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5393770Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5394072Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5394291Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5394428Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5395077Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5395232Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5395429Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5395618Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5395883Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5396101Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5396483Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5396887Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5397103Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5397301Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5398054Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5398262Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5398470Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5399206Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5399430Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5399860Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5400246Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5400514Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5401396Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5401613Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5401895Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5402078Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5402271Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5402532Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5402635Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5402755Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5402880Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5403030Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5403381Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5403506Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5403601Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5403609Z 2022-11-23T01:08:14.5403856Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.5404034Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5404255Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5404574Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5404750Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5405044Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5405226Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5405418Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5405828Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5406051Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5406236Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5406428Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5406988Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5407152Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5407380Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5408058Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5408297Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5409066Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5409245Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5409390Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5409962Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5410138Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5410289Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5410549Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5410664Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5410788Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5410898Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5411047Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5411426Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5411609Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5411742Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5411749Z 2022-11-23T01:08:14.5414473Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.5414577Z ================== 2022-11-23T01:08:14.5414651Z ================== 2022-11-23T01:08:14.5414978Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5415255Z  Write of size 1 at 0x7b680007f630 by main thread: 2022-11-23T01:08:14.5418867Z  #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+0x8718e64) 2022-11-23T01:08:14.5419421Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5419776Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5420242Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5420745Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5421027Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5421255Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5421539Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.5421837Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5422883Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5423212Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5423436Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5423851Z #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+0x6562cde) 2022-11-23T01:08:14.5424284Z #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+0x20cf997) 2022-11-23T01:08:14.5424625Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5425034Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5426209Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5426526Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5426856Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5427647Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5427884Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5428436Z #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+0xca56e8) 2022-11-23T01:08:14.5428957Z #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+0x2974180) 2022-11-23T01:08:14.5429206Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5430291Z #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+0x57a0418) 2022-11-23T01:08:14.5430690Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5430981Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5431145Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5431415Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5431750Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5431917Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5432039Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5432161Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5432378Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5432782Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5432903Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5432995Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5433002Z 2022-11-23T01:08:14.5433220Z  Previous write of size 1 at 0x7b680007f630 by thread T3: 2022-11-23T01:08:14.5435779Z  #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+0x8718e64) 2022-11-23T01:08:14.5436051Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5436274Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5436621Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5436960Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5437270Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5437436Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5437685Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5437881Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5437889Z 2022-11-23T01:08:14.5438116Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2022-11-23T01:08:14.5438285Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5438409Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5438558Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5438763Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5439204Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5439486Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5439754Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5440018Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5441664Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5442354Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5442693Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5443725Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5444013Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5444203Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5444475Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5445609Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5445921Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5447016Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5447292Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5447561Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5448738Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5449062Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5450150Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5450478Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5450662Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5450959Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5452067Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5452374Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5453462Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5453739Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5454035Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5455159Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5455494Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5456594Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5456887Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5457079Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5457226Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5457884Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5458076Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5458262Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5458464Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5458798Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5459018Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5459405Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5459793Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5460013Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5460213Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5461023Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5461232Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5461440Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5462154Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5462417Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5462853Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5463245Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5463487Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5464360Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5464573Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5464856Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5465030Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5465219Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5465490Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5465607Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5465729Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5465849Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5465998Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5466312Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5466430Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5466522Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5466529Z 2022-11-23T01:08:14.5466763Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.5466932Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5467152Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5467502Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5467663Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5467960Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5468112Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5468302Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5468711Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5468932Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5469118Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5469311Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5469949Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5470122Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5470352Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5471048Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5471293Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5472066Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5472267Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5472411Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5472987Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5473134Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5473284Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5473540Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5473653Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5473774Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5473896Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5474034Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5474344Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5474464Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5474557Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5474563Z 2022-11-23T01:08:14.5476481Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.5476592Z ================== 2022-11-23T01:08:14.5476875Z ================== 2022-11-23T01:08:14.5477177Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5477479Z  Write of size 1 at 0x7b680007f643 by main thread: 2022-11-23T01:08:14.5480810Z  #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+0x8718ed1) 2022-11-23T01:08:14.5481332Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5481598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5481997Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5482460Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5482709Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5482990Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5483337Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.5483595Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5484672Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5485021Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5485362Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5485965Z #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+0x6562cde) 2022-11-23T01:08:14.5486649Z #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+0x20cf997) 2022-11-23T01:08:14.5486960Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5487271Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5488333Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5488682Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5489008Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5489960Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5490366Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5491005Z #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+0xca56e8) 2022-11-23T01:08:14.5491439Z #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+0x2974180) 2022-11-23T01:08:14.5491721Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5492949Z #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+0x57a0418) 2022-11-23T01:08:14.5493344Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5493852Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5494157Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5494479Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5494901Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5495067Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5495248Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5495420Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5495598Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5496069Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5496225Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5496347Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5496370Z 2022-11-23T01:08:14.5496679Z  Previous write of size 1 at 0x7b680007f643 by thread T3: 2022-11-23T01:08:14.5500383Z  #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+0x8718ed1) 2022-11-23T01:08:14.5500805Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5501138Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5501584Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5502003Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5502384Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5502570Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5502927Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5503126Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5503138Z 2022-11-23T01:08:14.5503453Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2022-11-23T01:08:14.5503710Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5503909Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5504149Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5504439Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5505032Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5505426Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5505696Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5505964Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5507044Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5507698Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5508007Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5509048Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5509351Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5509540Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5509887Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5510993Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5511349Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5512407Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5512688Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5512961Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5514128Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5514458Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5515594Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5515886Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5516078Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5516380Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5517506Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5517829Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5518889Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5519196Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5519468Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5520608Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5520930Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5522069Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5522360Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5522580Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5522726Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5523367Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5523557Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5523756Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5523959Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5524193Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5524409Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5524796Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5525184Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5525398Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5525627Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5526374Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5526597Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5526791Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5527537Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5527761Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5528187Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5528573Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5528815Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5529673Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5529916Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5530204Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5530379Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5530567Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5530821Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5530939Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5531058Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5531178Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5531326Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5531682Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5531800Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5531892Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5531899Z 2022-11-23T01:08:14.5532118Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.5532288Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5532512Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5532828Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5533001Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5533298Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5533453Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5533644Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5534055Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5534279Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5534464Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5534655Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5535239Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5535405Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5535629Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5536289Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5536528Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5537298Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5537486Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5537620Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5538206Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5538353Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5538641Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5538887Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5539002Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5539121Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5539241Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5539387Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5539760Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5539882Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5539973Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5539979Z 2022-11-23T01:08:14.5541660Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:14.5541766Z ================== 2022-11-23T01:08:14.5563479Z ================== 2022-11-23T01:08:14.5563825Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5564147Z  Write of size 1 at 0x7b680007c035 by thread T1: 2022-11-23T01:08:14.5567445Z  #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+0x871a6ad) 2022-11-23T01:08:14.5567717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5567941Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5568240Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5568528Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5568871Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5569015Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5569245Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5569381Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5569388Z 2022-11-23T01:08:14.5569579Z  Previous write of size 1 at 0x7b680007c035 by main thread: 2022-11-23T01:08:14.5571756Z  #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+0x871a6ad) 2022-11-23T01:08:14.5574016Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5574377Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5574905Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5575395Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5575747Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5576072Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5576430Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.5576770Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5578183Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.5578719Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.5579069Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5580419Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5580702Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5580913Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5581692Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5581955Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5582811Z #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+0x57a0418) 2022-11-23T01:08:14.5583059Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5583254Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5583512Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5583629Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5583749Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5583871Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5584007Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5584321Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5584439Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5584533Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5584568Z 2022-11-23T01:08:14.5584820Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.5584989Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5585113Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5585274Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5585482Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5585928Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5586202Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5586469Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5586733Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5587851Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5588490Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5588798Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5589894Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5590215Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5590394Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.5591048Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.5591228Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.5591440Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.5592240Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5592486Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5593391Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5593631Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5593820Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5594116Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5594239Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5594347Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5594469Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5594618Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5594929Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5595048Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5595142Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5595148Z 2022-11-23T01:08:14.5595366Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.5595535Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5595755Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5596079Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5596253Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5596546Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5596730Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5596911Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5597316Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5597540Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5597728Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5597919Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5598475Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5598672Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5598898Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5599570Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5599780Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5600543Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5600722Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5600864Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5601480Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5601625Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5601777Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5602029Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5602144Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5602262Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5602381Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5602516Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5602829Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5602973Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5603065Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5603071Z 2022-11-23T01:08:14.5604727Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.5604802Z ================== 2022-11-23T01:08:14.5627062Z ================== 2022-11-23T01:08:14.5627445Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5627860Z  Write of size 1 at 0x7b680008082c by main thread: 2022-11-23T01:08:14.5631859Z  #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+0x871a6f4) 2022-11-23T01:08:14.5632321Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5632684Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5633106Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5633603Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5633905Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5634264Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5634719Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.5635062Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5636243Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5636643Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5636918Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5637511Z #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+0x6562cde) 2022-11-23T01:08:14.5638120Z #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+0x20cf997) 2022-11-23T01:08:14.5638458Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5638776Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5640076Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5640415Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5640746Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5641838Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5642188Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5642908Z #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+0xca56e8) 2022-11-23T01:08:14.5643541Z #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+0x2974180) 2022-11-23T01:08:14.5643944Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5645337Z #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+0x57a0418) 2022-11-23T01:08:14.5645726Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5646198Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5646477Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5646791Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5647200Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5647394Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5647578Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5647755Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5648000Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5648478Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5648794Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5648934Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5648942Z 2022-11-23T01:08:14.5649245Z  Previous write of size 1 at 0x7b680008082c by thread T2: 2022-11-23T01:08:14.5653042Z  #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+0x871a635) 2022-11-23T01:08:14.5653469Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5653886Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5654330Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5654930Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5655432Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5655701Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5656110Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5656356Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5656364Z 2022-11-23T01:08:14.5656640Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2022-11-23T01:08:14.5656808Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5656925Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5663788Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5664047Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5664604Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5664878Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5665151Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5665420Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5666513Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5667179Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5667490Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5668527Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5668831Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5669020Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5669291Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5670471Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5670799Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5671902Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5672184Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5672485Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5673631Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5673955Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5675088Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5675381Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5675576Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5675874Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5676971Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5677318Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5678385Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5678665Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5678959Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5680100Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5680448Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5681565Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5681856Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5682049Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5682197Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5682873Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5683027Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5683221Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5683423Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5683737Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5684063Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5684572Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5685275Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5685626Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5685965Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5687285Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5687639Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5688035Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5689076Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5689472Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5690237Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5690831Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5691193Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5692500Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5692887Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5693350Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5693649Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5693985Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5694459Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5694717Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5694873Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5695035Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5695279Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5695688Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5695851Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5695982Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5695993Z 2022-11-23T01:08:14.5696362Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.5696608Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5696915Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5697409Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5697686Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5698137Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5698365Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5698726Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5699516Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5699797Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5700175Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5700519Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5701405Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5701607Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5701966Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5703005Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5703345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5704579Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5704855Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5705066Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5705893Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5706130Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5706333Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5706669Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5706886Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5707079Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5707274Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5707507Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5708072Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5708253Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5708428Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5708440Z 2022-11-23T01:08:14.5711048Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.5711126Z ================== 2022-11-23T01:08:14.5711231Z ================== 2022-11-23T01:08:14.5711444Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5711666Z  Write of size 1 at 0x7b680008082e by thread T2: 2022-11-23T01:08:14.5715325Z  #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+0x871a6f4) 2022-11-23T01:08:14.5715603Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5715830Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5716148Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5716440Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5716708Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5716852Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5717077Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5717218Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5717225Z 2022-11-23T01:08:14.5717414Z  Previous write of size 1 at 0x7b680008082e by main thread: 2022-11-23T01:08:14.5719582Z  #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+0x871a6f4) 2022-11-23T01:08:14.5719872Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5720097Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5720381Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5720667Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5720864Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5721067Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5721320Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.5721534Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5722245Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5722487Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5722706Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5723092Z #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+0x6562cde) 2022-11-23T01:08:14.5723480Z #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+0x20cf997) 2022-11-23T01:08:14.5723696Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5723898Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5724688Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5724893Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5725098Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5725812Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5726063Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5726493Z #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+0xca56e8) 2022-11-23T01:08:14.5726880Z #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+0x2974180) 2022-11-23T01:08:14.5727122Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5727994Z #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+0x57a0418) 2022-11-23T01:08:14.5728207Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5728526Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5728707Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5728897Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5729151Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5729256Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5729375Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5729496Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5729643Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5729959Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5730111Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5730203Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5730209Z 2022-11-23T01:08:14.5730435Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2022-11-23T01:08:14.5730603Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5730727Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5730875Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5731081Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5731527Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5731859Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5732123Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5732392Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5733497Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5734142Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5734450Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5735513Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5735802Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5735978Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5736251Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5737394Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5737709Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5738899Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5739222Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5739498Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5740633Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5740969Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5742108Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5742406Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5742733Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5743167Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5744912Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5745468Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5747130Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5747596Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5748040Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5749982Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5750491Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5752258Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5752814Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5753012Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5753275Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5754454Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5754729Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5755089Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5755446Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5755859Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5756276Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5757009Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5757724Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5758083Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5758451Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5759821Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5760178Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5760529Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5761870Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5762268Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5763032Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5763693Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5764186Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5765728Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5766122Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5766604Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5766925Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5767234Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5767707Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5767902Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5768091Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5768295Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5768567Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5769189Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5769385Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5769557Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5769573Z 2022-11-23T01:08:14.5769995Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.5770303Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5770688Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5771257Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5771577Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5772083Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5772393Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5772737Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5773488Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5773892Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5774241Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5774598Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5775262Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5775430Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5775661Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5776333Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5776544Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5777342Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5777523Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5777667Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5778243Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5778418Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5778670Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5778928Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5779047Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5779169Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5779289Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5779425Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5779739Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5779858Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5779952Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5779958Z 2022-11-23T01:08:14.5781635Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.5781710Z ================== 2022-11-23T01:08:14.5781857Z ================== 2022-11-23T01:08:14.5782028Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5782276Z  Write of size 1 at 0x7b680008082d by main thread: 2022-11-23T01:08:14.5784480Z  #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+0x871a6ad) 2022-11-23T01:08:14.5784782Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5785005Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5785293Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5785581Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5785777Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5785983Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5786211Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.5786429Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5787143Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5787411Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5787630Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5788017Z #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+0x6562cde) 2022-11-23T01:08:14.5788406Z #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+0x20cf997) 2022-11-23T01:08:14.5788623Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5788824Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5789694Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5789900Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5790112Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5790824Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5791051Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5791484Z #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+0xca56e8) 2022-11-23T01:08:14.5791898Z #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+0x2974180) 2022-11-23T01:08:14.5792137Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5793000Z #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+0x57a0418) 2022-11-23T01:08:14.5793253Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5793537Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5793700Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5793889Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5794144Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5794262Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5794385Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5794506Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5794655Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5794967Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5795086Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5795178Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5795184Z 2022-11-23T01:08:14.5795376Z  Previous write of size 1 at 0x7b680008082d by thread T2: 2022-11-23T01:08:14.5797566Z  #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+0x871a6ad) 2022-11-23T01:08:14.5797832Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5798053Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5798339Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5798630Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5798923Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5799063Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5799286Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5799423Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5799429Z 2022-11-23T01:08:14.5799647Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2022-11-23T01:08:14.5799814Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5799940Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5800089Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5800297Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5800740Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5801015Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5801284Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5801548Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5802844Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5803863Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5804472Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5806243Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5806750Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5807087Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5807447Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5808957Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5809507Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5811468Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5811971Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5812475Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5814513Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5815025Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5816810Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5817308Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5817569Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5818064Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5820004Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5820536Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5822530Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5823007Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5823509Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5825366Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5825898Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5827775Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5828188Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5828414Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5828569Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5829323Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5829659Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5829983Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5830299Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5830687Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5831051Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5831676Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5832091Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5832311Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5832515Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5833311Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5833516Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5833727Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5834457Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5834683Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5835143Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5835532Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5835772Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5836634Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5836847Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5837133Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5837306Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5837493Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5837775Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5837893Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5838014Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5838137Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5838286Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5838598Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5838718Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5838799Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5838806Z 2022-11-23T01:08:14.5839050Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.5839223Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5839448Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5839799Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5839977Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5840273Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5840429Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5840621Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5841029Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5841252Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5841439Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5841637Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5842191Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5842359Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5842588Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5843276Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5843490Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5844260Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5844466Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5844609Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5845187Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5845334Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5845486Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5845745Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5845859Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5845978Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5846098Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5846245Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5846561Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5846684Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5846778Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5846783Z 2022-11-23T01:08:14.5848478Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.5848557Z ================== 2022-11-23T01:08:14.5848692Z ================== 2022-11-23T01:08:14.5848863Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5849039Z  Write of size 1 at 0x7b6800080831 by thread T2: 2022-11-23T01:08:14.5851217Z  #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+0x871a6ad) 2022-11-23T01:08:14.5851536Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5851752Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5852038Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5852330Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5852600Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5852745Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5852973Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5853111Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5853117Z 2022-11-23T01:08:14.5853306Z  Previous write of size 1 at 0x7b6800080831 by main thread: 2022-11-23T01:08:14.5855508Z  #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+0x871a6ad) 2022-11-23T01:08:14.5855822Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5856041Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5856322Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5856614Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5856807Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5857008Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5857233Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.5857432Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5858156Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5858397Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5858801Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5859195Z #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+0x6562cde) 2022-11-23T01:08:14.5859588Z #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+0x20cf997) 2022-11-23T01:08:14.5859804Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5860010Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5860762Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5861006Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5861214Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5861924Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5862154Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5862602Z #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+0xca56e8) 2022-11-23T01:08:14.5862988Z #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+0x2974180) 2022-11-23T01:08:14.5863253Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5864115Z #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+0x57a0418) 2022-11-23T01:08:14.5864329Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5864653Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5864830Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5865018Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5865273Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5865393Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5865516Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5865638Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5865776Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5866092Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5866213Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5866306Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5866312Z 2022-11-23T01:08:14.5866536Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2022-11-23T01:08:14.5866704Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5866832Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5866994Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5867200Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5867649Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5867917Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5868206Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5868475Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5869601Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5870275Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5870587Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5871617Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5871933Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5872125Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.5872397Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.5873512Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.5873846Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5874961Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5875238Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5875513Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5876682Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5877007Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5878099Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5878433Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5878631Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5878930Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.5880054Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.5880367Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.5881429Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.5881730Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.5882001Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.5883127Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.5883463Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.5884584Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.5884893Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.5885076Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.5885255Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.5885911Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.5886064Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.5886260Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.5886449Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.5886685Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.5886906Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5887295Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.5887700Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.5887917Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5888103Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5888898Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5889104Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5889313Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5890199Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5890596Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5891219Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.5891822Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.5892199Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5893447Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5893824Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5894276Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.5894548Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.5894846Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.5895271Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5895455Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5895654Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5895858Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5896106Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5896635Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5896901Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5897048Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5897060Z 2022-11-23T01:08:14.5897453Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.5897737Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5898103Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5898718Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5898964Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5899312Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5899539Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5899845Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5900431Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5900781Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5901017Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5901288Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5902264Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5902489Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5902834Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5903931Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5904271Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5905582Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5905865Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5906058Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5906641Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5906788Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5906942Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5907198Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5907316Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5907435Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5907544Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5907694Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5908010Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5908181Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5908277Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5908284Z 2022-11-23T01:08:14.5910067Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.5910145Z ================== 2022-11-23T01:08:14.5910302Z ================== 2022-11-23T01:08:14.5910465Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5910642Z  Write of size 2 at 0x7b780000d45c by thread T3: 2022-11-23T01:08:14.5912816Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.5913092Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5913317Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5913601Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5913892Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5914190Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5914335Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5914558Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5914685Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5914703Z 2022-11-23T01:08:14.5914877Z  Previous write of size 2 at 0x7b780000d45c by main thread: 2022-11-23T01:08:14.5917037Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.5917325Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5917552Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5917832Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5918121Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5918314Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5918515Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5918744Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.5918956Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5919771Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.5919993Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.5920194Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5920943Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5921174Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5921379Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5922166Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5922410Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5923268Z #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+0x57a0418) 2022-11-23T01:08:14.5923507Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5923699Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5923953Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5924070Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5924190Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5924311Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5924460Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5924771Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5924891Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5924973Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5924979Z 2022-11-23T01:08:14.5925200Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.5925396Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.5925520Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.5925679Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.5925884Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.5926333Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.5926601Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.5926867Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.5927131Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.5928247Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.5928870Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.5929179Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.5930217Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.5930515Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.5930693Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.5931343Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.5931525Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.5931731Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.5932539Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.5932784Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.5933661Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.5934029Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.5934290Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cebcc) 2022-11-23T01:08:14.5934547Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5934669Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5934778Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5934899Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5935118Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5935716Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5935908Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5936002Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5936008Z 2022-11-23T01:08:14.5936231Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.5936397Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.5936620Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.5936939Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.5937114Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.5937410Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.5937564Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.5937783Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.5938223Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.5938446Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.5938718Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.5938913Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.5939484Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.5939706Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.5939932Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.5940602Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.5940816Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.5941586Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.5941767Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.5941911Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.5942541Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.5942687Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.5942841Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.5943094Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.5943208Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.5943329Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.5943456Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.5943606Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.5943920Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.5944027Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.5944147Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.5944153Z 2022-11-23T01:08:14.5945828Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.5945912Z ================== 2022-11-23T01:08:14.5977498Z ================== 2022-11-23T01:08:14.5978069Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.5978375Z  Write of size 2 at 0x7b7800010458 by thread T1: 2022-11-23T01:08:14.5982013Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.5982535Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5982946Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5983468Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5984044Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5984409Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.5984710Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.5984991Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.5985166Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.5985175Z 2022-11-23T01:08:14.5985451Z  Previous write of size 2 at 0x7b7800010458 by main thread: 2022-11-23T01:08:14.5988287Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.5988659Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.5988891Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.5989285Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.5989811Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.5990120Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.5990425Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.5990771Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.5991093Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.5992058Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.5992424Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.5992745Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.5993302Z #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+0x6562cde) 2022-11-23T01:08:14.5993839Z #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+0x20cf997) 2022-11-23T01:08:14.5994142Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.5994433Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.5995416Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.5995754Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.5996128Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.5996958Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.5997224Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.5997824Z #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+0xca56e8) 2022-11-23T01:08:14.5998345Z #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+0x2974180) 2022-11-23T01:08:14.5998690Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.5999995Z #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+0x57a0418) 2022-11-23T01:08:14.6000644Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6001244Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6001549Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6001855Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6002337Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6002631Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6002815Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6003127Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6003454Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6004162Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6004363Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6004504Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6004514Z 2022-11-23T01:08:14.6004956Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2022-11-23T01:08:14.6005282Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6005477Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6005641Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6005838Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6006295Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6006611Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6006878Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6007146Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6008216Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6008896Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6009199Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6010237Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6010544Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6010732Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6011005Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6012120Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6012429Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6013527Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6013806Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6014079Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6015243Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6015578Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6016696Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6016987Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6017183Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6017480Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6018736Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6019104Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6020153Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6020441Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6020709Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6021875Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6022227Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6023328Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6023619Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6023811Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6023962Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6024604Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6024784Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6024984Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6025183Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6025424Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6025640Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6026030Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6026420Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6026681Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6026881Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6027633Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6027847Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6028053Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6028761Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6028986Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6029440Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6029901Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6030145Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6031005Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6031250Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6031535Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6031709Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6031898Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6032152Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6032269Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6032390Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6032512Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6032660Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6032974Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6033096Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6033189Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6033195Z 2022-11-23T01:08:14.6033412Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.6033579Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6033799Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6034146Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6034322Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6034626Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6034860Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6035169Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6035831Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6036185Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6036491Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6036870Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6037757Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6038030Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6038416Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6039574Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6039950Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6041220Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6041590Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6041840Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6042843Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6043092Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6043334Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6043730Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6043926Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6044115Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6044313Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6044555Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6045046Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6045241Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6045387Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6045398Z 2022-11-23T01:08:14.6048115Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.6048255Z ================== 2022-11-23T01:08:14.6048374Z ================== 2022-11-23T01:08:14.6048699Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6048951Z  Write of size 2 at 0x7b780001045a by thread T1: 2022-11-23T01:08:14.6051796Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.6052088Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6052348Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6052705Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6053039Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6053374Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6053576Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6053931Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6054142Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6054154Z 2022-11-23T01:08:14.6054473Z  Previous write of size 2 at 0x7b780001045a by main thread: 2022-11-23T01:08:14.6058125Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.6058771Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6059167Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6059636Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6060072Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6060379Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6060715Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6061029Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.6061450Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6062524Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6062851Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6063218Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6063818Z #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+0x6562cde) 2022-11-23T01:08:14.6064216Z #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+0x20cf997) 2022-11-23T01:08:14.6064433Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6064633Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6065427Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6065634Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6065838Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6066553Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6066806Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6067248Z #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+0xca56e8) 2022-11-23T01:08:14.6067634Z #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+0x2974180) 2022-11-23T01:08:14.6067874Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6068732Z #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+0x57a0418) 2022-11-23T01:08:14.6068945Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6069225Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6069437Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6069706Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6069966Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6070082Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6070202Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6070323Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6070525Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6070840Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6070959Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6071055Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6071128Z 2022-11-23T01:08:14.6071358Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2022-11-23T01:08:14.6071529Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6071653Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6071816Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6072023Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6072471Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6072743Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6073009Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6073272Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6074390Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6075093Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6075404Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6076443Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6076748Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6076936Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6077206Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6078340Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6078665Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6079734Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6080040Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6080314Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6081463Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6081785Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6082916Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6083211Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6083404Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6083731Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6084830Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6085151Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6086223Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6086499Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6086771Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6087909Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6088250Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6089355Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6089643Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6089835Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6089983Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6090651Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6090808Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6091007Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6091207Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6091442Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6091688Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6092074Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6092465Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6092679Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6092882Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6093632Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6093838Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6094045Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6094788Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6095015Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6095627Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6096233Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6096612Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6098090Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6098589Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6099001Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6099217Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6099512Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6099907Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6100101Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6100303Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6100478Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6100710Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6101216Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6101404Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6101663Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6101676Z 2022-11-23T01:08:14.6102095Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.6102360Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6102749Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6103258Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6103547Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6104073Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6104358Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6104802Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6105592Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6105997Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6106348Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6106668Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6107490Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6107780Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6108209Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6109217Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6109613Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6110941Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6111259Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6111495Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6112447Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6112772Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6113059Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6113485Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6113674Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6113860Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6114044Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6114260Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6114795Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6115011Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6115168Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6115182Z 2022-11-23T01:08:14.6117898Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.6118004Z ================== 2022-11-23T01:08:14.6118185Z ================== 2022-11-23T01:08:14.6118480Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6118724Z  Write of size 2 at 0x7b780001045c by thread T1: 2022-11-23T01:08:14.6122277Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.6122741Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6123111Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6123514Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6123812Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6124083Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6124227Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6124453Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6124590Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6124596Z 2022-11-23T01:08:14.6124797Z  Previous write of size 2 at 0x7b780001045c by main thread: 2022-11-23T01:08:14.6126992Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.6127254Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6127477Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6127761Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6128054Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6128275Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6128476Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6128703Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.6128918Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6129634Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6129873Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6130098Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6130485Z #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+0x6562cde) 2022-11-23T01:08:14.6130883Z #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+0x20cf997) 2022-11-23T01:08:14.6131122Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6131321Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6132074Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6132276Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6132510Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6133217Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6133438Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6133870Z #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+0xca56e8) 2022-11-23T01:08:14.6134256Z #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+0x2974180) 2022-11-23T01:08:14.6134493Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6135389Z #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+0x57a0418) 2022-11-23T01:08:14.6135602Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6135883Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6136059Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6136246Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6136502Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6136618Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6136726Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6136874Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6137021Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6137333Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6137453Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6137544Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6137550Z 2022-11-23T01:08:14.6137772Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2022-11-23T01:08:14.6137938Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6138062Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6138223Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6138419Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6138984Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6139256Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6139519Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6139788Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6140912Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6141542Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6141890Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6142920Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6143199Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6143387Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6143660Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6144807Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6145124Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6146185Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6146517Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6146787Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6147919Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6148281Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6149369Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6149744Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6149939Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6150239Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6151345Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6151658Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6152755Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6153044Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6153312Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6154460Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6154777Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6156315Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6156824Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6157141Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6157375Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6158430Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6158712Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6158999Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6159331Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6159721Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6160090Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6160605Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6161195Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6161551Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6161883Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6162953Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6163320Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6163650Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6164770Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6165122Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6165770Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6166392Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6166743Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6168213Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6168566Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6169054Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6169306Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6169539Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6169932Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6170114Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6170235Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6170356Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6170510Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6170878Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6170997Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6171090Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6171097Z 2022-11-23T01:08:14.6171338Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.6171505Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6171796Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6172118Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6172426Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6172828Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6173062Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6173354Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6173945Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6174315Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6174580Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6174901Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6175740Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6176020Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6176359Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6177399Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6177666Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6178839Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6179156Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6179383Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6180103Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6180339Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6180549Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6180814Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6180937Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6181128Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6181319Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6181549Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6182061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6182273Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6182419Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6182432Z 2022-11-23T01:08:14.6185048Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.6185180Z ================== 2022-11-23T01:08:14.6185273Z ================== 2022-11-23T01:08:14.6185578Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6185814Z  Write of size 2 at 0x7b780001045e by thread T1: 2022-11-23T01:08:14.6187983Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.6188318Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6188546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6188829Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6189119Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6189390Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6189520Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6189806Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6189945Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6189952Z 2022-11-23T01:08:14.6190145Z  Previous write of size 2 at 0x7b780001045e by main thread: 2022-11-23T01:08:14.6192322Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.6192594Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6192847Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6193124Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6193418Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6193611Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6193818Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6194049Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.6194265Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6194978Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6195218Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6195440Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6195853Z #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+0x6562cde) 2022-11-23T01:08:14.6196245Z #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+0x20cf997) 2022-11-23T01:08:14.6196459Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6196663Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6197418Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6197660Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6197870Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6198583Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6198826Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6199259Z #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+0xca56e8) 2022-11-23T01:08:14.6199646Z #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+0x2974180) 2022-11-23T01:08:14.6199885Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6200773Z #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+0x57a0418) 2022-11-23T01:08:14.6200989Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6201271Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6201480Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6201667Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6201924Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6202041Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6202163Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6202285Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6202435Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6202747Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6202856Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6202950Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6202956Z 2022-11-23T01:08:14.6203177Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2022-11-23T01:08:14.6203343Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6203470Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6203633Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6203842Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6204285Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6204558Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6204853Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6205120Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6206194Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6206861Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6207172Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6208202Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6208493Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6208681Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6208984Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6210088Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6210422Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6211506Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6211783Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6212052Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6213222Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6213542Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6214636Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6214965Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6215160Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6215500Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6216628Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6216950Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6217998Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6218310Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6218691Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6219825Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6220144Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6221290Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6221583Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6221776Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6221926Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6222606Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6222758Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6222958Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6223160Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6223398Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6223616Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6224003Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6224387Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6224603Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6224803Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6225581Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6225788Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6225993Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6226705Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6226958Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6227404Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6227789Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6228029Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6228884Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6229096Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6229404Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6229637Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6229828Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6230083Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6230199Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6230321Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6230443Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6230581Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6230895Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6231067Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6231160Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6231166Z 2022-11-23T01:08:14.6231389Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.6231553Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6231774Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6232094Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6232268Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6232559Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6232712Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6232901Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6233305Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6233532Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6233718Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6233911Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6234465Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6234655Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6234882Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6235538Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6235748Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6236516Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6236722Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6236864Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6237440Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6237588Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6237736Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6237991Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6238106Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6238226Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6238346Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6238494Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6238810Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6238928Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6239009Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6239026Z 2022-11-23T01:08:14.6240705Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.6240779Z ================== 2022-11-23T01:08:14.6279992Z ================== 2022-11-23T01:08:14.6280342Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6280556Z  Write of size 4 at 0x7b88000118e8 by thread T3: 2022-11-23T01:08:14.6283444Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.6283896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6284278Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6284659Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6285087Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6285505Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6285718Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6286144Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6286372Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6286386Z 2022-11-23T01:08:14.6286718Z  Previous write of size 4 at 0x7b88000118e8 by main thread: 2022-11-23T01:08:14.6289500Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:14.6289885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6290167Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6290556Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6290961Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6291261Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6291552Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6291895Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6292192Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6293275Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6293563Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6293915Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6294488Z #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+0x6562cde) 2022-11-23T01:08:14.6294991Z #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+0x20cf997) 2022-11-23T01:08:14.6295370Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6295643Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6296778Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6297056Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6297326Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6298432Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6298935Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6299600Z #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+0xca56e8) 2022-11-23T01:08:14.6300225Z #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+0x2974180) 2022-11-23T01:08:14.6300566Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6301789Z #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+0x57a0418) 2022-11-23T01:08:14.6302209Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6302687Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6302968Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6303251Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6303652Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6303827Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6304006Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6304189Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6304393Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6304866Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6305019Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6305164Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6305172Z 2022-11-23T01:08:14.6305528Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6305791Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6305940Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6306168Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6306426Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6307138Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6307544Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6307937Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6308281Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6309671Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6310458Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6310937Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6312620Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6313061Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6313356Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6313763Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6315487Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6316020Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6317700Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6318138Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6318594Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6320320Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6320750Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6322437Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6322909Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6323214Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6323678Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6325434Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6325921Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6327264Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6327745Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6328157Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6329926Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6330476Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6332204Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6332719Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6333016Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6333221Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6334236Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6334497Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6334787Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6335104Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6335471Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6335808Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6336431Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6337078Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6337428Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6337732Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6339008Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6339414Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6339740Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6340821Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6341168Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6341843Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6342291Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6342535Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6343613Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6343892Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6344292Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6344560Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6344790Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6345198Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6345448Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6345634Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6345807Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6346034Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6346470Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6346660Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6346806Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6346821Z 2022-11-23T01:08:14.6347156Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6347414Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6347748Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6348182Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6348463Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6348940Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6349178Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6349497Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6350167Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6350409Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6350666Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6351037Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6351911Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6352156Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6352510Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6353528Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6353868Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6354931Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6355158Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6355307Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6356068Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6356222Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6356378Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6356750Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6356881Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6357018Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6357205Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6357446Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6357906Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6358092Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6358227Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6358236Z 2022-11-23T01:08:14.6360734Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6360895Z ================== 2022-11-23T01:08:14.6361023Z ================== 2022-11-23T01:08:14.6361243Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6361531Z  Write of size 4 at 0x7b88000118ec by thread T3: 2022-11-23T01:08:14.6364750Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.6365182Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6365502Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6365830Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6366336Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6366681Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6366831Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6367105Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6367287Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6367296Z 2022-11-23T01:08:14.6367605Z  Previous write of size 4 at 0x7b88000118ec by main thread: 2022-11-23T01:08:14.6370820Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:14.6371275Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6371598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6372018Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6372462Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6372725Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6372987Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6373329Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6373698Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6374718Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6375007Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6375281Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6375685Z #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+0x6562cde) 2022-11-23T01:08:14.6376117Z #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+0x20cf997) 2022-11-23T01:08:14.6376334Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6376617Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6377736Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6378047Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6378386Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6379711Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6380069Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6380755Z #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+0xca56e8) 2022-11-23T01:08:14.6381360Z #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+0x2974180) 2022-11-23T01:08:14.6381723Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6383134Z #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+0x57a0418) 2022-11-23T01:08:14.6383472Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6383923Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6384202Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6384507Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6384904Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6385093Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6385272Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6385471Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6385705Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6386207Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6386384Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6386481Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6386488Z 2022-11-23T01:08:14.6386745Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6387026Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6387227Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6387486Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6387787Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6388498Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6388908Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6389321Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6389852Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6391523Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6392525Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6393004Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6394358Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6394801Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6395093Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6395568Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6397331Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6397820Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6399534Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6399988Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6400414Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6402148Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6402746Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6404428Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6404890Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6405192Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6405718Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6407461Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6407987Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6409163Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6409546Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6409934Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6411550Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6412001Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6413882Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6414456Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6414814Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6415070Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6416128Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6416355Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6416663Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6416969Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6417309Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6417652Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6418328Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6419132Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6419425Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6419743Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6420912Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6421269Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6421571Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6422598Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6422843Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6423424Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6423874Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6424172Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6425046Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6425260Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6425546Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6425754Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6425945Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6426202Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6426319Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6426429Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6426551Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6426698Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6427014Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6427134Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6427228Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6427234Z 2022-11-23T01:08:14.6427479Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6427648Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6427872Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6428190Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6428366Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6428660Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6428814Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6428993Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6429462Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6429849Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6430116Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6430407Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6431323Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6431621Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6431894Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6432737Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6433010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6434134Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6434433Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6434669Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6435556Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6435822Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6436078Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6436429Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6436550Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6436712Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6436885Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6437070Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6437470Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6437627Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6437765Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6437813Z 2022-11-23T01:08:14.6440080Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6440206Z ================== 2022-11-23T01:08:14.6440280Z ================== 2022-11-23T01:08:14.6440521Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6440761Z  Write of size 4 at 0x7b88000118f0 by thread T3: 2022-11-23T01:08:14.6443616Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.6444111Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6444425Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6444949Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6445398Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6445812Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6446042Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6446441Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6446650Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6446660Z 2022-11-23T01:08:14.6446973Z  Previous write of size 4 at 0x7b88000118f0 by main thread: 2022-11-23T01:08:14.6450375Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.6450783Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6451139Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6451590Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6452034Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6452396Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6452607Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6452874Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6453190Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6454302Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6454705Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6455054Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6455660Z #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+0x6562cde) 2022-11-23T01:08:14.6456273Z #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+0x20cf997) 2022-11-23T01:08:14.6456595Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6456889Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6458078Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6458400Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6458901Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6459724Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6460065Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6460713Z #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+0xca56e8) 2022-11-23T01:08:14.6461373Z #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+0x2974180) 2022-11-23T01:08:14.6461738Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6463083Z #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+0x57a0418) 2022-11-23T01:08:14.6463419Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6463845Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6464131Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6464414Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6464810Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6464981Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6465173Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6465365Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6465636Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6466129Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6466308Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6466444Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6466455Z 2022-11-23T01:08:14.6466821Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6467093Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6467296Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6467551Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6467865Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6468543Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6468991Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6469402Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6469896Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6471535Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6472540Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6473035Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6474645Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6474959Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6475149Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6475425Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6476846Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6477371Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6479131Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6479579Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6480005Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6481864Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6482390Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6484318Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6484759Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6485043Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6485519Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6487366Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6487890Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6489532Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6489937Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6490422Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6491940Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6492271Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6493405Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6493708Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6493903Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6494038Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6494692Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6494847Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6495088Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6495291Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6495519Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6495738Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6496124Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6496529Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6496776Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6496977Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6497732Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6497940Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6498149Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6498964Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6499296Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6499923Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6500445Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6500836Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6502313Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6502771Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6503185Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6503418Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6503707Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6504259Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6504475Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6504685Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6504872Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6505160Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6505696Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6505818Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6505917Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6505924Z 2022-11-23T01:08:14.6506169Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6506338Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6506558Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6506875Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6507095Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6507390Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6507545Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6507739Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6508154Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6508363Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6508549Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6508772Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6509326Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6509489Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6509795Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6510477Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6510688Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6511455Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6511634Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6511807Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6512384Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6512532Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6512684Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6512942Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6513058Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6513175Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6513323Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6513472Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6513775Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6513893Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6513988Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6513994Z 2022-11-23T01:08:14.6515657Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6515743Z ================== 2022-11-23T01:08:14.6515871Z ================== 2022-11-23T01:08:14.6516041Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6516218Z  Write of size 4 at 0x7b88000118f4 by thread T3: 2022-11-23T01:08:14.6518386Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.6518655Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6518878Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6519163Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6519478Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6519747Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6519888Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6520114Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6520250Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6520256Z 2022-11-23T01:08:14.6520445Z  Previous write of size 4 at 0x7b88000118f4 by main thread: 2022-11-23T01:08:14.6522581Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.6522842Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6523090Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6523373Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6523667Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6523858Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6524058Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6524288Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6524501Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6525250Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6525485Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6525706Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6526091Z #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+0x6562cde) 2022-11-23T01:08:14.6526473Z #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+0x20cf997) 2022-11-23T01:08:14.6526685Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6526886Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6527674Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6527882Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6528089Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6528795Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6529048Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6529475Z #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+0xca56e8) 2022-11-23T01:08:14.6529858Z #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+0x2974180) 2022-11-23T01:08:14.6530099Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6530975Z #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+0x57a0418) 2022-11-23T01:08:14.6531186Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6531465Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6531640Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6531864Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6532119Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6532223Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6532342Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6532463Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6532610Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6532925Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6533047Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6533166Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6533174Z 2022-11-23T01:08:14.6533499Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6533795Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6533952Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6534196Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6534424Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6535067Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6535409Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6535839Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6536299Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6538337Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6539610Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6540105Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6541657Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6542182Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6542508Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6542964Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6544607Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6545090Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6546655Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6547101Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6547526Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6549148Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6549654Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6551188Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6551676Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6551910Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6552325Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6554065Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6554546Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6556025Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6556467Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6556825Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6558423Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6559007Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6560721Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6561151Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6561421Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6561612Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6562595Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6562819Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6563133Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6563457Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6563747Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6564061Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6564498Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6564884Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6565099Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6565304Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6566057Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6566262Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6566471Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6567212Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6567438Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6567865Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6568248Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6568523Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6569393Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6569606Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6569885Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6570059Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6570245Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6570500Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6570614Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6570724Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6570843Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6570991Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6571306Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6571424Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6571515Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6571522Z 2022-11-23T01:08:14.6571803Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6571975Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6572194Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6572510Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6572682Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6572978Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6573131Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6573308Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6573753Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6573974Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6574159Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6574354Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6574911Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6575077Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6575302Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6575976Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6576184Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6576976Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6577157Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6577300Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6577881Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6578059Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6578208Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6578459Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6578701Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6578823Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6578941Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6579078Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6579387Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6579507Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6579599Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6579606Z 2022-11-23T01:08:14.6581278Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6581350Z ================== 2022-11-23T01:08:14.6581497Z ================== 2022-11-23T01:08:14.6581665Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6581839Z  Write of size 4 at 0x7b88000118f8 by thread T3: 2022-11-23T01:08:14.6584022Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.6584348Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6584569Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6584851Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6585140Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6585406Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6585550Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6585772Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6585908Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6585914Z 2022-11-23T01:08:14.6586100Z  Previous write of size 4 at 0x7b88000118f8 by main thread: 2022-11-23T01:08:14.6588243Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.6588505Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6588728Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6589009Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6589297Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6589514Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6589790Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6590019Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6590230Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6590939Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6591177Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6591397Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6591781Z #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+0x6562cde) 2022-11-23T01:08:14.6592168Z #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+0x20cf997) 2022-11-23T01:08:14.6592416Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6592616Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6593375Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6593579Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6593784Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6594522Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6594747Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6595176Z #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+0xca56e8) 2022-11-23T01:08:14.6595561Z #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+0x2974180) 2022-11-23T01:08:14.6595801Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6596742Z #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+0x57a0418) 2022-11-23T01:08:14.6597001Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6597361Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6597614Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6597891Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6598289Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6598473Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6598673Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6598869Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6599206Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6599753Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6599920Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6600066Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6600076Z 2022-11-23T01:08:14.6600442Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6600712Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6600875Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6601126Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6601457Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6602089Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6602524Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6602929Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6603350Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6605058Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6606019Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6606508Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6607981Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6608345Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6608632Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6608989Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6610680Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6611093Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6612487Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6612905Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6613337Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6615099Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6615701Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6617643Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6618139Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6618424Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6618916Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6620608Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6621042Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6622621Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6623051Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6623418Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6625229Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6625746Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6627134Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6627482Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6627682Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6627831Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6628473Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6628625Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6628850Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6629053Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6629289Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6629508Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6629977Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6630370Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6630584Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6640739Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6642120Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6642492Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6642980Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6644202Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6644600Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6645327Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6646077Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6646492Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6648026Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6648413Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6648906Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6649212Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6649516Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6649938Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6650133Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6650324Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6650579Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6650821Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6651298Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6651495Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6651629Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6651640Z 2022-11-23T01:08:14.6652035Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6652326Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6652709Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6653277Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6653646Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6654133Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6654388Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6654701Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6655414Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6655799Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6656084Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6656400Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6657371Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6657663Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6658064Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6659528Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6659899Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6661313Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6661660Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6661965Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6662966Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6663230Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6663481Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6663921Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6664127Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6664332Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6664545Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6664789Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6665337Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6665548Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6665702Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6665713Z 2022-11-23T01:08:14.6668773Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6668906Z ================== 2022-11-23T01:08:14.6669167Z ================== 2022-11-23T01:08:14.6669477Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6669872Z  Write of size 4 at 0x7b88000118fc by thread T3: 2022-11-23T01:08:14.6673765Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.6674324Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6674729Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6675248Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6675775Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6676258Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6676515Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6676921Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6677165Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6677176Z 2022-11-23T01:08:14.6677539Z  Previous write of size 4 at 0x7b88000118fc by main thread: 2022-11-23T01:08:14.6681753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.6682244Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6682678Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6683190Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6683720Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6684067Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6684432Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6684838Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.6685220Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6686572Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6687000Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6687404Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6688146Z #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+0x6562cde) 2022-11-23T01:08:14.6688863Z #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+0x20cf997) 2022-11-23T01:08:14.6689253Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6689614Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6691018Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6691431Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6691807Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6693155Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6693559Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6694368Z #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+0xca56e8) 2022-11-23T01:08:14.6695081Z #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+0x2974180) 2022-11-23T01:08:14.6695526Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6697198Z #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+0x57a0418) 2022-11-23T01:08:14.6697584Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6698105Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6698417Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6698962Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6699439Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6699643Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6699853Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6700065Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6700319Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6700918Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6701134Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6701294Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6701303Z 2022-11-23T01:08:14.6701717Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2022-11-23T01:08:14.6702023Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6702250Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6702533Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6702907Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6703733Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6704220Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6704712Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6705311Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6707312Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6708546Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6709118Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6711144Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6711667Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6712003Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6712552Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6714668Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6715274Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6717278Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6717789Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6718294Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6720462Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6721068Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6723149Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6723728Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6724078Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6724634Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6726695Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6727326Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6729345Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6729896Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6730398Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6732549Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6733138Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6735243Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6735770Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6736122Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6736387Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6737577Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6737896Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6738250Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6738727Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6739161Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6739571Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6740278Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6740999Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6741388Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6741746Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6743221Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6743601Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6743976Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6745307Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6745761Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6746569Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6747278Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6747723Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6749340Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6749773Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6750340Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6750654Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6750993Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6751475Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6751677Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6751875Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6752088Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6752351Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6752943Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6753153Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6753353Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6753363Z 2022-11-23T01:08:14.6753767Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.6754074Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6754470Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6755046Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6755367Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6755906Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6756182Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6756535Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6757311Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6757700Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6758046Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6758400Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6759436Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6759746Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6760184Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6761433Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6761811Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6763252Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6763657Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6763912Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6764986Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6765247Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6765514Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6765996Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6766200Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6766413Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6766633Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6766898Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6767468Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6767681Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6767841Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6767850Z 2022-11-23T01:08:14.6771077Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.6771213Z ================== 2022-11-23T01:08:14.6814706Z ================== 2022-11-23T01:08:14.6815077Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6815364Z  Write of size 8 at 0x7b9800011160 by thread T2: 2022-11-23T01:08:14.6818889Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.6819325Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6819554Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6819840Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6820135Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6820405Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6820566Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6820873Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6821013Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6821021Z 2022-11-23T01:08:14.6821210Z  Previous write of size 8 at 0x7b9800011160 by main thread: 2022-11-23T01:08:14.6823744Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.6824132Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6824512Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6825006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6825546Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6825836Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6826141Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6826458Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.6826734Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6827878Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6828288Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6828663Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6829339Z #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+0x6562cde) 2022-11-23T01:08:14.6830040Z #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+0x20cf997) 2022-11-23T01:08:14.6830409Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6830758Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6831924Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6832173Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6832488Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6833588Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6833911Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6834634Z #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+0xca56e8) 2022-11-23T01:08:14.6835324Z #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+0x2974180) 2022-11-23T01:08:14.6835727Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6837053Z #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+0x57a0418) 2022-11-23T01:08:14.6837409Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6837812Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6838076Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6838394Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6838785Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6838975Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6839172Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6839350Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6839580Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6840080Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6840291Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6840427Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6840435Z 2022-11-23T01:08:14.6840844Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2022-11-23T01:08:14.6841047Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6841207Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6841379Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6841587Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6842110Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6842383Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6842650Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6842917Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6843997Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6844651Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6844959Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6846035Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6846310Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6846497Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6846768Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6847883Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6848232Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6849288Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6849568Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6849838Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6851014Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6851333Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6852461Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6852751Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6852947Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6853246Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6854374Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6854694Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6855742Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6856044Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6856367Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6857489Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6857840Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6859091Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6859440Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6859633Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6859782Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6860429Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6860585Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6860784Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6860989Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6861228Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6861447Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6861836Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6862226Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6862486Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6862688Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6863440Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6863655Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6863878Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6864600Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6864826Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6865253Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6865640Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6865880Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6866767Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6866979Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6867262Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6867438Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6867628Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6867886Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6868002Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6868150Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6868268Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6868415Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6868727Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6868847Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6868939Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6868945Z 2022-11-23T01:08:14.6869160Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.6869327Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6869602Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6869932Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6870107Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6870402Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6870558Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6870748Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6871155Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6871377Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6871565Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6871758Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6872492Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6872757Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6873095Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6874251Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6874658Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6876026Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6876347Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6876586Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6877626Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6877898Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6878153Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6878612Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6878820Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6879020Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6879236Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6879531Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6880088Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6880316Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6880480Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6880492Z 2022-11-23T01:08:14.6883588Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.6883757Z ================== 2022-11-23T01:08:14.6883917Z ================== 2022-11-23T01:08:14.6884223Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6884511Z  Write of size 8 at 0x7b9800011168 by thread T2: 2022-11-23T01:08:14.6888494Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.6888954Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6889349Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6889856Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6890424Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6890904Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6891151Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6891560Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6891780Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6891787Z 2022-11-23T01:08:14.6892131Z  Previous write of size 8 at 0x7b9800011168 by main thread: 2022-11-23T01:08:14.6896136Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.6896687Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6897067Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6897584Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6898103Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6898438Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6898894Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6899318Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.6899677Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6901075Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6901493Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6901877Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6902565Z #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+0x6562cde) 2022-11-23T01:08:14.6903338Z #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+0x20cf997) 2022-11-23T01:08:14.6903729Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6904103Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6905064Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6905274Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6905485Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6906198Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6906468Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6906901Z #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+0xca56e8) 2022-11-23T01:08:14.6907283Z #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+0x2974180) 2022-11-23T01:08:14.6907526Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6908384Z #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+0x57a0418) 2022-11-23T01:08:14.6908623Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6908908Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6909082Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6909269Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6909524Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6909716Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6909838Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6909960Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6910110Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6910412Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6910531Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6910623Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6910629Z 2022-11-23T01:08:14.6910866Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2022-11-23T01:08:14.6911033Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6911198Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6911363Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6911570Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6912016Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6912284Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6912556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6912854Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6913988Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6914619Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6914928Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6916001Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6916282Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6916474Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6916775Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6917886Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6918261Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6919867Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6920271Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6920673Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6922429Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6922995Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6924526Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6924823Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6925017Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6925358Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6926473Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6926815Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6927867Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6928145Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6928416Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6929583Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6929912Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6931014Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6931334Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6931530Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6931679Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6932324Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6932478Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6932678Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6932887Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6933123Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6933343Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6933756Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6934146Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.6934380Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6934691Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6935869Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6936248Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6936578Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6937741Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6938087Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6938867Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.6939509Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.6939874Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6941163Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.6941516Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6941896Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6942245Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6942519Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6942914Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6943100Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6943287Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6943479Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6943677Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6944159Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6944356Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6944495Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6944507Z 2022-11-23T01:08:14.6944880Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.6945160Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.6945446Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.6945889Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.6946166Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.6946628Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.6946890Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.6947173Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.6947879Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.6948227Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.6948479Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.6948794Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.6949710Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.6949962Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.6950378Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.6951447Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.6951781Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.6953058Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.6953349Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.6953590Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.6954467Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.6954758Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.6955002Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.6955416Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6955596Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6955784Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6955960Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6956193Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6956657Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6956795Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6956925Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6956934Z 2022-11-23T01:08:14.6959672Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.6959843Z ================== 2022-11-23T01:08:14.6959973Z ================== 2022-11-23T01:08:14.6960258Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.6960498Z  Write of size 8 at 0x7b9800011170 by thread T2: 2022-11-23T01:08:14.6963523Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.6963856Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6964086Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6964373Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6964661Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6964932Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.6965072Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.6965297Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.6965475Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.6965482Z 2022-11-23T01:08:14.6965663Z  Previous write of size 8 at 0x7b9800011170 by main thread: 2022-11-23T01:08:14.6967825Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.6968087Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.6968313Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.6968596Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.6968884Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.6969108Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.6969314Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.6969546Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.6969760Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.6970471Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.6970763Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.6970981Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6971369Z #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+0x6562cde) 2022-11-23T01:08:14.6971757Z #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+0x20cf997) 2022-11-23T01:08:14.6971975Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.6972175Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.6972930Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.6973137Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.6973343Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.6974095Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.6974322Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.6974753Z #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+0xca56e8) 2022-11-23T01:08:14.6975166Z #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+0x2974180) 2022-11-23T01:08:14.6975408Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.6976273Z #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+0x57a0418) 2022-11-23T01:08:14.6976489Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.6976773Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.6976949Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.6977138Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.6977394Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.6977511Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.6977629Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.6977749Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.6977895Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.6978235Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.6978357Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.6978449Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.6978457Z 2022-11-23T01:08:14.6978844Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2022-11-23T01:08:14.6979017Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.6979144Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.6979304Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.6979508Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.6979953Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.6980279Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.6980545Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.6980812Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.6981890Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.6982516Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.6982865Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.6983913Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.6984213Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.6984401Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.6984675Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.6985774Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.6986095Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6987190Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6987470Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6987738Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6988912Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6989234Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6990417Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6990737Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6990932Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6991230Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.6992324Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.6992674Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.6993726Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.6994007Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.6994273Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.6995435Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.6995755Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.6996883Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.6997170Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.6997362Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.6997511Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.6998146Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.6998300Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.6998494Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.6998721Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.6998955Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.6999176Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.6999562Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.6999951Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7000191Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7000390Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7001139Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7001348Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7001556Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7002268Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7002495Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7002952Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7003348Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7003589Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7004448Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7004688Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7004970Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.7005148Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7005333Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.7005592Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7005706Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7005828Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7005937Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7006084Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7006401Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7006519Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7006611Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7006619Z 2022-11-23T01:08:14.7006838Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7007004Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7007223Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7007541Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7007740Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7008034Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7008211Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7008401Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7008805Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7009025Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7009212Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7009405Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7009988Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7010153Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7010383Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7011129Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7011397Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7012367Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7012649Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7012883Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7013896Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7014148Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7014390Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7014816Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7015010Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7015212Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7015413Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7015712Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7016245Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7016410Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7016492Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7016511Z 2022-11-23T01:08:14.7019109Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.7019230Z ================== 2022-11-23T01:08:14.7019381Z ================== 2022-11-23T01:08:14.7019669Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7019940Z  Write of size 8 at 0x7b9800011218 by thread T2: 2022-11-23T01:08:14.7023911Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.7024345Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7024724Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7025225Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7025756Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7026286Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7026537Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7026934Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7027185Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7027197Z 2022-11-23T01:08:14.7027512Z  Previous write of size 8 at 0x7b9800011218 by main thread: 2022-11-23T01:08:14.7031565Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.7032032Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7032493Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7032984Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7033512Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7033831Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7034202Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7034602Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.7034990Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7036314Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7036728Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7037134Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7037836Z #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+0x6562cde) 2022-11-23T01:08:14.7038540Z #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+0x20cf997) 2022-11-23T01:08:14.7038929Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7039298Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7040684Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7041066Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7041443Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7042750Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7043011Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7043440Z #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+0xca56e8) 2022-11-23T01:08:14.7043828Z #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+0x2974180) 2022-11-23T01:08:14.7044073Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7044944Z #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+0x57a0418) 2022-11-23T01:08:14.7045160Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7045445Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.7045621Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7045834Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.7046092Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7046252Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7046375Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7046495Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7046632Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7046946Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7047062Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7047157Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7047164Z 2022-11-23T01:08:14.7047397Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2022-11-23T01:08:14.7047563Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7047713Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7047873Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7048080Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7048525Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7048795Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7049064Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7049327Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7050397Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7051059Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7051365Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7052402Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7052717Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7052905Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7053175Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7054276Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7054612Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7055676Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7055983Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7056257Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7057402Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7057725Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7058974Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7059280Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7059474Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7059905Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7061371Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7061680Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7062748Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7063066Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7063339Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7064468Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7064844Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7065928Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7066232Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7066411Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7066558Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.7067298Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.7067469Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.7067669Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.7067977Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.7068423Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.7068751Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7069186Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.7069647Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7069867Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7070056Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7070819Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7071023Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7071231Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7071967Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7072192Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7072624Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7073008Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7073248Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7074152Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7074365Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7074648Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e5ddf) 2022-11-23T01:08:14.7074824Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7075011Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2ceee0) 2022-11-23T01:08:14.7075268Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7075372Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7075495Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7075618Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7075766Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7076085Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7076204Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7076296Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7076303Z 2022-11-23T01:08:14.7076561Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7076731Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7076951Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7077268Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7077441Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7077737Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7077881Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7078073Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7078511Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7078729Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7078914Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7079105Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7079663Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7079828Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7080055Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7080715Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7080938Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7081735Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7081915Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7082058Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7082641Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7082821Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7082971Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7083228Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7083342Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7083460Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7083567Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7083717Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7084029Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7084148Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7084242Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7084248Z 2022-11-23T01:08:14.7085920Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.7085994Z ================== 2022-11-23T01:08:14.7086214Z [ OK ] LazyOpsTest.TestMultiIndexPutMiddleNull (223 ms) 2022-11-23T01:08:14.7086407Z [ RUN ] LazyOpsTest.TestMultiIndexPutTailNull 2022-11-23T01:08:14.7093406Z ================== 2022-11-23T01:08:14.7093687Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7093947Z  Write of size 4 at 0x7b8800003f60 by thread T3: 2022-11-23T01:08:14.7097413Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.7097850Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7098204Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7098800Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7099270Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7099750Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7099966Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7100320Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7100566Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7100579Z 2022-11-23T01:08:14.7100916Z  Previous write of size 4 at 0x7b8800003f60 by main thread: 2022-11-23T01:08:14.7104633Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.7105063Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7105368Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7105775Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7106071Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7106406Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7106697Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7106962Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7107294Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7108531Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7108882Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7109198Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7110553Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7110884Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7111252Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7112552Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7112975Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7113913Z #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+0x57a0418) 2022-11-23T01:08:14.7114127Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7114351Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7114613Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7114730Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7114853Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7114976Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7115123Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7115440Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7115559Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7115639Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7115645Z 2022-11-23T01:08:14.7115888Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.7116056Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7116180Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7116379Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7116588Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7117035Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7117306Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7117575Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7117844Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7118959Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7119584Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7119889Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7120970Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7121246Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7121426Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7122071Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7122281Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7122489Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7123272Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7123517Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7124387Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7124625Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7124810Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7125067Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7125184Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7125292Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7125413Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7125560Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7125875Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7125993Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7126085Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7126116Z 2022-11-23T01:08:14.7126330Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.7126496Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7126716Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7127032Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7127208Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7127504Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7127660Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7127851Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7128258Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7128468Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7128654Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7128844Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7129401Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7129565Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7129818Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7130492Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7130702Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7131472Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7131674Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7131821Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7132399Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7132546Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7132696Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7132949Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7133066Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7133186Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7133307Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7133445Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7133756Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7133873Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7133966Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7133971Z 2022-11-23T01:08:14.7136108Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7136229Z ================== 2022-11-23T01:08:14.7136347Z ================== 2022-11-23T01:08:14.7136616Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7136899Z  Write of size 4 at 0x7b8800003f64 by thread T3: 2022-11-23T01:08:14.7140103Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.7140593Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7140907Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7141300Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7141753Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7142176Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7142407Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7142860Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7143088Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7143121Z 2022-11-23T01:08:14.7143480Z  Previous write of size 4 at 0x7b8800003f64 by main thread: 2022-11-23T01:08:14.7146949Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.7147476Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7147847Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7148329Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7148687Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7148932Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7149247Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7149666Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7150012Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7151447Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7151784Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7152113Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7153426Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7153795Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7154123Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7155147Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7155396Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7156286Z #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+0x57a0418) 2022-11-23T01:08:14.7156516Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7156706Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7157007Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7157114Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7157232Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7157355Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7157503Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7157817Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7157935Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7158028Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7158035Z 2022-11-23T01:08:14.7158280Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.7158451Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7158578Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7158728Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7158966Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7159414Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7159693Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7159959Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7160225Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7161311Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7161962Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7162282Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7163308Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7163606Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7163783Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7164433Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7165299Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7165708Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7166752Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7167717Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7168838Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7169878Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7170317Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7170783Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7171169Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7171428Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7171676Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7171969Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7172452Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7172897Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7173119Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7173253Z 2022-11-23T01:08:14.7173474Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.7173808Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7174159Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7174718Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7175215Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7175696Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7176145Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7176506Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7177121Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7177875Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7178601Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7179221Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7180351Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7181445Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7182169Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7183620Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7185303Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7186854Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7188394Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7188983Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7190123Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7191374Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7191863Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7192700Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7193389Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7193705Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7194003Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7194430Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7195191Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7195829Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7196168Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7196302Z 2022-11-23T01:08:14.7198599Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7200248Z ================== 2022-11-23T01:08:14.7200514Z ================== 2022-11-23T01:08:14.7200936Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7201428Z  Write of size 4 at 0x7b8800003f68 by thread T3: 2022-11-23T01:08:14.7205047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.7207214Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7207991Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7208756Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7209650Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7210473Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7211115Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7211709Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7212326Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7212581Z 2022-11-23T01:08:14.7212841Z  Previous write of size 4 at 0x7b8800003f68 by main thread: 2022-11-23T01:08:14.7216382Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.7219051Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7219809Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7220393Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7221068Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7221766Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7222513Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7223269Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7224038Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7225727Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7227429Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7228205Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7229761Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7231360Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7232064Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7233743Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7235428Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7237434Z #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+0x57a0418) 2022-11-23T01:08:14.7239304Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7240024Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7240820Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7241557Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7242012Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7242483Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7243022Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7243916Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7244711Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7244986Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7245119Z 2022-11-23T01:08:14.7245370Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.7245704Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7245957Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7246264Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7246656Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7247320Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7248023Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7248565Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7249085Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7250473Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7252248Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7253177Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7254513Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7255890Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7256346Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7257218Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7258012Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7258400Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7259530Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7260555Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7261670Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7262701Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7263112Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7263567Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7263931Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7264189Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7264455Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7264746Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7265218Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7265666Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7265901Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7266031Z 2022-11-23T01:08:14.7266252Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.7266576Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7266974Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7267628Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7268397Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7269129Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7269876Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7270439Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7271417Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7272258Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7272889Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7273492Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7274689Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7275779Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7276423Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7277846Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7279151Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7280529Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7281946Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7282468Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7283641Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7284752Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7285243Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7285918Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7286561Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7286844Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7287110Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7287473Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7288232Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7288890Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7289257Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7289454Z 2022-11-23T01:08:14.7292102Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7293707Z ================== 2022-11-23T01:08:14.7293968Z ================== 2022-11-23T01:08:14.7294366Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7294862Z  Write of size 4 at 0x7b8800003f6c by thread T3: 2022-11-23T01:08:14.7298716Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.7301210Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7301963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7302790Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7303689Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7304488Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7304910Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7305303Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7305675Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7305850Z 2022-11-23T01:08:14.7306115Z  Previous write of size 4 at 0x7b8800003f6c by main thread: 2022-11-23T01:08:14.7310667Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.7313556Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7314363Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7315285Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7316302Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7317206Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7317941Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7318779Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7319597Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7321416Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7323143Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7323878Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7325628Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7327304Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7328048Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7329887Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7331656Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7333644Z #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+0x57a0418) 2022-11-23T01:08:14.7335516Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7336239Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7337086Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7337777Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7338219Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7338769Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7339070Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7339561Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7339994Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7340235Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7340369Z 2022-11-23T01:08:14.7340613Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2022-11-23T01:08:14.7340956Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7341208Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7341519Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7341907Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7342636Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7343340Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7343885Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7344414Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7345772Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7347577Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7348487Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7349917Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7351314Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7351770Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7352620Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7353454Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7353841Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7354851Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7355836Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7356951Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7357988Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7358395Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7358883Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7359255Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7359513Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7359775Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7360053Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7360537Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7360978Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7361212Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7361342Z 2022-11-23T01:08:14.7361561Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.7361887Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7362250Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7362831Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7363327Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7363807Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7364249Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7364615Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7365228Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7365727Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7366142Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7366682Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7367861Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7369114Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7369840Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7371501Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7372989Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7374832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7376460Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7377032Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7378359Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7379731Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7380309Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7381062Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7381720Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7382184Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7382633Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7383145Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7384008Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7384823Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7385211Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7385439Z 2022-11-23T01:08:14.7388714Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7390606Z ================== 2022-11-23T01:08:14.7390906Z ================== 2022-11-23T01:08:14.7391353Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7392110Z  Write of size 4 at 0x7b8800014760 by thread T1: 2022-11-23T01:08:14.7396345Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.7398885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7399373Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7399890Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7400458Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7401021Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7401438Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7401832Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7402200Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7402365Z 2022-11-23T01:08:14.7402548Z  Previous write of size 4 at 0x7b8800014760 by main thread: 2022-11-23T01:08:14.7404881Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:14.7406536Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7407019Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7407530Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7408108Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7408593Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7408987Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7409424Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7409872Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7410802Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7411727Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7412190Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7412833Z #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+0x6562cde) 2022-11-23T01:08:14.7413607Z #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+0x20cf997) 2022-11-23T01:08:14.7414202Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7414632Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7415589Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7416536Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7416958Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7417891Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7418919Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7419580Z #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+0xca56e8) 2022-11-23T01:08:14.7420397Z #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+0x2974180) 2022-11-23T01:08:14.7421076Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7422184Z #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+0x57a0418) 2022-11-23T01:08:14.7423224Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7423724Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7424222Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7424579Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7425033Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7425416Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7425674Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7425926Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7426219Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7426912Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7427557Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7427910Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7428106Z 2022-11-23T01:08:14.7428493Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2022-11-23T01:08:14.7429101Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7429613Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7430131Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7430832Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7431979Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7433256Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7434307Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7435263Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7437696Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7440923Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7442545Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7444960Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7447369Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7448223Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7449060Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7451576Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7454269Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7456712Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7459259Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7459814Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7461280Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7462816Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7464238Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7465732Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7466213Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7466705Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7468148Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7469716Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7471088Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7472655Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7473192Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7474601Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7476110Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7477586Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7479047Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7479515Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7479899Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.7480711Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.7481479Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.7481847Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.7482254Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.7482690Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.7483152Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7483764Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.7484536Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7485134Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7485554Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7486546Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7487471Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7487894Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7489244Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7490949Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7492001Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7493391Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7494418Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7496313Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7498071Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7499201Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7499918Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7500295Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7500752Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7501122Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7501446Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7501706Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7502053Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7502539Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7503043Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7503274Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7503404Z 2022-11-23T01:08:14.7503665Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.7504255Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7504896Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7505896Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7506793Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7507436Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7507893Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7508279Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7509345Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7510303Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7511045Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7511747Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7513202Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7514467Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7515231Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7516895Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7518406Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7519909Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7520837Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7521168Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7521913Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7522613Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7522928Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7523354Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7523723Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7523983Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7524246Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7524525Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7525003Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7525441Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7525671Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7525835Z 2022-11-23T01:08:14.7527507Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7528538Z ================== 2022-11-23T01:08:14.7528707Z ================== 2022-11-23T01:08:14.7528962Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7529316Z  Write of size 4 at 0x7b8800014764 by thread T1: 2022-11-23T01:08:14.7531611Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.7533251Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7533734Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7534234Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7534812Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7535370Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7535816Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7536207Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7536575Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7536724Z 2022-11-23T01:08:14.7536912Z  Previous write of size 4 at 0x7b8800014764 by main thread: 2022-11-23T01:08:14.7539418Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:14.7541120Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7541609Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7542127Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7542707Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7543182Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7543591Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7544040Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7544491Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7545458Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7546373Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7546841Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7547454Z #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+0x6562cde) 2022-11-23T01:08:14.7548224Z #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+0x20cf997) 2022-11-23T01:08:14.7548849Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7549257Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7550302Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7551230Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7551653Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7552585Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7553501Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7554207Z #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+0xca56e8) 2022-11-23T01:08:14.7555006Z #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+0x2974180) 2022-11-23T01:08:14.7555633Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7556736Z #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+0x57a0418) 2022-11-23T01:08:14.7557792Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7558293Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7558751Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7559108Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7559564Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7559939Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7560194Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7560441Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7560731Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7561213Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7561653Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7561876Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7562005Z 2022-11-23T01:08:14.7562237Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2022-11-23T01:08:14.7562570Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7562823Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7563130Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7563517Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7564209Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7564908Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7565440Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7565976Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7567317Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7569096Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7569995Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7571363Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7572743Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7573211Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7573686Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7575068Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7576581Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7577954Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7579453Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7580035Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7581460Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7583014Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7584422Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7585854Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7586322Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7586829Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7588276Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7604254Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7606620Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7609158Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7610134Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7612693Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7614932Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7616352Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7617816Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7618295Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7618797Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.7619609Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.7620383Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.7620749Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.7620941Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.7621176Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.7621395Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7621781Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.7622236Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7622450Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7622641Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7623397Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7623628Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7623830Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7624533Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7624758Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7625185Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7625575Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7625818Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7626731Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7626947Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7627226Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7627400Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7627584Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7627841Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7627974Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7628094Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7628214Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7628363Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7628678Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7628800Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7628892Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7628898Z 2022-11-23T01:08:14.7629148Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.7629317Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7629538Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7629949Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7630126Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7630423Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7630568Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7630756Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7631163Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7631382Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7631605Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7631799Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7632580Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7632747Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7632975Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7633645Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7633885Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7635001Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7635343Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7635611Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7636352Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7636602Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7636849Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7637280Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7637482Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7637726Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7637911Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7638134Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7638655Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7638861Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7639034Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7639046Z 2022-11-23T01:08:14.7641946Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7642149Z ================== 2022-11-23T01:08:14.7642268Z ================== 2022-11-23T01:08:14.7642577Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7642874Z  Write of size 4 at 0x7b8800014768 by thread T1: 2022-11-23T01:08:14.7646800Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.7647279Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7647694Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7648239Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7648642Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7649109Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7649341Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7649713Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7649884Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7649891Z 2022-11-23T01:08:14.7650094Z  Previous write of size 4 at 0x7b8800014768 by main thread: 2022-11-23T01:08:14.7653424Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:14.7653767Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7653989Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7654273Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7654563Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7654754Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7654954Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7655170Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7655427Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7656153Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7656395Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7656616Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7657030Z #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+0x6562cde) 2022-11-23T01:08:14.7657414Z #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+0x20cf997) 2022-11-23T01:08:14.7657630Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7657831Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7658687Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7658891Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7659097Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7659858Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7660087Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7660525Z #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+0xca56e8) 2022-11-23T01:08:14.7660916Z #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+0x2974180) 2022-11-23T01:08:14.7661157Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7662065Z #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+0x57a0418) 2022-11-23T01:08:14.7662278Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7662556Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7662732Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7662917Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7663174Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7663290Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7663410Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7663528Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7663666Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7663980Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7664098Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7664190Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7664196Z 2022-11-23T01:08:14.7664458Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2022-11-23T01:08:14.7664631Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7664757Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7664921Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7665127Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7665569Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7665840Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7666132Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7666400Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7667465Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7668105Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7668411Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7669469Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7669834Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7670053Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7670323Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7671426Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7671740Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7672846Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7673126Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7673396Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7674527Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7674892Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7676382Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7676843Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7677144Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7677683Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7679531Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7680136Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7681840Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7682291Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7682744Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7684658Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7685076Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7686636Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7687126Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7687455Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7687645Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.7688483Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.7688734Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.7688970Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.7689259Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.7689589Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.7689924Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7690467Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.7690960Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7691179Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7691398Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7692474Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7692770Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7693109Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7694332Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7694694Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7695406Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7695858Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7696156Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7697020Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7697233Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7697541Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7697718Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7697903Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7698159Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7698278Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7698399Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7698624Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7698778Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7699092Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7699215Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7699295Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7699303Z 2022-11-23T01:08:14.7699548Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.7699719Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7699942Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7700264Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7700444Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7700740Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7700897Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7701145Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7701557Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7701777Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7701965Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7702159Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7702722Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7702922Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7703151Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7703821Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7704036Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7704809Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7704996Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7705139Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7705755Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7705902Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7706055Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7706312Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7706425Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7706545Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7706665Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7706814Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7707126Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7707244Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7707365Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7707371Z 2022-11-23T01:08:14.7709060Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7709130Z ================== 2022-11-23T01:08:14.7709193Z ================== 2022-11-23T01:08:14.7709360Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7709523Z  Write of size 4 at 0x7b880001476c by thread T1: 2022-11-23T01:08:14.7711816Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.7712082Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7712307Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7712590Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7712878Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7713150Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7713324Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7713549Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7713687Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7713693Z 2022-11-23T01:08:14.7713878Z  Previous write of size 4 at 0x7b880001476c by main thread: 2022-11-23T01:08:14.7716016Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:14.7716274Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7716499Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7716779Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7717094Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7717288Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7717491Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7717717Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:14.7717929Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7718641Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7718905Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7719123Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7719725Z #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+0x6562cde) 2022-11-23T01:08:14.7720335Z #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+0x20cf997) 2022-11-23T01:08:14.7720714Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7721100Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7722322Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7722667Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7723059Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7724258Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7724597Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7725111Z #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+0xca56e8) 2022-11-23T01:08:14.7725554Z #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+0x2974180) 2022-11-23T01:08:14.7725842Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7726793Z #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+0x57a0418) 2022-11-23T01:08:14.7727044Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7727455Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7727639Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7727941Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7728198Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7728358Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7728491Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7728654Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7728866Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7729236Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7729405Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7729514Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7729521Z 2022-11-23T01:08:14.7729830Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2022-11-23T01:08:14.7730059Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7730186Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7730347Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7730618Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7731212Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7731569Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7731939Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7732264Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7734056Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7735041Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7735417Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7737004Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7737530Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7737785Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7738058Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7739299Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7739609Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7740738Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7741035Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7741343Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7742473Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7742792Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7743930Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7744222Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7744415Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7744713Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7745825Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7746159Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7747219Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7747507Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7747801Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7748932Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7749282Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7750448Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7750743Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7750936Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7751085Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.7751729Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.7751986Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.7752279Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.7752573Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.7752932Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.7753271Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7753866Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.7754450Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.7754798Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7755091Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7756214Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7756515Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7756828Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7757898Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7758227Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7758914Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.7759506Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.7759878Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7761269Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7761692Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7762143Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7762408Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7762701Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7763085Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7763262Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7763443Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7763633Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7763853Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7764408Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7764615Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7764752Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7764774Z 2022-11-23T01:08:14.7765119Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.7765364Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7765707Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7766275Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7766555Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7767006Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7767240Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7767512Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7768158Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7768488Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7768826Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7769120Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7769987Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7770242Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7770579Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7771628Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7771973Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7773186Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7773521Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7773750Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7774644Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7774866Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7775086Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7775479Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7775704Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7775884Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7776061Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7776296Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7776785Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7776962Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7777110Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7777116Z 2022-11-23T01:08:14.7779845Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:14.7779952Z ================== 2022-11-23T01:08:14.7780056Z ================== 2022-11-23T01:08:14.7780330Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7780604Z  Write of size 1 at 0x7b680007bfd8 by thread T2: 2022-11-23T01:08:14.7784134Z  #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+0x8718da5) 2022-11-23T01:08:14.7784560Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7784896Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7785349Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7785852Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7786289Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7786519Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7786913Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7787147Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7787157Z 2022-11-23T01:08:14.7787486Z  Previous write of size 1 at 0x7b680007bfd8 by main thread: 2022-11-23T01:08:14.7791379Z  #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+0x8718e64) 2022-11-23T01:08:14.7791905Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7792290Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7792765Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7793270Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7793595Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7793940Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7794321Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.7794721Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7796070Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7796441Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7796774Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7798058Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7798404Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7798748Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7800142Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7800566Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7802066Z #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+0x57a0418) 2022-11-23T01:08:14.7802493Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7802803Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7803242Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7803435Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7803632Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7803842Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7804097Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7804651Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7804851Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7805015Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7805025Z 2022-11-23T01:08:14.7805415Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.7805701Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7805906Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7806165Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7806505Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7807307Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7807773Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7808234Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7808693Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7810528Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7811627Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7812160Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7813991Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7814470Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7814779Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7815886Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7816197Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7816571Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7817923Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7818367Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7819609Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7819831Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7820018Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7820277Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7820393Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7820595Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7820718Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7820865Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7821183Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7821303Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7821394Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7821401Z 2022-11-23T01:08:14.7821628Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7821798Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7822018Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7822334Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7822546Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7822841Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7822992Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7823183Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7823593Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7823815Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7824000Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7824190Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7824747Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7824913Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7825138Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7825824Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7826039Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7826810Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7826998Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7827159Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7827751Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7827900Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7828050Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7828295Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7828411Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7828529Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7828648Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7828796Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7829109Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7829227Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7829320Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7829326Z 2022-11-23T01:08:14.7831138Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:14.7831212Z ================== 2022-11-23T01:08:14.7831506Z ================== 2022-11-23T01:08:14.7831674Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7831850Z  Write of size 1 at 0x7b680007bfd9 by thread T2: 2022-11-23T01:08:14.7834030Z  #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+0x8718e1d) 2022-11-23T01:08:14.7834321Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7834547Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7834830Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7835119Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7835387Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7835528Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7835753Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7835888Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7835893Z 2022-11-23T01:08:14.7836080Z  Previous write of size 1 at 0x7b680007bfd9 by main thread: 2022-11-23T01:08:14.7838296Z  #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+0x8718e1d) 2022-11-23T01:08:14.7838558Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7838806Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7839085Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7839374Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7839568Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7839767Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7839996Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.7840210Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7840993Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7841223Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7841412Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7842198Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7842403Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7842610Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7843385Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7843659Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7844517Z #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+0x57a0418) 2022-11-23T01:08:14.7844742Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7844926Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7845181Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7845284Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7845404Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7845523Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7845669Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7846006Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7846127Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7846219Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7846227Z 2022-11-23T01:08:14.7846448Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.7846613Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7846737Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7846888Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7847093Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7847537Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7847832Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7848095Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7848436Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7849947Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7850830Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7851349Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7852488Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7852804Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7853058Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7853777Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7853962Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7854169Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7855308Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7855635Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7857028Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7857326Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7857565Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7857946Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7858117Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7858312Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7858666Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7858914Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7859376Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7859545Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7859673Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7859696Z 2022-11-23T01:08:14.7860067Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7860341Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7860660Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7861209Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7861493Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7861991Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7862219Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7862517Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7863191Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7863580Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7863897Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7864222Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7865250Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7865549Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7865901Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7866916Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7867328Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7868637Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7868974Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7869196Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7870284Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7870535Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7870790Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7871191Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7871363Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7871553Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7871741Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7871979Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7872556Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7872725Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7872871Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7872879Z 2022-11-23T01:08:14.7875628Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.7875795Z ================== 2022-11-23T01:08:14.7875864Z ================== 2022-11-23T01:08:14.7876044Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7876256Z  Write of size 1 at 0x7b680007bfe4 by thread T2: 2022-11-23T01:08:14.7879054Z  #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+0x8718e64) 2022-11-23T01:08:14.7879320Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7879550Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7879837Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7880186Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7880458Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7880604Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7880830Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7880968Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7880975Z 2022-11-23T01:08:14.7881169Z  Previous write of size 1 at 0x7b680007bfe4 by main thread: 2022-11-23T01:08:14.7883342Z  #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+0x8718e64) 2022-11-23T01:08:14.7883630Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7883851Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7884133Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7884426Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7884622Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7884826Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7885056Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.7885269Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7886079Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7886314Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7886505Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7887270Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7887503Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7887710Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7888492Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7888736Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7889624Z #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+0x57a0418) 2022-11-23T01:08:14.7889847Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7890035Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7890278Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7890397Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7890516Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7890637Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7890787Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7891099Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7891254Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7891346Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7891352Z 2022-11-23T01:08:14.7891580Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.7891745Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7891868Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7892016Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7892223Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7892666Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7892936Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7893204Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7893472Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7894576Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7895199Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7895515Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7896563Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7896837Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7897012Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7897659Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7897844Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7898050Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7898999Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7899246Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7900107Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7900357Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7900545Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7900804Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7900922Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7901045Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7901167Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7901319Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7901631Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7901750Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7901832Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7901838Z 2022-11-23T01:08:14.7902052Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7902216Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7902438Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7902755Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7902929Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7903251Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7903404Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7903597Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7904003Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7904221Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7904407Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7904599Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7905152Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7905344Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7905569Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7906230Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7906438Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7907203Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7907382Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7907524Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7908128Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7908277Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7908427Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7908678Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7908792Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7908911Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7909060Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7909302Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7909790Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7910032Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7910183Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7910193Z 2022-11-23T01:08:14.7912858Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.7912970Z ================== 2022-11-23T01:08:14.7913066Z ================== 2022-11-23T01:08:14.7913344Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7913600Z  Write of size 1 at 0x7b680007bfef by thread T2: 2022-11-23T01:08:14.7916949Z  #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+0x8718ed1) 2022-11-23T01:08:14.7917383Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7917760Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7918200Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7918641Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7919080Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7919306Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7919647Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7919861Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7919870Z 2022-11-23T01:08:14.7920173Z  Previous write of size 1 at 0x7b680007bfef by main thread: 2022-11-23T01:08:14.7923557Z  #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+0x8718ed1) 2022-11-23T01:08:14.7923979Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7924319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7924753Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7925206Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7925522Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7925860Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7926238Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.7926595Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7927792Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.7928261Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.7928570Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7929850Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7930199Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7930569Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7931884Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7932287Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7933734Z #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+0x57a0418) 2022-11-23T01:08:14.7934134Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7934478Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7934894Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7935097Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7935336Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7935567Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7935762Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7936237Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7936421Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7936562Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7936572Z 2022-11-23T01:08:14.7936994Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.7937286Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7937509Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7937788Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7938180Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7938795Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7939089Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7939428Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7939699Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7940773Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7941431Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7941748Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7942776Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7943050Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7943254Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.7943901Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.7944082Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.7944295Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.7945086Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.7945357Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.7946218Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.7946431Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7946617Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.7946873Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7946992Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7947111Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7947231Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7947378Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7947716Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7947836Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7947919Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7947937Z 2022-11-23T01:08:14.7948146Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.7948311Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.7948530Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.7948845Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.7949021Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.7949314Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.7949496Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.7949758Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.7950172Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.7950394Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.7950580Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.7950771Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.7951327Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.7951490Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.7951720Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.7952385Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.7952625Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.7953388Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.7953569Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.7953715Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.7954304Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.7954475Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.7954614Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.7954868Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7954983Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7955102Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7955225Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7955371Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7955682Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7955800Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7955893Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7955899Z 2022-11-23T01:08:14.7957562Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:14.7957636Z ================== 2022-11-23T01:08:14.7957700Z ================== 2022-11-23T01:08:14.7957903Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.7958083Z  Write of size 1 at 0x7b68000813dc by main thread: 2022-11-23T01:08:14.7960257Z  #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+0x8718e64) 2022-11-23T01:08:14.7960549Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7960773Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7961054Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7961344Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7961538Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.7961742Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.7961969Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.7962183Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.7962898Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.7963161Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.7963383Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.7963767Z #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+0x6562cde) 2022-11-23T01:08:14.7964154Z #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+0x20cf997) 2022-11-23T01:08:14.7964369Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.7964599Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.7965352Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.7965570Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.7965763Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.7966491Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.7966718Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.7967150Z #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+0xca56e8) 2022-11-23T01:08:14.7967561Z #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+0x2974180) 2022-11-23T01:08:14.7967804Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.7968868Z #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+0x57a0418) 2022-11-23T01:08:14.7969250Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.7969670Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.7969942Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.7970236Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.7970636Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.7970823Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.7971014Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.7971213Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.7971394Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.7971811Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.7971996Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.7972148Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.7972157Z 2022-11-23T01:08:14.7972462Z  Previous write of size 1 at 0x7b68000813dc by thread T3: 2022-11-23T01:08:14.7975629Z  #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+0x8718e64) 2022-11-23T01:08:14.7975902Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.7976130Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.7976417Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.7976740Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.7977008Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.7977152Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.7977379Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.7977521Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.7977528Z 2022-11-23T01:08:14.7977756Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2022-11-23T01:08:14.7977926Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.7978050Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.7978197Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.7978403Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.7978949Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.7979243Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.7979645Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.7979977Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.7981745Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.7982729Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.7983280Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.7984816Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.7985261Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.7985566Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.7985960Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.7987732Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.7988168Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7989940Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7990421Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7990895Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.7992890Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.7993456Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.7995261Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.7995796Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.7996121Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.7996541Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.7997957Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.7998297Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.7999414Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.7999702Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.7999996Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8001119Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8001440Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8002575Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8002867Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8003059Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8003206Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8003848Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8004028Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8004225Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8004427Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8004662Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8004879Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8005262Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8005647Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8005860Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8006060Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8006833Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8007049Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8007244Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8007968Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8008221Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8008648Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8009036Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8009275Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8010140Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8010356Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8010633Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8010806Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8010988Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8011283Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8011399Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8011522Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8011643Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8011792Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8012104Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8012222Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8012316Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8012323Z 2022-11-23T01:08:14.8012554Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8012728Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8012953Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8013300Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8013476Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8013769Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8013924Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8014115Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8014526Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8014748Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8014938Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8015130Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8015689Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8015855Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8016083Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8016766Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8016978Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8017751Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8017965Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8018096Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8018798Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8018950Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8019100Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8019345Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8019461Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8019578Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8019698Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8019849Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8020166Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8020287Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8020380Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8020386Z 2022-11-23T01:08:14.8022108Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.8022181Z ================== 2022-11-23T01:08:14.8022464Z ================== 2022-11-23T01:08:14.8022636Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8022812Z  Write of size 1 at 0x7b68000813de by thread T3: 2022-11-23T01:08:14.8024997Z  #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+0x8718e64) 2022-11-23T01:08:14.8025295Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8025517Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8025795Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8026085Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8026351Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8026494Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8026719Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8026856Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8026861Z 2022-11-23T01:08:14.8027049Z  Previous write of size 1 at 0x7b68000813de by main thread: 2022-11-23T01:08:14.8029273Z  #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+0x8718e64) 2022-11-23T01:08:14.8029621Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8029848Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8030134Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8030424Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8030619Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8030826Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8031127Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.8031450Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8032583Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8032994Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8033468Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8034157Z #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+0x6562cde) 2022-11-23T01:08:14.8034871Z #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+0x20cf997) 2022-11-23T01:08:14.8035273Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8035617Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8037030Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8037382Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8037764Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8039075Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8039485Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8040249Z #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+0xca56e8) 2022-11-23T01:08:14.8040917Z #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+0x2974180) 2022-11-23T01:08:14.8041398Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8043002Z #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+0x57a0418) 2022-11-23T01:08:14.8043397Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8043931Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8044258Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8044573Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8044961Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8045083Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8045231Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8045417Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8045653Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8046081Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8046274Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8046425Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8046433Z 2022-11-23T01:08:14.8046824Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2022-11-23T01:08:14.8047099Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8047337Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8047640Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8047946Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8048649Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8049171Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8049624Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8050018Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8051463Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8052402Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8052915Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8054345Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8054800Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8055086Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8055518Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8057173Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8057747Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8059475Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8059771Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8060048Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8061251Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8061593Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8062688Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8063015Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8063210Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8063511Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8064642Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8064950Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8066015Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8066315Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8066584Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8067717Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8068046Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8069159Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8069451Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8069740Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8069890Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8070535Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8070690Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8070891Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8071094Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8071331Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8071549Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8071937Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8072328Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8072544Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8072790Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8073551Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8073757Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8073963Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8074701Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8074926Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8075355Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8075737Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8075978Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8076837Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8077090Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8077368Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8077547Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8077719Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8077974Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8078092Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8078212Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8078335Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8078486Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8078829Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8078949Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8079043Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8079050Z 2022-11-23T01:08:14.8079292Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8079461Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8079672Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8079993Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8080172Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8080468Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8080623Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8080815Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8081225Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8081447Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8081636Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8081827Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8082411Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8082580Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8082808Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8083469Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8083704Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8084487Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8084667Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8084813Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8085387Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8085537Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8085686Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8085942Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8086059Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8086166Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8086286Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8086435Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8086747Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8086892Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8086987Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8086992Z 2022-11-23T01:08:14.8088649Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:14.8088750Z ================== 2022-11-23T01:08:14.8088815Z ================== 2022-11-23T01:08:14.8088983Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8089178Z  Write of size 1 at 0x7b68000813dd by main thread: 2022-11-23T01:08:14.8092472Z  #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+0x8718e1d) 2022-11-23T01:08:14.8092882Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8093221Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8093648Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8094093Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8094379Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8094738Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8095091Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.8095434Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8096486Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8096905Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8097247Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8097818Z #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+0x6562cde) 2022-11-23T01:08:14.8098629Z #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+0x20cf997) 2022-11-23T01:08:14.8098994Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8099298Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8100493Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8100807Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8101107Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8102253Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8102615Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8103301Z #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+0xca56e8) 2022-11-23T01:08:14.8103952Z #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+0x2974180) 2022-11-23T01:08:14.8104315Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8105656Z #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+0x57a0418) 2022-11-23T01:08:14.8105998Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8106438Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8106721Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8107014Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8107412Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8107587Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8107781Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8107952Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8108190Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8108727Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8108920Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8109045Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8109056Z 2022-11-23T01:08:14.8109378Z  Previous write of size 1 at 0x7b68000813dd by thread T3: 2022-11-23T01:08:14.8112911Z  #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+0x8718e1d) 2022-11-23T01:08:14.8113421Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8113784Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8114267Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8114768Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8115228Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8115460Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8115828Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8116070Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8116079Z 2022-11-23T01:08:14.8116459Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2022-11-23T01:08:14.8116752Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8116955Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8117225Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8117628Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8118389Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8118841Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8119284Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8119725Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8121601Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8122689Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8123206Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8125062Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8125703Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8126026Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8126485Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8128363Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8128937Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8130790Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8131296Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8131756Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8133718Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8134309Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8135485Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8135776Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8135973Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8136272Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8137405Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8137731Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8138917Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8139200Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8139471Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8140666Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8140987Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8142094Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8142413Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8142607Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8142754Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8143399Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8143554Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8143751Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8143954Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8144189Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8144408Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8144793Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8145203Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8145420Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8145618Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8146367Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8146597Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8146803Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8147513Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8147737Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8148166Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8148563Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8148802Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8149761Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8149976Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8150253Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8150428Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8150640Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8150895Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8151012Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8151134Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8151245Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8151392Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8151709Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8151827Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8151922Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8151928Z 2022-11-23T01:08:14.8152165Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8152332Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8152549Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8152867Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8153043Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8153337Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8153490Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8153681Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8154197Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8154596Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8154906Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8155258Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8156265Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8156583Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8156960Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8157860Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8158197Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8159411Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8159631Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8159830Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8160669Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8160908Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8161154Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8161589Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8161779Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8161976Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8162164Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8162399Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8162856Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8163046Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8163182Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8163191Z 2022-11-23T01:08:14.8165686Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.8165818Z ================== 2022-11-23T01:08:14.8165883Z ================== 2022-11-23T01:08:14.8166167Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8166439Z  Write of size 1 at 0x7b68000813e7 by thread T3: 2022-11-23T01:08:14.8169848Z  #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+0x8718e1d) 2022-11-23T01:08:14.8170262Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8170636Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8171220Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8171706Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8172126Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8172313Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8172683Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8172905Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8172915Z 2022-11-23T01:08:14.8173304Z  Previous write of size 1 at 0x7b68000813e7 by main thread: 2022-11-23T01:08:14.8176915Z  #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+0x8718e1d) 2022-11-23T01:08:14.8177333Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8177700Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8178160Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8178746Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8179028Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8179370Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8179843Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.8180206Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8181339Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8181727Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8182152Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8182578Z #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+0x6562cde) 2022-11-23T01:08:14.8183130Z #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+0x20cf997) 2022-11-23T01:08:14.8183479Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8183808Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8185016Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8185352Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8185698Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8186893Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8187261Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8187944Z #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+0xca56e8) 2022-11-23T01:08:14.8188569Z #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+0x2974180) 2022-11-23T01:08:14.8189012Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8190308Z #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+0x57a0418) 2022-11-23T01:08:14.8190667Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8191120Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8191401Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8191661Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8192075Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8192269Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8192466Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8192657Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8192903Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8193412Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8193650Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8193810Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8193821Z 2022-11-23T01:08:14.8194194Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2022-11-23T01:08:14.8194478Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8194672Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8194919Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8195255Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8195980Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8196419Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8196738Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8197005Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8198393Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8199337Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8199880Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8201573Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8202054Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8202347Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8202754Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8204639Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8205170Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8207075Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8207612Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8208051Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8209751Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8210407Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8212347Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8212855Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8213180Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8213753Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8215333Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8215944Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8217932Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8218219Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8218613Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8219863Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8220203Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8221292Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8221618Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8221816Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8221969Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8222611Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8222767Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8222964Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8223165Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8223427Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8223649Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8224036Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8224429Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8224644Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8224873Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8225634Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8225839Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8226047Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8226767Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8226992Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8227425Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8227837Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8228083Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8228940Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8229193Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8229472Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8229725Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8229911Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8230169Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8230289Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8230410Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8230532Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8230683Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8230998Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8231119Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8231215Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8231223Z 2022-11-23T01:08:14.8231469Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8231627Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8231854Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8232174Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8232349Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8232693Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8232849Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8233040Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8233447Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8233666Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8233853Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8234048Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8234603Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8234797Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8235024Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8235684Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8235897Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8236683Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8236864Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8237009Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8237616Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8237764Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8237914Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8238168Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8238272Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8238390Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8238511Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8238702Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8239147Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8239348Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8239482Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8239490Z 2022-11-23T01:08:14.8242221Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:14.8242339Z ================== 2022-11-23T01:08:14.8242810Z ================== 2022-11-23T01:08:14.8243116Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8243423Z  Write of size 1 at 0x7b68000813ef by thread T3: 2022-11-23T01:08:14.8246534Z  #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+0x8718ed1) 2022-11-23T01:08:14.8246808Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8247034Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8247318Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8247614Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8247997Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8248202Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8248531Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8248758Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8248767Z 2022-11-23T01:08:14.8249088Z  Previous write of size 1 at 0x7b68000813ef by main thread: 2022-11-23T01:08:14.8253215Z  #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+0x8718ed1) 2022-11-23T01:08:14.8253677Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8254081Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8254627Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8255161Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8255515Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8255886Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8256305Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:14.8256646Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8257357Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8257642Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8257862Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8258250Z #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+0x6562cde) 2022-11-23T01:08:14.8258739Z #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+0x20cf997) 2022-11-23T01:08:14.8258957Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8259201Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8260408Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8260732Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8261078Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8262269Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8262668Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8263480Z #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+0xca56e8) 2022-11-23T01:08:14.8264169Z #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+0x2974180) 2022-11-23T01:08:14.8264590Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8266137Z #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+0x57a0418) 2022-11-23T01:08:14.8266500Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8266974Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8267255Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8267545Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8268018Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8268205Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8268385Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8268589Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8268837Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8269393Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8269699Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8269867Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8269879Z 2022-11-23T01:08:14.8270298Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2022-11-23T01:08:14.8270606Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8270819Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8271074Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8271468Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8272202Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8272668Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8273100Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8273543Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8275440Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8276604Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8277127Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8278869Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8279393Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8279689Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8280116Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8281779Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8282295Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8283914Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8284325Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8284764Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8286490Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8286993Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8288693Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8289223Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8289564Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8290031Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8291755Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8292288Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8293925Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8294423Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8294853Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8296637Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8297237Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8299074Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8299526Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8299835Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8300059Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8301127Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8301371Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8301684Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8301986Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8302350Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8302696Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8303291Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8303931Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8304227Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8304529Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8305628Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8305957Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8306270Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8307359Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8307751Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8308402Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8309003Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8309359Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8310727Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8311096Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8311538Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8311811Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8312127Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8312578Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8312772Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8312983Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8313188Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8313431Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8313967Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8314162Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8314314Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8314324Z 2022-11-23T01:08:14.8314719Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8314992Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8315409Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8315965Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8316259Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8316748Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8317010Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8317334Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8318061Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8318487Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8318819Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8319145Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8320095Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8320377Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8320759Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8321922Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8322274Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8323630Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8323938Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8324176Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8325188Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8325442Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8325694Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8326181Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8326372Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8326553Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8326767Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8327019Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8327567Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8327768Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8327925Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8327939Z 2022-11-23T01:08:14.8330876Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:14.8330990Z ================== 2022-11-23T01:08:14.8331097Z ================== 2022-11-23T01:08:14.8331377Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8331689Z  Write of size 1 at 0x7b680007bfdc by main thread: 2022-11-23T01:08:14.8335537Z  #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+0x871a6f4) 2022-11-23T01:08:14.8335988Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8336405Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8336882Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8337364Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8337692Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8338040Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8338420Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8338980Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8340338Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8340728Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8341076Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8342423Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8342781Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8343132Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8344433Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8344895Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8346261Z #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+0x57a0418) 2022-11-23T01:08:14.8346563Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8346855Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8347238Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8347407Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8347581Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8347744Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8347983Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8348450Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8348699Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8348847Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8348854Z 2022-11-23T01:08:14.8349169Z  Previous write of size 1 at 0x7b680007bfdc by thread T1: 2022-11-23T01:08:14.8352673Z  #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+0x871a6f4) 2022-11-23T01:08:14.8353139Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8353491Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8353930Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8354369Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8354833Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8355066Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8355427Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8355637Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8355649Z 2022-11-23T01:08:14.8356011Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.8356274Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8356465Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8356715Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8357007Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8357745Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8358163Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8358569Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8358959Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8360624Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8361654Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8362153Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8363841Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8364253Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8364529Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8365546Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8365853Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8366182Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8367369Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8367745Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8369062Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8369386Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8369646Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8370052Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8370250Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8370438Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8370620Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8370825Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8371293Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8371481Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8371626Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8371636Z 2022-11-23T01:08:14.8371969Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.8372199Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8372550Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8373096Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8373347Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8373804Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8374038Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8374328Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8374949Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8375272Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8375546Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8375860Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8376719Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8376979Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8377338Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8378674Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8379039Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8380371Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8380732Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8380973Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8381980Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8382228Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8382482Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8382914Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8383091Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8383289Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8383489Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8383734Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8384279Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8384487Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8384641Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8384652Z 2022-11-23T01:08:14.8387632Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.8387745Z ================== 2022-11-23T01:08:14.8387854Z ================== 2022-11-23T01:08:14.8388138Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8388433Z  Write of size 1 at 0x7b680007bfde by thread T1: 2022-11-23T01:08:14.8392355Z  #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+0x871a6f4) 2022-11-23T01:08:14.8392858Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8393246Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8393730Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8394228Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8394688Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8394927Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8395317Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8395545Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8395556Z 2022-11-23T01:08:14.8395882Z  Previous write of size 1 at 0x7b680007bfde by main thread: 2022-11-23T01:08:14.8399728Z  #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+0x871a6f4) 2022-11-23T01:08:14.8400190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8400604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8401091Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8401592Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8401918Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8402259Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8402636Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8402996Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8404309Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8404695Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8405081Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8406379Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8406730Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8407075Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8408457Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8408879Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8410476Z #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+0x57a0418) 2022-11-23T01:08:14.8410855Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8411190Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8411638Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8411831Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8412045Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8412258Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8412577Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8413151Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8413365Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8413524Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8413534Z 2022-11-23T01:08:14.8413953Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.8414247Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8414468Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8414746Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8415112Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8415918Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8416459Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8416953Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8417451Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8419261Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8420413Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8420962Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8422720Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8423311Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8423630Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8424695Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8424986Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8425316Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8426646Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8427094Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8428780Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8429174Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8429516Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8430037Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8430284Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8430485Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8430679Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8430931Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8431458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8431660Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8431809Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8431820Z 2022-11-23T01:08:14.8432225Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.8432522Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8432893Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8433448Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8433752Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8434265Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8434533Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8434874Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8435611Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8435971Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8436273Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8436682Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8437580Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8437834Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8438210Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8439381Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8439823Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8441139Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8441437Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8441671Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8442655Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8442898Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8443140Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8443580Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8443773Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8443976Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8444251Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8444512Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8445073Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8445277Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8445430Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8445440Z 2022-11-23T01:08:14.8448599Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.8448780Z ================== 2022-11-23T01:08:14.8448878Z ================== 2022-11-23T01:08:14.8449167Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8449452Z  Write of size 1 at 0x7b680007bfdd by main thread: 2022-11-23T01:08:14.8453373Z  #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+0x871a6ad) 2022-11-23T01:08:14.8453846Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8454234Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8454779Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8455235Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8455557Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8455927Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8456332Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8456714Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8458120Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8458916Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8459300Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8460075Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8460384Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8460743Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8462359Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8462796Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8464034Z #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+0x57a0418) 2022-11-23T01:08:14.8464441Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8464705Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8465064Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8465236Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8465412Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8465591Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8465818Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8466296Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8466485Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8466622Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8466634Z 2022-11-23T01:08:14.8466930Z  Previous write of size 1 at 0x7b680007bfdd by thread T1: 2022-11-23T01:08:14.8470303Z  #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+0x871a6ad) 2022-11-23T01:08:14.8470703Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8471033Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8471507Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8471970Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8472386Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8472657Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8472997Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8473196Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8473207Z 2022-11-23T01:08:14.8473551Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.8473772Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8473958Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8474193Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8474493Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8475180Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8475577Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8475986Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8476382Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8478038Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8479016Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8479530Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8481108Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8481505Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8481778Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8482732Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8482982Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8483319Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8484569Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8485016Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8486470Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8486886Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8487186Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8487640Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8487839Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8488038Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8488238Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8488479Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8489046Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8489247Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8489408Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8489419Z 2022-11-23T01:08:14.8489798Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.8490082Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8490453Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8490992Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8491333Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8491837Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8492101Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8492433Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8493147Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8493522Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8493831Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8494152Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8495170Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8495447Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8495854Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8497023Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8497388Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8498910Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8499222Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8499552Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8500549Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8500802Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8501051Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8501487Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8501683Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8501884Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8502157Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8502412Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8502954Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8503165Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8503320Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8503331Z 2022-11-23T01:08:14.8506269Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.8506400Z ================== 2022-11-23T01:08:14.8506519Z ================== 2022-11-23T01:08:14.8506810Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8507121Z  Write of size 1 at 0x7b680007bfe7 by thread T1: 2022-11-23T01:08:14.8510760Z  #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+0x871a6ad) 2022-11-23T01:08:14.8511166Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8511506Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8511929Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8512396Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8512777Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8512980Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8513281Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8513472Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8513483Z 2022-11-23T01:08:14.8513767Z  Previous write of size 1 at 0x7b680007bfe7 by main thread: 2022-11-23T01:08:14.8516920Z  #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+0x871a6ad) 2022-11-23T01:08:14.8517342Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8517636Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8517922Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8518345Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8518636Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8518943Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8519294Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8520026Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8521238Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8521572Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8521880Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8523070Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8523396Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8523703Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8524846Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8525195Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8526492Z #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+0x57a0418) 2022-11-23T01:08:14.8526862Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8527140Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8527543Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8527706Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8527886Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8528086Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8528315Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8528772Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8528951Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8529097Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8529107Z 2022-11-23T01:08:14.8529435Z  Location is heap block of size 1512 at 0x7b680007bc00 allocated by main thread: 2022-11-23T01:08:14.8529701Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8529896Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8530171Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8530498Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8531177Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8531678Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8532028Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8532301Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8533608Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8534595Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8535124Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8536970Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8537525Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8537805Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8538973Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8539265Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8539595Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8540937Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8541347Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8542646Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8542989Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8543279Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8543657Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8543797Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8543978Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8544174Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8544464Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8544919Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8545114Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8545240Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8545249Z 2022-11-23T01:08:14.8545600Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.8545877Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8546212Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8546712Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8546995Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8547510Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8547727Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8548042Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8548702Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8548965Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8549189Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8549453Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8550434Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8550687Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8551062Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8552230Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8552583Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8553706Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8553963Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8554117Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8554855Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8555076Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8555312Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8555709Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8555884Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8556056Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8556415Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8556707Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8557198Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8557446Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8557588Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8557650Z 2022-11-23T01:08:14.8560352Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:14.8560505Z ================== 2022-11-23T01:08:14.8560646Z ================== 2022-11-23T01:08:14.8560908Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8561262Z  Write of size 1 at 0x7b6800081fd8 by main thread: 2022-11-23T01:08:14.8564442Z  #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+0x871a6f4) 2022-11-23T01:08:14.8564986Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8565359Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8565818Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8566301Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8566627Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8567034Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8567419Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8567794Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8568960Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8569366Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8569745Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8570353Z #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+0x6562cde) 2022-11-23T01:08:14.8570868Z #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+0x20cf997) 2022-11-23T01:08:14.8571340Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8571692Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8572829Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8584295Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8584658Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8585771Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8586135Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8586956Z #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+0xca56e8) 2022-11-23T01:08:14.8587465Z #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+0x2974180) 2022-11-23T01:08:14.8587828Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8589032Z #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+0x57a0418) 2022-11-23T01:08:14.8589438Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8589949Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8590244Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8590539Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8590962Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8591145Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8591333Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8591505Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8591747Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8592336Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8592541Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8592701Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8592711Z 2022-11-23T01:08:14.8593106Z  Previous write of size 1 at 0x7b6800081fd8 by thread T2: 2022-11-23T01:08:14.8596426Z  #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+0x871a635) 2022-11-23T01:08:14.8596871Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8597229Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8597681Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8598309Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8598804Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8599049Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8599429Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8599569Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8599575Z 2022-11-23T01:08:14.8599807Z  Location is heap block of size 1512 at 0x7b6800081c00 allocated by main thread: 2022-11-23T01:08:14.8599977Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8600101Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8600261Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8600566Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8601230Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8601646Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8602049Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8602510Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8604079Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8605086Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8605560Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8607118Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8607559Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8607838Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8608255Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8609724Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8610237Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8611868Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8612262Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8612669Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8614441Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8614948Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8616472Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8616952Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8617254Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8617701Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8619467Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8620024Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8621654Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8622146Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8622561Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8623916Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8624268Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8625875Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8626353Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8626675Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8626866Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8627926Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8628230Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8628556Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8628848Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8629157Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8629497Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8630029Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8630424Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8630647Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8630942Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8632148Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8632488Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8632797Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8633766Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8634142Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8634729Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8635347Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8635823Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8637358Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8637711Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8638145Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8638468Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8638768Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8639155Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8639332Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8639514Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8639684Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8639922Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8640442Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8640643Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8640798Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8640810Z 2022-11-23T01:08:14.8641239Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.8641635Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8641994Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8642440Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8642718Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8643179Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8643459Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8643721Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8644469Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8644870Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8645219Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8645550Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8646505Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8646675Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8646951Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8647611Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8647824Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8648596Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8648805Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8648951Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8649531Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8649679Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8649829Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8650085Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8650203Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8650327Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8650448Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8650600Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8650920Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8651041Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8651122Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8651129Z 2022-11-23T01:08:14.8652854Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.8652928Z ================== 2022-11-23T01:08:14.8652979Z ================== 2022-11-23T01:08:14.8653151Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8653331Z  Write of size 1 at 0x7b6800081fda by main thread: 2022-11-23T01:08:14.8655498Z  #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+0x871a6f4) 2022-11-23T01:08:14.8655804Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8656030Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8656315Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8656607Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8656802Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8657006Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8657235Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:14.8657464Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8658197Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8658437Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8658776Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8659159Z #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+0x6562cde) 2022-11-23T01:08:14.8659606Z #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+0x20cf997) 2022-11-23T01:08:14.8659825Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8660027Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8660779Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8660984Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8661196Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8661960Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8662188Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8662638Z #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+0xca56e8) 2022-11-23T01:08:14.8663028Z #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+0x2974180) 2022-11-23T01:08:14.8663270Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8664162Z #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+0x57a0418) 2022-11-23T01:08:14.8664374Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8664654Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8664831Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8665014Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8665274Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8665390Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8665512Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8665634Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8665769Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8666082Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8666200Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8666292Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8666298Z 2022-11-23T01:08:14.8666488Z  Previous write of size 1 at 0x7b6800081fda by thread T2: 2022-11-23T01:08:14.8668698Z  #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+0x871a6f4) 2022-11-23T01:08:14.8669001Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8669226Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8669511Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8669883Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8670155Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8670299Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8670527Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8670652Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8670658Z 2022-11-23T01:08:14.8670882Z  Location is heap block of size 1512 at 0x7b6800081c00 allocated by main thread: 2022-11-23T01:08:14.8671050Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8671176Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8671337Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8671544Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8671992Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8672298Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8672570Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8672834Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8673912Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8674566Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8674873Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8675959Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8676234Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8676423Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8676695Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8677805Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8678151Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8679228Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8679506Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8679778Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8680955Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8681276Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8682395Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8682697Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8682890Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8683192Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8684324Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8684699Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8686343Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8686821Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8687242Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8688999Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8689512Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8691255Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8691730Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8692047Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8692261Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8693287Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8693536Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8693842Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8694155Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8694522Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8694880Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8695302Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8695794Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8696166Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8696478Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8697655Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8697969Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8698343Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8699694Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8700015Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8700567Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8700963Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8701211Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8702232Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8702450Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8702824Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8703004Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8703189Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8703447Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8703565Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8703672Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8703842Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8703993Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8704309Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8704428Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8704520Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8704528Z 2022-11-23T01:08:14.8704785Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.8704956Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8705180Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8705504Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8705681Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8705977Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8706134Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8706331Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8706742Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8706950Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8707136Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8707328Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8707919Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8708101Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8708316Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8708991Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8709232Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8710087Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8710270Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8710415Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8710997Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8711147Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8711370Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8711718Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8711837Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8711958Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8712078Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8712225Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8712574Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8712698Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8712792Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8712799Z 2022-11-23T01:08:14.8714485Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:14.8714607Z ================== 2022-11-23T01:08:14.8714658Z ================== 2022-11-23T01:08:14.8714828Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8715005Z  Write of size 2 at 0x7b780000d3b0 by thread T3: 2022-11-23T01:08:14.8717892Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.8718396Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8718803Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8719307Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8719894Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8720388Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8720643Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8721065Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8721290Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8721303Z 2022-11-23T01:08:14.8721617Z  Previous write of size 2 at 0x7b780000d3b0 by main thread: 2022-11-23T01:08:14.8725687Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.8726221Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8726463Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8726747Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8727036Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8727228Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8727434Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8727663Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8727877Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8728699Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8728919Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8729119Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8729871Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8730193Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8730494Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8731544Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8731951Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8733421Z #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+0x57a0418) 2022-11-23T01:08:14.8733767Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8734033Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8734421Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8734610Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8734796Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8734943Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8735173Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8735609Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8735841Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8735951Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8735961Z 2022-11-23T01:08:14.8736336Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.8736575Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8736779Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8737009Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8737359Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8738049Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8738629Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8739080Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8739514Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8741279Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8742229Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8742636Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8744256Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8744722Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8745006Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8745768Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8745956Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8746164Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8746983Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8747230Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8748099Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8748343Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8748530Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8748793Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8748919Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8749043Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8749150Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8749299Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8749721Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8749846Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8749941Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8749948Z 2022-11-23T01:08:14.8750192Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8750361Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8750588Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8750909Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8751086Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8751425Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8751581Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8751776Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8752189Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8752411Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8752585Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8752780Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8753346Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8753542Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8753772Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8754430Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8754642Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8755411Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8755590Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8755731Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8756332Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8756481Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8756634Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8756892Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8757006Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8757127Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8757250Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8757406Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8757718Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8757852Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8757944Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8757950Z 2022-11-23T01:08:14.8759610Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.8759695Z ================== 2022-11-23T01:08:14.8760003Z ================== 2022-11-23T01:08:14.8760174Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8760351Z  Write of size 2 at 0x7b780000d3b2 by thread T3: 2022-11-23T01:08:14.8762562Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.8762841Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8763062Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8763345Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8763637Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8763933Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8764072Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8764294Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8764418Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8764424Z 2022-11-23T01:08:14.8764613Z  Previous write of size 2 at 0x7b780000d3b2 by main thread: 2022-11-23T01:08:14.8766753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.8767013Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8767235Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8767544Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8767834Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8768030Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8768234Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8768462Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8768676Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8769457Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8769705Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8769908Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8770660Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8770868Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8771076Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8771889Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8772132Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8772994Z #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+0x57a0418) 2022-11-23T01:08:14.8773233Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8773418Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8773672Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8773788Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8773907Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8774031Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8774179Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8774491Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8774598Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8774692Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8774698Z 2022-11-23T01:08:14.8774919Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.8775085Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8775210Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8775372Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8775582Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8776151Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8776520Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8776993Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8777401Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8778985Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8779850Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8780325Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8781922Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8782347Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8782563Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8783454Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8783749Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8784082Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8785333Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8785812Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8787095Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8787364Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8787632Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8787936Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8788086Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8788276Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8788450Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8788612Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8789021Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8789232Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8789354Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8789363Z 2022-11-23T01:08:14.8789729Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8789970Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8790197Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8790516Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8790758Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8791061Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8791259Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8791520Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8791933Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8792163Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8792400Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8792593Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8793223Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8793390Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8793619Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8794374Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8794591Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8795523Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8795709Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8795854Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8796483Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8796670Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8796906Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8797182Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8797299Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8797426Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8797548Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8797759Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8798081Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8798199Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8798280Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8798299Z 2022-11-23T01:08:14.8800214Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.8800291Z ================== 2022-11-23T01:08:14.8800357Z ================== 2022-11-23T01:08:14.8800529Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8800787Z  Write of size 2 at 0x7b780000d3b4 by thread T3: 2022-11-23T01:08:14.8803030Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.8803322Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8803546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8803833Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8804127Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8804399Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8804541Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8804768Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8804908Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8804915Z 2022-11-23T01:08:14.8805109Z  Previous write of size 2 at 0x7b780000d3b4 by main thread: 2022-11-23T01:08:14.8807294Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.8807559Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8807783Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8808067Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8808394Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8808588Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8808792Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8809019Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8809232Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8810016Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8810233Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8810437Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8811210Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8811428Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8811636Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8812419Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8812690Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8813550Z #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+0x57a0418) 2022-11-23T01:08:14.8813764Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8813950Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8814207Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8814325Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8814445Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8814565Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8814714Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8815029Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8815151Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8815244Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8815251Z 2022-11-23T01:08:14.8815471Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.8815625Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8815778Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8815941Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8816147Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8816593Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8816861Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8817126Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8817429Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8818603Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8819229Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8819539Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8820630Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8820913Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8821091Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8821737Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8821951Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8822161Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8822938Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8823183Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8824079Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8824291Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8824479Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8824732Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8824849Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8824968Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8825089Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8825224Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8825545Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8825664Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8825783Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8825789Z 2022-11-23T01:08:14.8826005Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8826171Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8826392Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8826708Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8826886Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8827183Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8827343Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8827538Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8827946Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8828168Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8828353Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8828534Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8829107Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8829298Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8829527Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8830268Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8830485Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8831371Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8831680Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8831902Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8832922Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8833105Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8833258Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8833608Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8833784Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8833966Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8834181Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8834419Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8834833Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8835020Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8835147Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8835156Z 2022-11-23T01:08:14.8837949Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.8838046Z ================== 2022-11-23T01:08:14.8838117Z ================== 2022-11-23T01:08:14.8838302Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8838502Z  Write of size 2 at 0x7b780000d3b6 by thread T3: 2022-11-23T01:08:14.8842277Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.8842570Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8842815Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8843248Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8843579Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8843937Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8844084Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8844381Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8844528Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8844538Z 2022-11-23T01:08:14.8844824Z  Previous write of size 2 at 0x7b780000d3b6 by main thread: 2022-11-23T01:08:14.8848058Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.8848584Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8849006Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8849416Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8849818Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8850166Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8850530Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8850947Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8851333Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8852616Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.8852993Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.8853324Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8854564Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8854924Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8855212Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8856469Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8856882Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8858396Z #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+0x57a0418) 2022-11-23T01:08:14.8858856Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8859083Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8859442Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8859598Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8859749Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8859936Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8860095Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8860575Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8860799Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8860971Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8860982Z 2022-11-23T01:08:14.8861292Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2022-11-23T01:08:14.8861462Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8861590Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8861849Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8862060Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8862502Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8862776Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8863041Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8863307Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8864392Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8865052Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8865369Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8866399Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8866704Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8866881Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.8867525Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.8867705Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.8867911Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.8868719Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.8868961Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.8869898Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8870140Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8870326Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.8870583Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8870702Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8870823Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8870944Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8871096Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8871409Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8871531Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8871611Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8871618Z 2022-11-23T01:08:14.8871836Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.8872003Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8872224Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8872541Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8872713Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8873007Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8873159Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8873347Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8873779Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8873999Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8874189Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8874380Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8874935Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8875101Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8875356Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8876015Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8876223Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8876995Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8877174Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8877316Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8877894Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8878040Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8878217Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8878472Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8878588Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8878705Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8878826Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8878975Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8879285Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8879402Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8879498Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8879503Z 2022-11-23T01:08:14.8881164Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.8881273Z ================== 2022-11-23T01:08:14.8881336Z ================== 2022-11-23T01:08:14.8881506Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8881669Z  Write of size 2 at 0x7b7800011bb0 by thread T1: 2022-11-23T01:08:14.8883810Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.8884103Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8884331Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8884613Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8884899Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8885164Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8885307Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8885531Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8885696Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8885702Z 2022-11-23T01:08:14.8885891Z  Previous write of size 2 at 0x7b7800011bb0 by main thread: 2022-11-23T01:08:14.8888024Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:14.8888284Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8888506Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8888786Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8889071Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8889262Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8889492Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8889721Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8889935Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8890646Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8890918Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8891135Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8891517Z #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+0x6562cde) 2022-11-23T01:08:14.8891908Z #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+0x20cf997) 2022-11-23T01:08:14.8892125Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8892438Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8893649Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8894026Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8894407Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8895597Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8895921Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8896572Z #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+0xca56e8) 2022-11-23T01:08:14.8897188Z #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+0x2974180) 2022-11-23T01:08:14.8897631Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8899026Z #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+0x57a0418) 2022-11-23T01:08:14.8899340Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8899792Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8899980Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8900274Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8900612Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8900769Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8900962Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8901156Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8901401Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8901927Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8902132Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8902289Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8902299Z 2022-11-23T01:08:14.8902665Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2022-11-23T01:08:14.8902916Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8903113Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8903321Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8903582Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8904304Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8904774Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8905119Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8905528Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8907210Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8908108Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8908647Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8910156Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8910657Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8910967Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8911413Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8913049Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8913539Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8915187Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8915649Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8916075Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8917964Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8918548Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8920160Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8920658Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8920935Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8921395Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8922741Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8923168Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8924242Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8924522Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8924796Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8925950Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8926288Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8927410Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8927702Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8927901Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8928053Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.8928697Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.8928852Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.8929052Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.8929281Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.8929520Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.8929745Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8930135Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.8930529Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.8930773Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8930973Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8931736Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8931945Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8932153Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8932870Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8933098Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8933553Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.8933942Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.8934185Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8935051Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.8935314Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8935591Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8935757Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8935944Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8936223Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8936384Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8936548Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8936726Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8936926Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8937394Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8937577Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8937705Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8937715Z 2022-11-23T01:08:14.8938074Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.8938316Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.8938780Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.8939285Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.8939571Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.8940174Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.8940428Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.8940765Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.8941538Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.8941895Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.8942203Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.8942533Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.8943633Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.8943933Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.8944285Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.8945331Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.8945652Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.8946941Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.8947250Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.8947500Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.8948614Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.8948868Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.8949134Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.8949630Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8949818Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8950007Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8950197Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8950442Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8951061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8951269Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8951429Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8951440Z 2022-11-23T01:08:14.8954450Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.8954573Z ================== 2022-11-23T01:08:14.8954990Z ================== 2022-11-23T01:08:14.8955286Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.8955599Z  Write of size 2 at 0x7b7800011bb4 by thread T1: 2022-11-23T01:08:14.8959408Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.8959859Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8960223Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8960676Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8961169Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8961643Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.8961875Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.8962252Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.8962477Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.8962489Z 2022-11-23T01:08:14.8962837Z  Previous write of size 2 at 0x7b7800011bb4 by main thread: 2022-11-23T01:08:14.8966754Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:14.8967218Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.8967603Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.8968166Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.8968683Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.8969035Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.8969394Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.8969782Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.8970156Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.8971517Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.8971951Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.8972307Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.8972973Z #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+0x6562cde) 2022-11-23T01:08:14.8973587Z #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+0x20cf997) 2022-11-23T01:08:14.8973961Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.8974327Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.8975787Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.8976107Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.8976446Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.8977685Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.8978156Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.8979051Z #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+0xca56e8) 2022-11-23T01:08:14.8979506Z #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+0x2974180) 2022-11-23T01:08:14.8979756Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.8980640Z #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+0x57a0418) 2022-11-23T01:08:14.8980860Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.8981140Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.8981317Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.8981503Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.8981846Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.8981969Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.8982076Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.8982199Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.8982348Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.8982664Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.8982789Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.8982884Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.8982891Z 2022-11-23T01:08:14.8983148Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2022-11-23T01:08:14.8983321Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.8983487Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.8983651Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.8983844Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.8984303Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.8984578Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.8984844Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.8985111Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.8986179Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.8986852Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.8987156Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.8988192Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.8988506Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.8988696Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.8988965Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.8990156Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.8990495Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.8991578Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.8991886Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.8992155Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.8993279Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.8993618Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.8994738Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.8995027Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.8995223Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.8995689Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.8997608Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.8998164Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9000085Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9000661Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9001151Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9003095Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9003714Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9005729Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9006229Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9006563Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9006806Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9007976Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9008251Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9008593Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9008952Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9009366Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9009759Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9010433Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9011191Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9011568Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9011884Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9012839Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9013068Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9013280Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9014040Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9014266Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9014697Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9015081Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9015320Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9016215Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9016426Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9016707Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9016882Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9017066Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9017323Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9017440Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9017562Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9017685Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9017833Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9018148Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9018266Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9018359Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9018367Z 2022-11-23T01:08:14.9018709Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9018933Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9019162Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9019484Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9019662Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9019958Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9020114Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9020309Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9020722Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9020980Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9021164Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9021358Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9021921Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9022087Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9022315Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9022974Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9023186Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9024001Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9024182Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9024326Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9024907Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9025053Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9025241Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9025481Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9025595Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9025714Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9025834Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9025982Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9026296Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9026417Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9026510Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9026516Z 2022-11-23T01:08:14.9028222Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.9028295Z ================== 2022-11-23T01:08:14.9028360Z ================== 2022-11-23T01:08:14.9028529Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9028704Z  Write of size 2 at 0x7b7800011bb6 by thread T1: 2022-11-23T01:08:14.9030946Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.9031212Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9031466Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9031752Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9032043Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9032314Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9032460Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9032686Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9032825Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9032831Z 2022-11-23T01:08:14.9033019Z  Previous write of size 2 at 0x7b7800011bb6 by main thread: 2022-11-23T01:08:14.9035167Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:14.9035427Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9035652Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9035933Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9036221Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9036414Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9036659Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9036885Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.9037099Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9037812Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9038051Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9038268Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9038656Z #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+0x6562cde) 2022-11-23T01:08:14.9039047Z #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+0x20cf997) 2022-11-23T01:08:14.9039282Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9039496Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9040261Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9040467Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9040676Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9041408Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9041634Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9042062Z #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+0xca56e8) 2022-11-23T01:08:14.9042449Z #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+0x2974180) 2022-11-23T01:08:14.9042693Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9043681Z #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+0x57a0418) 2022-11-23T01:08:14.9044066Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9044487Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9044760Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9045010Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9045341Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9045498Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9045692Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9045884Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9046100Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9046660Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9046786Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9046930Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9046939Z 2022-11-23T01:08:14.9047331Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2022-11-23T01:08:14.9047617Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9047796Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9048045Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9048357Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9048989Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9049401Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9049780Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9050191Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9051627Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9052542Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9053072Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9054726Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9055153Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9055417Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9055782Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9057349Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9057776Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9059597Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9060129Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9060576Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9062304Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9062670Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9064367Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9064876Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9065166Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9065610Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9067299Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9067777Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9069365Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9069797Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9070224Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9071930Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9072362Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9073732Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9074069Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9074268Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9074420Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9075061Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9075215Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9075412Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9075642Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9075880Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9076100Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9076491Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9076880Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9077098Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9077298Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9078047Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9078255Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9078489Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9079200Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9079427Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9079858Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9080282Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9080522Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9081379Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9081592Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9081872Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9082049Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9082232Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9082487Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9082604Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9082727Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9082835Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9083009Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9083323Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9083443Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9083542Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9083549Z 2022-11-23T01:08:14.9083797Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9083967Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9084190Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9084512Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9084686Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9085011Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9085165Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9085357Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9085771Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9085993Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9086184Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9086361Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9086936Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9087104Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9087333Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9088023Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9088231Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9088998Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9089179Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9089322Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9089925Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9090071Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9090224Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9090479Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9090596Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9090717Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9090836Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9090984Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9091294Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9091451Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9091532Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9091540Z 2022-11-23T01:08:14.9093250Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.9093325Z ================== 2022-11-23T01:08:14.9093376Z ================== 2022-11-23T01:08:14.9093544Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9093720Z  Write of size 2 at 0x7b7800011bba by thread T1: 2022-11-23T01:08:14.9095867Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.9096170Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9096394Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9096676Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9096966Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9097235Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9097377Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9097601Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9097726Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9097744Z 2022-11-23T01:08:14.9097918Z  Previous write of size 2 at 0x7b7800011bba by main thread: 2022-11-23T01:08:14.9100256Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:14.9100520Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9100744Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9101075Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9101363Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9101561Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9101768Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9101997Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:14.9102214Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9102935Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9103175Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9103394Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9103780Z #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+0x6562cde) 2022-11-23T01:08:14.9104198Z #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+0x20cf997) 2022-11-23T01:08:14.9104421Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9104624Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9105649Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9106020Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9106338Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9107344Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9107643Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9108280Z #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+0xca56e8) 2022-11-23T01:08:14.9108807Z #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+0x2974180) 2022-11-23T01:08:14.9109102Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9110248Z #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+0x57a0418) 2022-11-23T01:08:14.9110470Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9110880Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9111126Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9111315Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9111608Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9111725Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9111848Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9111972Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9112139Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9112630Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9112823Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9112975Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9112987Z 2022-11-23T01:08:14.9113311Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2022-11-23T01:08:14.9113565Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9113723Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9113973Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9114267Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9114811Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9115162Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9115542Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9116019Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9117575Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9118490Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9118933Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9120491Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9120861Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9121148Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9121563Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9123305Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9123758Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9125183Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9125505Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9125940Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9127697Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9128180Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9129891Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9130299Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9130548Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9130952Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9132413Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9132859Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9134011Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9134326Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9134597Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9135738Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9136063Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9137195Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9137487Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9137682Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9137830Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9138639Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9138855Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9139055Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9139260Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9139496Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9139718Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9140105Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9140500Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9140716Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9140921Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9141722Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9141931Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9142142Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9142872Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9143122Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9143549Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9143937Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9144178Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9145040Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9145254Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9145535Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9145713Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9145936Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9146197Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9146316Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9146439Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9146562Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9146711Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9147026Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9147136Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9147231Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9147238Z 2022-11-23T01:08:14.9147482Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9147681Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9147905Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9148225Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9148398Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9148695Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9148850Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9149045Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9149455Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9149756Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9149952Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9150145Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9150702Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9150870Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9151131Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9151795Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9152008Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9152782Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9152986Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9153129Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9153709Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9153859Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9154011Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9154269Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9154385Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9154506Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9154625Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9154773Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9155088Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9155206Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9155298Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9155304Z 2022-11-23T01:08:14.9156985Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:14.9157058Z ================== 2022-11-23T01:08:14.9157292Z ================== 2022-11-23T01:08:14.9157463Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9157625Z  Write of size 4 at 0x7b8800017760 by thread T3: 2022-11-23T01:08:14.9159783Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.9160076Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9160299Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9160582Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9160874Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9161145Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9161285Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9161512Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9161650Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9161656Z 2022-11-23T01:08:14.9161868Z  Previous write of size 4 at 0x7b8800017760 by main thread: 2022-11-23T01:08:14.9164017Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:14.9164407Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9164740Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9165136Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9165598Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9165915Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9166226Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9166597Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.9166950Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9168114Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9168549Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9168901Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9169516Z #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+0x6562cde) 2022-11-23T01:08:14.9170108Z #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+0x20cf997) 2022-11-23T01:08:14.9170439Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9170746Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9171792Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9172095Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9172434Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9173414Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9173759Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9174419Z #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+0xca56e8) 2022-11-23T01:08:14.9175047Z #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+0x2974180) 2022-11-23T01:08:14.9175426Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9176593Z #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+0x57a0418) 2022-11-23T01:08:14.9176987Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9177415Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9177690Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9177988Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9178422Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9178709Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9178869Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9179067Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9179295Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9179760Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9179927Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9180068Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9180080Z 2022-11-23T01:08:14.9180451Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2022-11-23T01:08:14.9180665Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9180839Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9181058Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9181386Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9182094Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9182587Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9183020Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9183419Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9184943Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9185889Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9186369Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9187948Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9188420Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9188719Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9189121Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9190816Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9191313Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9192850Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9193291Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9193626Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9194916Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9195244Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9196369Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9196655Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9196848Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9197144Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9198286Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9198593Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9199639Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9199947Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9200216Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9201354Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9201674Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9202797Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9203083Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9203301Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9203447Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9204089Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9204243Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9204438Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9204637Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9204875Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9205097Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9205482Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9205872Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9206085Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9206311Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9207057Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9207265Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9207470Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9208221Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9208445Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9208871Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9209253Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9209496Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9210383Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9210594Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9210872Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9211048Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9211230Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9211486Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9211604Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9211724Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9211847Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9212033Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9212348Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9212456Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9212547Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9212555Z 2022-11-23T01:08:14.9212795Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.9212964Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9213185Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9213499Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9213676Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9213974Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9214129Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9214323Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9214730Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9214952Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9215139Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9215331Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9215907Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9216072Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9216297Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9216955Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9217189Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9217958Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9218137Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9218279Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9218968Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9219116Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9219270Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9219525Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9219638Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9219759Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9219880Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9220032Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9220391Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9220512Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9220610Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9220616Z 2022-11-23T01:08:14.9222288Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.9222394Z ================== 2022-11-23T01:08:14.9222458Z ================== 2022-11-23T01:08:14.9222629Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9222794Z  Write of size 4 at 0x7b8800017764 by thread T3: 2022-11-23T01:08:14.9224963Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.9225245Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9225551Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9225932Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9226346Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9226748Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9226957Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9227296Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9227522Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9227531Z 2022-11-23T01:08:14.9227855Z  Previous write of size 4 at 0x7b8800017764 by main thread: 2022-11-23T01:08:14.9260437Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:14.9260851Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9261083Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9261368Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9261666Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9261861Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9262067Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9262298Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.9262512Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9263267Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9263515Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9263735Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9264123Z #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+0x6562cde) 2022-11-23T01:08:14.9264541Z #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+0x20cf997) 2022-11-23T01:08:14.9264758Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9264960Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9265729Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9265938Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9266149Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9266860Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9267112Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9267546Z #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+0xca56e8) 2022-11-23T01:08:14.9267937Z #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+0x2974180) 2022-11-23T01:08:14.9268179Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9269042Z #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+0x57a0418) 2022-11-23T01:08:14.9269297Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9269649Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9269831Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9270002Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9270261Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9270379Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9270504Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9270629Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9270779Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9271091Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9271213Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9271308Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9271315Z 2022-11-23T01:08:14.9271565Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2022-11-23T01:08:14.9271724Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9271851Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9272014Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9272253Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9272696Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9272970Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9273239Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9273510Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9274631Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9275259Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9275563Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9276633Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9276909Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9277096Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9277367Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9278525Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9278832Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9279901Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9280203Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9280490Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9281615Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9281962Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9283068Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9283356Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9283552Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9283849Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9284963Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9285285Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9286376Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9286653Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9286927Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9288205Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9288669Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9290377Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9290905Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9291240Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9291469Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9292619Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9292865Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9293192Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9293527Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9293915Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9294296Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9295067Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9295690Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9296031Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9296349Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9297619Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9298011Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9298379Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9299768Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9300170Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9300893Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9301568Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9301990Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9303628Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9304010Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9304512Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9304824Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9305213Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9305627Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9305807Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9306009Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9306212Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9306447Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9306959Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9307125Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9307263Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9307274Z 2022-11-23T01:08:14.9307653Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.9307936Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9308315Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9308878Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9309188Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9309806Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9310070Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9310381Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9311088Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9311535Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9311845Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9312167Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9313115Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9313406Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9313793Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9315027Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9315405Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9316787Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9317099Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9317377Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9318367Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9318624Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9318881Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9319406Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9319616Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9319826Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9320027Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9320288Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9320842Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9321041Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9321200Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9321211Z 2022-11-23T01:08:14.9324151Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.9324408Z ================== 2022-11-23T01:08:14.9324747Z ================== 2022-11-23T01:08:14.9325071Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9325367Z  Write of size 4 at 0x7b8800017768 by thread T3: 2022-11-23T01:08:14.9329221Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.9329712Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9330113Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9330409Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9330701Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9330969Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9331112Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9331342Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9331481Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9331520Z 2022-11-23T01:08:14.9331723Z  Previous write of size 4 at 0x7b8800017768 by main thread: 2022-11-23T01:08:14.9333891Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:14.9334152Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9334377Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9334660Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9334952Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9335145Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9335380Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9335609Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.9335824Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9336538Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9336778Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9337025Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9337411Z #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+0x6562cde) 2022-11-23T01:08:14.9337801Z #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+0x20cf997) 2022-11-23T01:08:14.9338018Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9338218Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9339098Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9339308Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9339516Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9340273Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9340500Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9340933Z #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+0xca56e8) 2022-11-23T01:08:14.9341320Z #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+0x2974180) 2022-11-23T01:08:14.9341593Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9342450Z #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+0x57a0418) 2022-11-23T01:08:14.9342678Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9342942Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9343121Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9343306Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9343565Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9343683Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9343801Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9343925Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9344077Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9344417Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9344536Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9344629Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9344636Z 2022-11-23T01:08:14.9344860Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2022-11-23T01:08:14.9345015Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9345138Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9345298Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9345501Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9345947Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9346244Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9346508Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9346772Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9347858Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9348483Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9348830Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9349975Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9355141Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9355346Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9355623Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9356742Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9357065Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9358162Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9358438Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9358708Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9359856Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9360202Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9361302Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9361615Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9361809Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9362107Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9363206Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9363564Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9373747Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9374056Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9374332Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9375525Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9375851Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9376968Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9377285Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9377479Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9377628Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9378269Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9378425Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9378717Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9378920Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9379205Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9379431Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9379823Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9380213Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9380428Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9380665Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9381421Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9381628Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9381836Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9382547Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9382777Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9383219Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9383629Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9383870Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9384734Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9384973Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9385252Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9385428Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9385612Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9385867Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9385985Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9386104Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9386223Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9386358Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9386670Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9386789Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9386884Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9386892Z 2022-11-23T01:08:14.9387134Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.9387304Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9387526Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9387846Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9388021Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9388392Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9388643Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9388933Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9394095Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9394424Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9394664Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9394906Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9395492Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9395819Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9396221Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9397363Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9397751Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9399185Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9399418Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9399561Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9400190Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9400341Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9400491Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9400749Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9400862Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9400989Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9401108Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9401258Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9401571Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9401718Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9401813Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9401820Z 2022-11-23T01:08:14.9404147Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.9404265Z ================== 2022-11-23T01:08:14.9404368Z ================== 2022-11-23T01:08:14.9404623Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9404918Z  Write of size 4 at 0x7b880001776c by thread T3: 2022-11-23T01:08:14.9408778Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.9409272Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9409671Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9409966Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9410260Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9410561Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9410706Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9410929Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9411064Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9411071Z 2022-11-23T01:08:14.9411265Z  Previous write of size 4 at 0x7b880001776c by main thread: 2022-11-23T01:08:14.9413401Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:14.9413667Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9413886Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9414197Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9414484Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9414679Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9414883Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9415107Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:14.9415319Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9416029Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9416304Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9416523Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9416934Z #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+0x6562cde) 2022-11-23T01:08:14.9417335Z #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+0x20cf997) 2022-11-23T01:08:14.9417548Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9417737Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9418643Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9418848Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9419053Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9419761Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9419981Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9420437Z #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+0xca56e8) 2022-11-23T01:08:14.9420822Z #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+0x2974180) 2022-11-23T01:08:14.9421060Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9421940Z #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+0x57a0418) 2022-11-23T01:08:14.9422151Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9422428Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9422602Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9422783Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9423064Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9423168Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9423287Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9423408Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9423555Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9423865Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9423982Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9424072Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9424078Z 2022-11-23T01:08:14.9424300Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2022-11-23T01:08:14.9424469Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9424591Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9424740Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9424973Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9425416Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9425683Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9425949Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9426218Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9427290Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9427941Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9428254Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9429284Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9429641Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9429830Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9430104Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9431584Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9432044Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9433675Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9434072Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9434499Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9436047Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9436424Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9438257Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9438789Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9439088Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9439534Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9440984Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9441436Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9442656Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9443159Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9443582Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9445065Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9445726Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9447585Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9448105Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9448345Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9448539Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9449613Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9449845Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9450150Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9450404Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9450643Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9450925Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9451314Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9451749Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9451961Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9452162Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9452928Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9453132Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9453336Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9454045Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9454294Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9454722Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9455111Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9455353Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9456213Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9456468Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9456748Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9456910Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9457092Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9457347Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9457463Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9457584Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9457705Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9457852Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9458167Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9458284Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9458376Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9458383Z 2022-11-23T01:08:14.9458729Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:14.9458888Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9459159Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9459479Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9459654Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9459949Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9460103Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9460297Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9460708Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9460962Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9461146Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9461338Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9461899Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9462064Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9462287Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9462948Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9463159Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9463971Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9464150Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9464291Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9464864Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9465010Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9465159Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9465439Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9465543Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9465660Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9465778Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9465925Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9466236Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9466353Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9466446Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9466454Z 2022-11-23T01:08:14.9468119Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:14.9468192Z ================== 2022-11-23T01:08:14.9468398Z ================== 2022-11-23T01:08:14.9468566Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9468741Z  Write of size 8 at 0x7b9800028ec0 by thread T1: 2022-11-23T01:08:14.9471013Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.9471281Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9471506Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9471814Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9472106Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9472376Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9472516Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9472743Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9472881Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9472887Z 2022-11-23T01:08:14.9473074Z  Previous write of size 8 at 0x7b9800028ec0 by main thread: 2022-11-23T01:08:14.9475232Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9475492Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9475717Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9475994Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9476281Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9476474Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9476675Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9476929Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9477139Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9477917Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.9478144Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.9478342Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9479089Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9479291Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9479517Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9480292Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9480536Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9481407Z #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+0x57a0418) 2022-11-23T01:08:14.9481646Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9481830Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9482086Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9482202Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9482309Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9482428Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9482574Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9482887Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9483005Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9483096Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9483104Z 2022-11-23T01:08:14.9483324Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.9483490Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9483612Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9483769Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9483962Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9484442Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9484712Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9484975Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9485240Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9486313Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9486980Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9487297Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9488352Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9488628Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9488802Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.9489562Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.9489832Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.9490125Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.9491386Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9491726Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9493023Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9493403Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9493741Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9494277Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9494486Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9494701Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9494981Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9495277Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9495754Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9495946Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9496545Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9496586Z 2022-11-23T01:08:14.9497223Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9497570Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9497959Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9498767Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9499086Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9499534Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9499821Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9500093Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9500845Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9501246Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9501489Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9501781Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9502572Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9502904Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9503234Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9504449Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9504822Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9506069Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9506559Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9506780Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9507726Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9507993Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9508259Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9508606Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9508825Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9509068Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9509255Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9509468Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9510023Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9510233Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9510361Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9510368Z 2022-11-23T01:08:14.9512213Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9512316Z ================== 2022-11-23T01:08:14.9522594Z ================== 2022-11-23T01:08:14.9522819Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9522997Z  Write of size 8 at 0x7b9800028ec8 by thread T1: 2022-11-23T01:08:14.9525200Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.9525557Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9525781Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9526060Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9526348Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9526613Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9526744Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9526961Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9527095Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9527103Z 2022-11-23T01:08:14.9527290Z  Previous write of size 8 at 0x7b9800028ec8 by main thread: 2022-11-23T01:08:14.9529456Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.9529749Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9529968Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9530246Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9530532Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9530718Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9530920Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9531146Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9531355Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9532131Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.9532344Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.9532561Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9533305Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9533507Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9533711Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9534525Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9534773Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9535633Z #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+0x57a0418) 2022-11-23T01:08:14.9535845Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9536032Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9536285Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9536396Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9536513Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9536633Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9536769Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9537107Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9537229Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9537319Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9537325Z 2022-11-23T01:08:14.9537549Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.9537716Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9537841Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9538002Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9538204Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9538855Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9539199Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9539456Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9539718Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9540789Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9541461Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9541769Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9542798Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9543108Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9543285Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.9543934Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.9544115Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.9544320Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.9545089Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9545326Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9546199Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9546413Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9546601Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9546844Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9546984Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9547104Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9547227Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9547375Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9547686Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9547803Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9547898Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9547904Z 2022-11-23T01:08:14.9548121Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9548288Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9548510Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9548827Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9548987Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9549284Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9549437Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9549731Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9550149Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9550368Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9550551Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9550780Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9551339Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9551507Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9551733Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9552397Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9552636Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9553418Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9553596Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9553738Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9554314Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9554461Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9554612Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9554868Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9554982Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9555099Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9555235Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9555383Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9555698Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9555820Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9555912Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9555918Z 2022-11-23T01:08:14.9558552Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9558717Z ================== 2022-11-23T01:08:14.9558817Z ================== 2022-11-23T01:08:14.9559102Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9559411Z  Write of size 8 at 0x7b9800028ed0 by thread T1: 2022-11-23T01:08:14.9562847Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9563282Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9563598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9564022Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9564522Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9564953Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9565166Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9565478Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9565657Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9565667Z 2022-11-23T01:08:14.9565941Z  Previous write of size 8 at 0x7b9800028ed0 by main thread: 2022-11-23T01:08:14.9569400Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9569940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9570284Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9570748Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9571115Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9571402Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9571720Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9572034Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9572419Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9573617Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.9573950Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.9574279Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9575611Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9575924Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9576173Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9577146Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9577523Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9579102Z #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+0x57a0418) 2022-11-23T01:08:14.9579414Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9579705Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9580074Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9580254Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9580453Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9580630Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9580856Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9581355Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9581607Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9581702Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9581709Z 2022-11-23T01:08:14.9582057Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.9582324Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9582460Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9582625Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9582897Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9583604Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9583992Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9584404Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9584761Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9586273Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9586930Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9587260Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9588293Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9588582Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9588760Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.9589406Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.9589665Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.9589872Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.9590681Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9590927Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9591881Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9592140Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9592340Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9592641Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9592757Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9592877Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9593000Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9593181Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9593518Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9593637Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9593729Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9593738Z 2022-11-23T01:08:14.9594029Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9594199Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9594407Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9594777Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9594955Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9595287Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9595478Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9595687Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9596099Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9596384Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9596576Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9596770Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9597417Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9597585Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9597813Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9598516Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9598729Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9599572Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9599752Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9599895Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9600497Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9600647Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9600799Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9601055Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9601173Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9601281Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9601402Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9601623Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9601937Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9602102Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9602233Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9602240Z 2022-11-23T01:08:14.9604223Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9604298Z ================== 2022-11-23T01:08:14.9604504Z ================== 2022-11-23T01:08:14.9604678Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9604856Z  Write of size 8 at 0x7b9800028f78 by thread T1: 2022-11-23T01:08:14.9607122Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.9607392Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9607615Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9607898Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9608186Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9608481Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9608622Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9608845Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9608985Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9608991Z 2022-11-23T01:08:14.9609176Z  Previous write of size 8 at 0x7b9800028f78 by main thread: 2022-11-23T01:08:14.9611319Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.9611586Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9611808Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9612122Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9612415Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9612609Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9612812Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9613042Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9613252Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9614085Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:14.9614301Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:14.9614505Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9615258Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9615468Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9615674Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9616470Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9616716Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9617584Z #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+0x57a0418) 2022-11-23T01:08:14.9617822Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9618010Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9618266Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9618384Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9618606Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9618744Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9618896Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9619209Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9619328Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9619422Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9619427Z 2022-11-23T01:08:14.9619652Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2022-11-23T01:08:14.9619818Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9619946Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9620107Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9620306Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9620778Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9621262Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9621670Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9622093Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9623489Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9624296Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9624697Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9626475Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9627052Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9627373Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:14.9628444Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:14.9628765Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:14.9629145Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:14.9630263Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:14.9630655Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:14.9631875Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9632137Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9632424Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2cfefc) 2022-11-23T01:08:14.9632793Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9632960Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9633100Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9633252Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9633444Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9633973Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9634160Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9634325Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9634336Z 2022-11-23T01:08:14.9634752Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:14.9635025Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9635357Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9635867Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9636162Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9636703Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9637021Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9637327Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9638034Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9638413Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9638727Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9639066Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9639913Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9640137Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9640468Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9641367Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9641711Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9642739Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9642962Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9643162Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9644045Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9644323Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9644563Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9644967Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9645177Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9645396Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9645598Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9645869Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9646453Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9646669Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9646835Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9646845Z 2022-11-23T01:08:14.9649077Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9649191Z ================== 2022-11-23T01:08:14.9649334Z ================== 2022-11-23T01:08:14.9649520Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9649698Z  Write of size 8 at 0x7b980004cec0 by thread T2: 2022-11-23T01:08:14.9651943Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:14.9652242Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9652474Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9652759Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9653049Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9653481Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9653738Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9654101Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9654320Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9654333Z 2022-11-23T01:08:14.9654693Z  Previous write of size 8 at 0x7b980004cec0 by main thread: 2022-11-23T01:08:14.9657042Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9657317Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9657531Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9657811Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9658142Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9658335Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9658672Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9658906Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9659122Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9659853Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9660092Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9660317Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9660705Z #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+0x6562cde) 2022-11-23T01:08:14.9661151Z #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+0x20cf997) 2022-11-23T01:08:14.9661369Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9661569Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9662324Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9662563Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9662770Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9663486Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9663713Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9664148Z #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+0xca56e8) 2022-11-23T01:08:14.9664534Z #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+0x2974180) 2022-11-23T01:08:14.9664777Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9665678Z #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+0x57a0418) 2022-11-23T01:08:14.9665896Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9666174Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9666352Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9666534Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9666831Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9666947Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9667069Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9667178Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9667327Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9667641Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9667762Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9667856Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9667862Z 2022-11-23T01:08:14.9668093Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2022-11-23T01:08:14.9668259Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9668384Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9668544Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9668750Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9669197Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9669468Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9669805Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9670077Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9671193Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9671839Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9672177Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9673211Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9673489Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9673678Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9673952Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9675096Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9675406Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9676565Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9676842Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9677114Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9678274Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9678612Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9679703Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9680022Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9680214Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9680514Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9681624Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9681929Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9683289Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9683680Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9684057Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9685682Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9686317Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9687646Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9688135Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9688484Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9688760Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9689782Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9690100Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9690455Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9690814Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9691236Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9691572Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9692298Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9692767Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9693029Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9693343Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9694685Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9695032Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9695368Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9696603Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9697056Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9697814Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9698608Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9699034Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9700618Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9701036Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9701512Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9701832Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9702222Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9702680Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9702873Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9703082Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9703292Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9703568Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9704153Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9704373Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9704542Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9704557Z 2022-11-23T01:08:14.9704983Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.9705238Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9705495Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9705814Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9705991Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9706291Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9706447Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9706647Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9707060Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9707283Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9707469Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9707666Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9708227Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9708394Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9708620Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9709308Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9709524Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9710385Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9710597Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9710742Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9711329Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9711477Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9711632Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9711889Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9712006Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9712113Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9712236Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9712386Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9712697Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9712820Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9712914Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9712920Z 2022-11-23T01:08:14.9714615Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9714690Z ================== 2022-11-23T01:08:14.9714885Z ================== 2022-11-23T01:08:14.9715042Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9715220Z  Write of size 8 at 0x7b980004cec8 by thread T2: 2022-11-23T01:08:14.9717384Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.9717691Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9717912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9718196Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9718489Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9718761Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9718903Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9719129Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9719268Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9719274Z 2022-11-23T01:08:14.9719463Z  Previous write of size 8 at 0x7b980004cec8 by main thread: 2022-11-23T01:08:14.9721630Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:14.9721915Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9722137Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9722420Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9722710Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9722902Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9723105Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9723329Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9723546Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9724260Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9724500Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9724747Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9725134Z #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+0x6562cde) 2022-11-23T01:08:14.9725521Z #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+0x20cf997) 2022-11-23T01:08:14.9725737Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9725939Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9726719Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9726935Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9727131Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9727857Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9728081Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9728516Z #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+0xca56e8) 2022-11-23T01:08:14.9728929Z #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+0x2974180) 2022-11-23T01:08:14.9729171Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9730027Z #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+0x57a0418) 2022-11-23T01:08:14.9730242Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9730554Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9730728Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9730910Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9731169Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9731285Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9731405Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9731529Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9731676Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9731991Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9732108Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9732202Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9732207Z 2022-11-23T01:08:14.9732414Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2022-11-23T01:08:14.9732581Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9732705Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9732868Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9733075Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9733521Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9733819Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9734086Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9734354Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9735437Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9736101Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9736406Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9737446Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9737744Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9737932Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9738204Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9739551Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9739940Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9741626Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9742137Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9742524Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9743725Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9744050Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9745185Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9745476Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9745674Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9745975Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9747095Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9747418Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9748480Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9748784Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9749056Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9750264Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9750592Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9751726Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9752021Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9752248Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9752398Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9753040Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9753196Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9753396Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9753598Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9753832Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9754049Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9754437Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9754823Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9755037Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9755264Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9756013Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9756222Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9756430Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9757169Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9757397Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9757825Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9758227Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9758471Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9759327Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9759567Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9759847Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9760025Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9760209Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9760462Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9760577Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9760699Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9760819Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9760954Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9761305Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9761422Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9761516Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9761522Z 2022-11-23T01:08:14.9761758Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.9761927Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9762152Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9762472Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9762650Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9762946Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9763103Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9763301Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9763713Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9763938Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9764125Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9764318Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9764910Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9765079Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9765304Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9765962Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9766200Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9766972Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9767152Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9767301Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9767880Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9768026Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9768178Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9768436Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9768553Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9768672Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9768791Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9768941Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9769280Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9769402Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9769482Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9769490Z 2022-11-23T01:08:14.9771180Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9771282Z ================== 2022-11-23T01:08:14.9771346Z ================== 2022-11-23T01:08:14.9771501Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9771678Z  Write of size 8 at 0x7b980004ced0 by thread T2: 2022-11-23T01:08:14.9773817Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9774095Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9774319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9774607Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9774897Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9775190Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9775334Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9775560Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9775683Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9775701Z 2022-11-23T01:08:14.9775875Z  Previous write of size 8 at 0x7b980004ced0 by main thread: 2022-11-23T01:08:14.9778155Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:14.9778448Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9778785Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9779071Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9779361Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9779558Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9779766Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9779996Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9780212Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9780978Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9781221Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9781439Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9781829Z #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+0x6562cde) 2022-11-23T01:08:14.9782215Z #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+0x20cf997) 2022-11-23T01:08:14.9782463Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9782668Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9783422Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9783629Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9783838Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9784560Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9784788Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9785243Z #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+0xca56e8) 2022-11-23T01:08:14.9785632Z #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+0x2974180) 2022-11-23T01:08:14.9785870Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9786731Z #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+0x57a0418) 2022-11-23T01:08:14.9786969Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9787247Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9787424Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9787606Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9787859Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9787976Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9788096Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9788217Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9788368Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9788684Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9788805Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9788885Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9788892Z 2022-11-23T01:08:14.9789119Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2022-11-23T01:08:14.9789285Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9789410Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9789632Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9789887Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9790388Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9790758Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9791166Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9791580Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9793708Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9794699Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9795147Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9796826Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9797243Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9797477Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9797887Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9799540Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9800042Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9801726Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9802205Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9802630Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9804471Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9805051Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9806608Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9807024Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9807318Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9807747Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9809523Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9810039Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9811577Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9812000Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9812435Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9814192Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9814718Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9816465Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9816951Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9817264Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9817506Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9818586Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9818855Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9819181Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9819519Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9819910Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9820268Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9820715Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9821260Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9821513Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9821817Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9823345Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9823789Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9824158Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9824869Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9825094Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9825523Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9825909Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9826148Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9827053Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9827266Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9827546Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9827722Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9827936Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9828193Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9828295Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9828414Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9828537Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9828685Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9829005Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9829124Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9829221Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9829228Z 2022-11-23T01:08:14.9829476Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.9829721Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9829945Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9830261Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9830499Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9830797Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9830940Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9831130Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9831540Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9831802Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9831989Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9832184Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9832749Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9832917Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9833145Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9833845Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9834055Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9834825Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9835003Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9835148Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9835724Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9835871Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9836019Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9836312Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9836428Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9836548Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9836659Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9836807Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9837119Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9837238Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9837331Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9837337Z 2022-11-23T01:08:14.9838996Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9839105Z ================== 2022-11-23T01:08:14.9839172Z ================== 2022-11-23T01:08:14.9839349Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:14.9839526Z  Write of size 8 at 0x7b980004cf78 by thread T2: 2022-11-23T01:08:14.9841695Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.9841964Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9842186Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9842500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9842794Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9843060Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:14.9843199Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:14.9843425Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:14.9843559Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:14.9843565Z 2022-11-23T01:08:14.9843781Z  Previous write of size 8 at 0x7b980004cf78 by main thread: 2022-11-23T01:08:14.9845916Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:14.9846190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:14.9846417Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:14.9846702Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:14.9847149Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:14.9847367Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:14.9847557Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:14.9847826Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:14.9848111Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:14.9848841Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:14.9849080Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:14.9849333Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9849717Z #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+0x6562cde) 2022-11-23T01:08:14.9850103Z #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+0x20cf997) 2022-11-23T01:08:14.9850317Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9850520Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9851269Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9851478Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9851684Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9852424Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9852650Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9853080Z #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+0xca56e8) 2022-11-23T01:08:14.9853480Z #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+0x2974180) 2022-11-23T01:08:14.9853749Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9854611Z #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+0x57a0418) 2022-11-23T01:08:14.9854823Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9855100Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9855273Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9855457Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9855712Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9855829Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9855947Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9856056Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9856204Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9856514Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9856657Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9856751Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9856757Z 2022-11-23T01:08:14.9856986Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2022-11-23T01:08:14.9857156Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:14.9857280Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:14.9857440Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:14.9857649Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:14.9858093Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:14.9858363Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:14.9858790Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:14.9859057Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:14.9860130Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:14.9860770Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:14.9861076Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:14.9862153Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:14.9862443Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:14.9862649Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:14.9862918Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:14.9864034Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:14.9864343Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9865461Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9865739Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9866010Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9867138Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9867501Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9868589Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9868881Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9869098Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9869395Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:14.9870570Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:14.9870930Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:14.9871997Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:14.9872274Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:14.9872545Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:14.9873686Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:14.9874022Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:14.9875106Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:14.9875419Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:14.9875610Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:14.9875756Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:14.9876396Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:14.9876550Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:14.9876745Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:14.9876946Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:14.9877277Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:14.9877498Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:14.9877885Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:14.9878274Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:14.9878491Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:14.9878719Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:14.9879481Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:14.9879686Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:14.9879894Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:14.9880607Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:14.9880834Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:14.9881263Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:14.9881672Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:14.9881913Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:14.9882779Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:14.9883027Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:14.9883306Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e6e7f) 2022-11-23T01:08:14.9883479Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:14.9883650Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0210) 2022-11-23T01:08:14.9883908Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9884023Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9884144Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9884263Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9884411Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9884725Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9884842Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9884937Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9884943Z 2022-11-23T01:08:14.9885170Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:14.9885338Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:14.9885546Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:14.9885863Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:14.9886037Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:14.9886355Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:14.9886509Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:14.9886700Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:14.9887110Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:14.9887330Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:14.9887513Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:14.9887707Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:14.9888267Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:14.9888459Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:14.9888686Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:14.9889349Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:14.9889564Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:14.9890344Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:14.9890519Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:14.9890663Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:14.9891274Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:14.9891423Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:14.9891574Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:14.9891826Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:14.9891942Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:14.9892050Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:14.9892187Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:14.9892335Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:14.9892644Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:14.9892789Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:14.9892884Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:14.9892890Z 2022-11-23T01:08:14.9894546Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:14.9894618Z ================== 2022-11-23T01:08:14.9894833Z [ OK ] LazyOpsTest.TestMultiIndexPutTailNull (277 ms) 2022-11-23T01:08:14.9895046Z [ RUN ] LazyOpsTest.TestMultiIndexPutMiddleBroadcast 2022-11-23T01:08:15.0093885Z ================== 2022-11-23T01:08:15.0094244Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0094544Z  Write of size 4 at 0x7b94000479f8 by thread T1: 2022-11-23T01:08:15.0098386Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.0098991Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0099374Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0099852Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0100322Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0100845Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0101073Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0101457Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0101662Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0101678Z 2022-11-23T01:08:15.0102008Z  Previous write of size 4 at 0x7b94000479f8 by main thread: 2022-11-23T01:08:15.0104556Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.0104828Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0105052Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0105409Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0105704Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0105899Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0106106Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0106334Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.0106554Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0107284Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0107556Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0107776Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0108351Z #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+0x6562cde) 2022-11-23T01:08:15.0108953Z #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+0x20cf997) 2022-11-23T01:08:15.0109311Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0109688Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0110991Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0111356Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0111687Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0112818Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0113310Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0113994Z #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+0xca56e8) 2022-11-23T01:08:15.0114574Z #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+0x2974180) 2022-11-23T01:08:15.0114863Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0116165Z #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+0x57a0418) 2022-11-23T01:08:15.0116506Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0116984Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0117164Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0117362Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0117705Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0117897Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0118113Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0118334Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0118609Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0119009Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0119171Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0119254Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0119261Z 2022-11-23T01:08:15.0119514Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2022-11-23T01:08:15.0119683Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0119918Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0120085Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0120293Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0120807Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0121081Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0121351Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0121678Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0122821Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0123749Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0124118Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0125694Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0126020Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0126285Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0126558Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0127770Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0128141Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0129276Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0129619Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0129891Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0131088Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0131453Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0132651Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0132943Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0133134Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0133431Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0134551Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0134942Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0135993Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0136297Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0136565Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0137701Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0138046Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0139342Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0139636Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0139832Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0139982Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0140676Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0140834Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0141028Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0141231Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0141467Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0141686Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0142072Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0142494Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0142709Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0142940Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0143690Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0143891Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0144099Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0144857Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0145081Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0145509Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.0145962Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.0146207Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0147097Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0147308Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0147603Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0147777Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0147974Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0148229Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0148344Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0148462Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0148584Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0148733Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0149046Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0149164Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0149245Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0149251Z 2022-11-23T01:08:15.0149483Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.0149755Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0149978Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0150297Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0150469Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0150763Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0150917Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0151112Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0151524Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0151776Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0151961Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0152153Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0152710Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0152902Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0153169Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0154006Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0154350Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0155791Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0156103Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0156359Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0157389Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0157675Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0157976Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0158398Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0158598Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0158788Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0158999Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0159261Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0159838Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0160040Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0160206Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0160218Z 2022-11-23T01:08:15.0163202Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.0163323Z ================== 2022-11-23T01:08:15.0163481Z ================== 2022-11-23T01:08:15.0163778Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0164054Z  Write of size 4 at 0x7b9400047a00 by thread T1: 2022-11-23T01:08:15.0167838Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:15.0168299Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0168757Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0169279Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0169816Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0170283Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0170553Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0170966Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0171204Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0171217Z 2022-11-23T01:08:15.0171575Z  Previous write of size 4 at 0x7b9400047a00 by main thread: 2022-11-23T01:08:15.0175499Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:15.0175953Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0176356Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0176881Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0177417Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0177764Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0178145Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0178618Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.0178995Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0180324Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0180763Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0181161Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0181889Z #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+0x6562cde) 2022-11-23T01:08:15.0182754Z #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+0x20cf997) 2022-11-23T01:08:15.0183147Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0183603Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0184985Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0185370Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0185751Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0186635Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0186998Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0187779Z #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+0xca56e8) 2022-11-23T01:08:15.0188264Z #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+0x2974180) 2022-11-23T01:08:15.0188509Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0189423Z #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+0x57a0418) 2022-11-23T01:08:15.0189739Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0190037Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0190214Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0190413Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0190666Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0190781Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0190903Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0191024Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0191161Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0191502Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0191620Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0191712Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0191719Z 2022-11-23T01:08:15.0191957Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2022-11-23T01:08:15.0192124Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0192248Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0192412Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0192618Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0193060Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0193327Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0193592Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0193860Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0194966Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0195602Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0195932Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0196959Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0197246Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0197435Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0197704Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0198830Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0199141Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0200206Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0200504Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0200774Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0201901Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0202261Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0203353Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0203696Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0203879Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0204176Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0205291Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0205600Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0206696Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0206975Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0207244Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0208375Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0208735Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0209828Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0210149Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0210345Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0210494Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0211148Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0211302Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0211488Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0211715Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0211948Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0212167Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0212558Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0212947Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0213161Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0213360Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0214120Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0214328Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0214560Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0215267Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0215496Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0215926Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.0216500Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.0216883Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0218269Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0218730Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0219196Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0219492Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0219815Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0220214Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0220406Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0220530Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0220725Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0221056Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0221570Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0221753Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0221887Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0221893Z 2022-11-23T01:08:15.0222260Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.0222534Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0222889Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0223383Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0223688Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0224122Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0224365Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0224660Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0225259Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0225577Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0225875Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0226187Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0227067Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0227339Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0227691Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0228839Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0229192Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0230570Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0230836Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0231066Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0231939Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0232172Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0232415Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0232835Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0233019Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0233212Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0233410Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0233585Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0234042Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0234219Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0234383Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0234397Z 2022-11-23T01:08:15.0237030Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.0237138Z ================== 2022-11-23T01:08:15.0237300Z ================== 2022-11-23T01:08:15.0237578Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0237843Z  Write of size 4 at 0x7b9400047a04 by thread T1: 2022-11-23T01:08:15.0241109Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.0241598Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0241961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0242440Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0242911Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0243285Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0243478Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0243825Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0244034Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0244046Z 2022-11-23T01:08:15.0244362Z  Previous write of size 4 at 0x7b9400047a04 by main thread: 2022-11-23T01:08:15.0247778Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.0248057Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0248281Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0248593Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0248885Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0249078Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0249279Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0249504Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.0249721Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0250439Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0250681Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0250902Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0251313Z #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+0x6562cde) 2022-11-23T01:08:15.0251714Z #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+0x20cf997) 2022-11-23T01:08:15.0251930Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0252117Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0252881Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0253110Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0253314Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0254024Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0254247Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0254678Z #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+0xca56e8) 2022-11-23T01:08:15.0255062Z #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+0x2974180) 2022-11-23T01:08:15.0255301Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0256195Z #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+0x57a0418) 2022-11-23T01:08:15.0256405Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0256702Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0256875Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0257099Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0257351Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0257454Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0257572Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0257694Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0257841Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0258152Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0258270Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0258364Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0258370Z 2022-11-23T01:08:15.0258782Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2022-11-23T01:08:15.0258997Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0259122Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0259270Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0259477Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0259924Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0260205Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0260469Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0260791Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0261854Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0262530Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0262850Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0263881Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0264161Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0264349Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0264643Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0265755Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0266088Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0267156Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0267447Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0267717Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0268877Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0269204Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0270377Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0270702Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0270897Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0271195Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0272310Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0272646Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0273698Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0274018Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0274291Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0275417Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0275740Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0276874Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0277165Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0277357Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0277503Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0278260Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0278532Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0278809Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0279125Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0279490Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0279830Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0280425Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0281027Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0281343Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0281649Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0282795Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0283202Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0283432Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0284513Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0284932Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0285623Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.0286277Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.0286724Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0288277Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0288668Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0289133Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0289501Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0289816Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0290236Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0290436Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0290601Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0290786Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0291024Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0291541Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0291722Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0291868Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0291937Z 2022-11-23T01:08:15.0292299Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.0292547Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0292895Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0293312Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0293594Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0294070Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0294274Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0294555Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0295223Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0295544Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0295851Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0296143Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0297062Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0297342Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0297749Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0298914Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0299251Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0300496Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0300875Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0301098Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0302052Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0302298Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0302558Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0302980Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0303182Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0303347Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0303504Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0303749Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0304265Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0304467Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0304600Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0304609Z 2022-11-23T01:08:15.0307137Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.0307232Z ================== 2022-11-23T01:08:15.0307284Z ================== 2022-11-23T01:08:15.0307464Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0307642Z  Write of size 4 at 0x7b9400047a08 by thread T1: 2022-11-23T01:08:15.0309974Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.0310296Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0310521Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0310803Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0311093Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0311365Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0311506Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0311717Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0311898Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0311905Z 2022-11-23T01:08:15.0312096Z  Previous write of size 4 at 0x7b9400047a08 by main thread: 2022-11-23T01:08:15.0314240Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.0314541Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0314762Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0315042Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0315333Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0315522Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0315725Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0315954Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.0316168Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0316884Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0317149Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0317438Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0317824Z #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+0x6562cde) 2022-11-23T01:08:15.0318227Z #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+0x20cf997) 2022-11-23T01:08:15.0318442Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0318659Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0319430Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0319636Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0319843Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0320556Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0320782Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0321205Z #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+0xca56e8) 2022-11-23T01:08:15.0321616Z #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+0x2974180) 2022-11-23T01:08:15.0321858Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0322734Z #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+0x57a0418) 2022-11-23T01:08:15.0322970Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0323264Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0323437Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0323639Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0323894Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0323999Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0324117Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0324236Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0324383Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0324694Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0324811Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0324904Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0324910Z 2022-11-23T01:08:15.0325128Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2022-11-23T01:08:15.0325294Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0325420Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0325568Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0325772Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0326240Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0326524Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0326789Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0327051Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0328124Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0328777Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0329096Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0330148Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0330423Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0330612Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0330883Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0331996Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0332329Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0333396Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0333684Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0333954Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0335105Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0335433Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0336558Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0336847Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0337040Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0337336Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0338589Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0339007Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0340329Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0340861Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0341297Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0342985Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0343487Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0345300Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0345789Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0346018Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0346261Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0347215Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0347488Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0347835Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0348216Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0348590Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0348921Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0349494Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0350020Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0350418Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0350741Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0352047Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0352302Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0352620Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0353467Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0353712Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0354320Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.0354904Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.0355289Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0356700Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0357052Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0357536Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0357809Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0358137Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0358542Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0358734Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0358984Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0359179Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0359421Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0359819Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0360014Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0360173Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0360184Z 2022-11-23T01:08:15.0360521Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.0360757Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0361117Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0361658Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0361933Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0362394Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0362644Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0362948Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0363643Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0364008Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0364307Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0364592Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0365497Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0365760Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0366126Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0367135Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0367499Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0368773Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0369073Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0369308Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0370241Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0370447Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0370673Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0370935Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0371040Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0371166Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0371287Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0371487Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0371804Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0371924Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0372017Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0372023Z 2022-11-23T01:08:15.0373699Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.0373801Z ================== 2022-11-23T01:08:15.0373954Z ================== 2022-11-23T01:08:15.0374114Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0374292Z  Write of size 4 at 0x7b9400047a0c by thread T1: 2022-11-23T01:08:15.0376436Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.0376713Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0376941Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0377224Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0377542Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0377810Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0377954Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0378180Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0378322Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0378329Z 2022-11-23T01:08:15.0378651Z  Previous write of size 4 at 0x7b9400047a0c by main thread: 2022-11-23T01:08:15.0380942Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.0381260Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0381481Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0381764Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0382057Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0382253Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0382457Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0382684Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.0382898Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0383642Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0383886Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0384106Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0384492Z #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+0x6562cde) 2022-11-23T01:08:15.0384905Z #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+0x20cf997) 2022-11-23T01:08:15.0385119Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0385320Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0386068Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0386274Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0386478Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0387196Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0387459Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0387883Z #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+0xca56e8) 2022-11-23T01:08:15.0388269Z #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+0x2974180) 2022-11-23T01:08:15.0388508Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0389363Z #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+0x57a0418) 2022-11-23T01:08:15.0389695Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0389997Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0390173Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0390371Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0390624Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0390742Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0390863Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0390985Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0391138Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0391449Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0391575Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0391654Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0391675Z 2022-11-23T01:08:15.0391888Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2022-11-23T01:08:15.0392055Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0392213Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0392376Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0392580Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0393023Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0393290Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0393556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0393851Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0394931Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0395559Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0395865Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0396935Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0397213Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0397401Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0397672Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0398803Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0399127Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0400210Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0400488Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0400760Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0401896Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0402247Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0403349Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0403644Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0403837Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0404132Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0405261Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0405607Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0406673Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0406948Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0407218Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0408382Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0408708Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0409798Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0410127Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0410320Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0410471Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0411113Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0411267Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0411464Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0411667Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0411901Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0412121Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0412535Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0412927Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0413141Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0413342Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0414095Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0414325Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0414531Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0415242Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0415471Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0415899Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.0416283Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.0416536Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0417431Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0417647Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0417941Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0418144Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0418343Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0418766Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0418918Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0419040Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0419150Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0419302Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0419615Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0419737Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0419832Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0419837Z 2022-11-23T01:08:15.0420062Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.0420229Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0420450Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0420769Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0420944Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0421240Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0421395Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0421590Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0422047Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0422270Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0422460Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0422639Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0423214Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0423380Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0423660Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0424321Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0424533Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0425306Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0425484Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0425630Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0426206Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0426380Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0426537Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0426793Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0426912Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0427032Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0427154Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0427305Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0427614Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0427722Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0427817Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0427822Z 2022-11-23T01:08:15.0429479Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.0429672Z ================== 2022-11-23T01:08:15.0529593Z ================== 2022-11-23T01:08:15.0529931Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0530234Z  Write of size 1 at 0x7b740003a7be by thread T2: 2022-11-23T01:08:15.0533620Z  #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+0x8718da5) 2022-11-23T01:08:15.0534101Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0534413Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0534785Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0535226Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0535661Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0535891Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0536279Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0536577Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0536589Z 2022-11-23T01:08:15.0536872Z  Previous write of size 1 at 0x7b740003a7be by main thread: 2022-11-23T01:08:15.0540230Z  #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+0x8718da5) 2022-11-23T01:08:15.0540595Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0540908Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0541299Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0541771Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0542120Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0542449Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0542819Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.0543147Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0544437Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:15.0544901Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.0545187Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0546505Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0546855Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0547243Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0548453Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0548917Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0550515Z #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+0x57a0418) 2022-11-23T01:08:15.0550914Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0551289Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0551800Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0551937Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0552057Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0552178Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0552327Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0552643Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0552762Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0552856Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0552862Z 2022-11-23T01:08:15.0553144Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:15.0553311Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0553438Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0553600Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0553795Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0554253Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0554526Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0554792Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0555058Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0556159Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0556801Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0557132Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0558167Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0558444Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0558621Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:15.0559294Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:15.0559487Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:15.0559682Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:15.0560468Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0560737Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0561596Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0561807Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0562009Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0562263Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0562380Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0562499Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0562620Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0562769Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0563081Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0563201Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0563294Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0563300Z 2022-11-23T01:08:15.0563504Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.0563670Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0563918Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0564239Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0564411Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0564706Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0564858Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0565050Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0565457Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0565702Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0565890Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0566080Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0566633Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0566799Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0567026Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0567682Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0567894Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0568709Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0568902Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0569033Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0569623Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0569769Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0569957Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0570198Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0570313Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0570433Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0570552Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0570700Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0571011Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0571129Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0571241Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0571250Z 2022-11-23T01:08:15.0573818Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:15.0573926Z ================== 2022-11-23T01:08:15.0574035Z ================== 2022-11-23T01:08:15.0574319Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0574573Z  Write of size 1 at 0x7b740003a7bf by thread T2: 2022-11-23T01:08:15.0578274Z  #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+0x8718e1d) 2022-11-23T01:08:15.0578812Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0579268Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0579725Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0580197Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0580672Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0580913Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0581312Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0581541Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0581590Z 2022-11-23T01:08:15.0581947Z  Previous write of size 1 at 0x7b740003a7bf by main thread: 2022-11-23T01:08:15.0585948Z  #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+0x8718e1d) 2022-11-23T01:08:15.0586372Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0586668Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0587097Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0587500Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0587859Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0588276Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0588599Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.0588896Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0590140Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:15.0590472Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.0590798Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0593511Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0593897Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0594252Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0595032Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0595292Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0596180Z #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+0x57a0418) 2022-11-23T01:08:15.0596392Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0596596Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0596851Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0596966Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0597085Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0597205Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0597340Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0597653Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0597774Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0597868Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0597874Z 2022-11-23T01:08:15.0598113Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:15.0598281Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0598404Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0598565Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0598773Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0599251Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0599523Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0599787Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0600086Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0601158Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0601820Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0602125Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0603178Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0603474Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0603654Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:15.0604301Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:15.0604509Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:15.0604718Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:15.0605498Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0605745Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0606615Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0606830Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0607060Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0607317Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0607423Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0607540Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0607660Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0607809Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0608120Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0608241Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0608334Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0608342Z 2022-11-23T01:08:15.0608558Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.0608726Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0608977Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0609298Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0609472Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0609770Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0609909Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0610102Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0610510Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0610731Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0610921Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0611113Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0611669Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0611838Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0612063Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0612765Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0612981Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0613754Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0613969Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0614113Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0614691Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0614841Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0614994Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0615264Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0615432Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0615608Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0615808Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0615973Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0616429Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0616563Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0616697Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0616705Z 2022-11-23T01:08:15.0619901Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:15.0620037Z ================== 2022-11-23T01:08:15.0620175Z ================== 2022-11-23T01:08:15.0620483Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0620807Z  Write of size 1 at 0x7b740003a7c6 by thread T2: 2022-11-23T01:08:15.0624839Z  #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+0x8718e64) 2022-11-23T01:08:15.0625366Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0625781Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0626284Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0626826Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0627308Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0627568Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0627965Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0628205Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0628213Z 2022-11-23T01:08:15.0628515Z  Previous write of size 1 at 0x7b740003a7c6 by main thread: 2022-11-23T01:08:15.0632760Z  #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+0x8718e64) 2022-11-23T01:08:15.0633245Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0633756Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0634291Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0634813Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0635271Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0635645Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0636062Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.0636459Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0637908Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:15.0638351Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.0638706Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0640009Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0640227Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0640467Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0641246Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0641488Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0642347Z #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+0x57a0418) 2022-11-23T01:08:15.0642562Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0642762Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0643016Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0643132Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0643252Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0643405Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0643554Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0643869Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0643988Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0644081Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0644087Z 2022-11-23T01:08:15.0644319Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:15.0644474Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0644598Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0644760Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0644968Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0645442Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0645759Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0646045Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0646309Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0647396Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0648048Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0648354Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0649397Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0649694Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0649872Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:15.0650522Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:15.0650703Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:15.0650949Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:15.0651760Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.0652053Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.0652908Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.0653120Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0653319Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.0653600Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0653716Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0653836Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0653956Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0654093Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0654405Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0654526Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0654619Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0654627Z 2022-11-23T01:08:15.0654842Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.0655010Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.0655231Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.0655548Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.0655723Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.0656019Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.0656173Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.0656364Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.0656768Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.0656987Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.0657202Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.0657394Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.0657948Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.0658113Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.0658342Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.0659108Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.0659379Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.0660152Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.0660333Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.0660479Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.0661052Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.0661199Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.0661349Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.0661607Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0661769Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0661892Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0662012Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0662161Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0662473Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0662591Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0662672Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0662690Z 2022-11-23T01:08:15.0664376Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:15.0664501Z ================== 2022-11-23T01:08:15.0936756Z ================== 2022-11-23T01:08:15.0937129Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.0937379Z  Write of size 1 at 0x7b740003d9be by thread T3: 2022-11-23T01:08:15.0943356Z  #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+0x8718da5) 2022-11-23T01:08:15.0943723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0944141Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0944829Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0945383Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0945809Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.0945979Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.0946275Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.0946455Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.0946462Z 2022-11-23T01:08:15.0946663Z  Previous write of size 1 at 0x7b740003d9be by main thread: 2022-11-23T01:08:15.0950413Z  #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+0x8718da5) 2022-11-23T01:08:15.0950905Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.0951304Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.0951642Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.0952090Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.0952382Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.0952694Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.0953128Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.0953548Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.0954730Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.0963177Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.0963746Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0964394Z #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+0x6562cde) 2022-11-23T01:08:15.0965253Z #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+0x20cf997) 2022-11-23T01:08:15.0965655Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0966027Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0967423Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.0967739Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.0967938Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.0968708Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.0968940Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.0969373Z #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+0xca56e8) 2022-11-23T01:08:15.0969763Z #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+0x2974180) 2022-11-23T01:08:15.0970036Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.0970895Z #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+0x57a0418) 2022-11-23T01:08:15.0971109Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.0971505Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.0971681Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.0971883Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.0972141Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.0972260Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.0972383Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.0972506Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.0972656Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.0972969Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.0973088Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.0973211Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.0973219Z 2022-11-23T01:08:15.0973464Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2022-11-23T01:08:15.0973635Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.0973760Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.0973922Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.0974129Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.0974576Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.0974846Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.0975141Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.0975407Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.0976490Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.0977115Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.0977421Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.0978616Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.0978896Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.0979137Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.0979408Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.0980508Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.0980835Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0981941Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0982221Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0982491Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0983628Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0983986Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0985099Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0985390Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0985609Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0985913Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.0987012Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.0987362Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.0988423Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.0988698Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.0988968Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.0990205Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.0990531Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.0991980Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.0992469Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.0992790Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.0993026Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.0994103Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.0994372Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.0994706Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.0995058Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.0995496Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.0995904Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.0996569Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.0997295Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.0997691Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.0998072Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.0999309Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1001711Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1002105Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1003355Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1003724Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1004432Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1005159Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1005578Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1007041Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1007465Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1007945Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1008238Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1008560Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1010477Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1010660Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1010859Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1011067Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1011310Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1011832Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1012035Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1012188Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1012198Z 2022-11-23T01:08:15.1012612Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.1012899Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1013261Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1013774Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1014053Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1014609Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1014953Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1015270Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1016037Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1016429Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1016739Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1017102Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1018110Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1018463Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1018925Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1020101Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1020375Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1021771Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1022122Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1022366Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1023545Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1023701Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1023854Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1024099Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1024217Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1024338Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1024458Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1024608Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1024923Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1025080Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1025174Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1025181Z 2022-11-23T01:08:15.1026873Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718da5) 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::' 2022-11-23T01:08:15.1026945Z ================== 2022-11-23T01:08:15.1027010Z ================== 2022-11-23T01:08:15.1027178Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1027356Z  Write of size 1 at 0x7b740003d9bf by thread T3: 2022-11-23T01:08:15.1029659Z  #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+0x8718e1d) 2022-11-23T01:08:15.1029928Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1030153Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1030438Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1030731Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1031000Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1031183Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1031407Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1031543Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1031550Z 2022-11-23T01:08:15.1031738Z  Previous write of size 1 at 0x7b740003d9bf by main thread: 2022-11-23T01:08:15.1033901Z  #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+0x8718e1d) 2022-11-23T01:08:15.1034158Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1034379Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1034687Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1034976Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1035171Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1035373Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1035600Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.1035812Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1036526Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1036792Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1037035Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1037419Z #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+0x6562cde) 2022-11-23T01:08:15.1037806Z #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+0x20cf997) 2022-11-23T01:08:15.1038019Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1038219Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1038979Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1039206Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1039410Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1040123Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1040347Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1040799Z #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+0xca56e8) 2022-11-23T01:08:15.1041181Z #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+0x2974180) 2022-11-23T01:08:15.1041420Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1042290Z #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+0x57a0418) 2022-11-23T01:08:15.1042503Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1042799Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1042973Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1043170Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1043423Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1043567Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1043688Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1043807Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1043956Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1044269Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1044391Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1044483Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1044488Z 2022-11-23T01:08:15.1044712Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2022-11-23T01:08:15.1044879Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1045004Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1045154Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1045389Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1045834Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1046107Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1046455Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1046862Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1048602Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1049332Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1049741Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1051445Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1051954Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1052253Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1052692Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1054537Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1055079Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1056985Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1057481Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1057878Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1060042Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1060576Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1061978Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1062460Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1062947Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1063336Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1065021Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1065613Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1067564Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1068083Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1068629Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1070544Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1071213Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1073264Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1073784Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1074105Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1074372Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1075571Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1075862Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1076227Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1076603Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1077029Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1077413Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1078067Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1078819Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1079199Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1079570Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1080980Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1081317Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1081527Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1082241Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1082497Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1082927Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1083327Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1083630Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1084491Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1084737Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1085032Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1085209Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1085408Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1085665Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1085781Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1085904Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1086025Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1086161Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1086477Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1086595Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1086688Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1086695Z 2022-11-23T01:08:15.1086940Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.1087109Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1087361Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1087682Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1087859Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1088159Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1088313Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1088505Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1088916Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1089167Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1089352Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1089543Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1090098Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1090263Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1090486Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1091144Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1091356Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1092151Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1092331Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1092476Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1093055Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1093204Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1093355Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1093635Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1093750Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1093870Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1093990Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1094139Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1094455Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1094576Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1094657Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1094676Z 2022-11-23T01:08:15.1096364Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e1d) 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::' 2022-11-23T01:08:15.1096437Z ================== 2022-11-23T01:08:15.1096502Z ================== 2022-11-23T01:08:15.1096656Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1096833Z  Write of size 1 at 0x7b740003d9c6 by thread T3: 2022-11-23T01:08:15.1099328Z  #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+0x8718e64) 2022-11-23T01:08:15.1099610Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1099836Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1100157Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1100449Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1100723Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1100865Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1101093Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1101231Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1101238Z 2022-11-23T01:08:15.1101419Z  Previous write of size 1 at 0x7b740003d9c6 by main thread: 2022-11-23T01:08:15.1103627Z  #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+0x8718e64) 2022-11-23T01:08:15.1103887Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1104109Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1104389Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1104680Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1104870Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1105071Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1105328Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.1105539Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1106254Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1106493Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1106716Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1107105Z #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+0x6562cde) 2022-11-23T01:08:15.1107491Z #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+0x20cf997) 2022-11-23T01:08:15.1107709Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1107911Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1108695Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1108901Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1109112Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1109915Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1110184Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1110618Z #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+0xca56e8) 2022-11-23T01:08:15.1111006Z #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+0x2974180) 2022-11-23T01:08:15.1111249Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1112105Z #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+0x57a0418) 2022-11-23T01:08:15.1112320Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1112644Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1112825Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1113024Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1113279Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1113397Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1113518Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1113645Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1113798Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1114111Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1114259Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1114340Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1114359Z 2022-11-23T01:08:15.1114570Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2022-11-23T01:08:15.1114739Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1114864Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1115026Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1115233Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1115677Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1115951Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1116218Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1116485Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1117592Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1118221Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1118525Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1119594Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1119869Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1120056Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1120329Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1121467Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1121788Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1122841Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1123146Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1123417Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1124563Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1124889Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1126025Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1126361Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1126593Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1126892Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1128008Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1128318Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1129402Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1129696Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1129969Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1131100Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1131453Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1132553Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1132840Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1133057Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1133205Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1133846Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1134001Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1134198Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1134398Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1134659Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1134878Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1135264Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1135653Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1135870Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1136071Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1136823Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1137028Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1137233Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1137987Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1138213Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1138833Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1139280Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1139522Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1140391Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1140608Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1140905Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1141083Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1141288Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1141544Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1141662Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1141783Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1141908Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1142058Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1142406Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1142530Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1142610Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1142617Z 2022-11-23T01:08:15.1142843Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.1143011Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1143234Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1143553Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1143728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1144023Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1144207Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1144399Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1144809Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1145033Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1145220Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1145414Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1145971Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1146138Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1146364Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1147024Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1147259Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1148029Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1148210Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1148353Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1148927Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1149097Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1149247Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1149507Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1149688Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1149813Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1149938Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1150090Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1150405Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1150524Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1150619Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1150624Z 2022-11-23T01:08:15.1152304Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718e64) 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::' 2022-11-23T01:08:15.1152378Z ================== 2022-11-23T01:08:15.1197971Z ================== 2022-11-23T01:08:15.1198458Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1198756Z  Write of size 1 at 0x7b740003d819 by thread T3: 2022-11-23T01:08:15.1202683Z  #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+0x8718ed1) 2022-11-23T01:08:15.1203223Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1203657Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1204168Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1204702Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1205162Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1205381Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1205727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1205943Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1205955Z 2022-11-23T01:08:15.1206252Z  Previous write of size 1 at 0x7b740003d819 by main thread: 2022-11-23T01:08:15.1209966Z  #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+0x8718ed1) 2022-11-23T01:08:15.1210396Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1210766Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1211266Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1211760Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1212072Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1212398Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1212769Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.1213150Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1214453Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1214894Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1215287Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1215983Z #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+0x6562cde) 2022-11-23T01:08:15.1216698Z #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+0x20cf997) 2022-11-23T01:08:15.1217089Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1217460Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1218895Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1219298Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1219618Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1220892Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1221313Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1222075Z #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+0xca56e8) 2022-11-23T01:08:15.1222796Z #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+0x2974180) 2022-11-23T01:08:15.1223246Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1224913Z #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+0x57a0418) 2022-11-23T01:08:15.1225273Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1225791Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1226101Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1226465Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1226956Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1227141Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1227357Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1227627Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1227901Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1228490Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1228691Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1228864Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1228879Z 2022-11-23T01:08:15.1229267Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2022-11-23T01:08:15.1229439Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1229638Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1229803Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1230010Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1230457Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1230728Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1230993Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1231256Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1232373Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1233013Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1233359Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1234393Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1234685Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1234872Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1235140Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1236267Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1236576Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1237674Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1237948Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1238222Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1239392Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1239716Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1240802Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1241134Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1241327Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1241626Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1242720Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1243027Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1244114Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1244390Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1244684Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1245823Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1246143Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1247262Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1247562Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1247754Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1247889Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1248541Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1248721Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1248915Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1249115Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1249339Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1249558Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1249943Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1250342Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1250554Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1250756Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1251530Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1251736Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1251940Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1252651Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1252902Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1253332Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1253718Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1253962Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1254866Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1255077Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1255369Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1255542Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1255778Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1256033Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1256150Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1256271Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1256380Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1256527Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1256838Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1256957Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1257051Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1257056Z 2022-11-23T01:08:15.1257277Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.1257470Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1257694Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1258013Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1258184Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1258589Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1258825Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1259046Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1259460Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1259681Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1259868Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1260050Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1260614Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1260779Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1261005Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1261719Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1261932Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1262705Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1262924Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1263068Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1263644Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1263788Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1263937Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1264191Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1264306Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1264424Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1264546Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1264694Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1265005Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1265111Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1265203Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1265209Z 2022-11-23T01:08:15.1266910Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:15.1266993Z ================== 2022-11-23T01:08:15.1592324Z ================== 2022-11-23T01:08:15.1592741Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1593433Z  Write of size 1 at 0x7b740003edbe by thread T2: 2022-11-23T01:08:15.1597239Z  #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+0x871a635) 2022-11-23T01:08:15.1597922Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1598289Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1598755Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1599247Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1599724Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1599988Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1600365Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1600595Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1600605Z 2022-11-23T01:08:15.1601033Z  Previous write of size 1 at 0x7b740003edbe by main thread: 2022-11-23T01:08:15.1605027Z  #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+0x871a635) 2022-11-23T01:08:15.1605383Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1605716Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1606154Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1606696Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1607047Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1607377Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1607610Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:15.1607829Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1608573Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1609016Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1609261Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1609654Z #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+0x6562cde) 2022-11-23T01:08:15.1610172Z #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+0x20cf997) 2022-11-23T01:08:15.1610565Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1610931Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1611803Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1612008Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1612216Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1613157Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1613508Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1614142Z #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+0xca56e8) 2022-11-23T01:08:15.1614664Z #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+0x2974180) 2022-11-23T01:08:15.1614944Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1616169Z #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+0x57a0418) 2022-11-23T01:08:15.1616574Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1617023Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1617300Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1617609Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1617873Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1618035Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1618231Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1618428Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1618799Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1619222Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1619346Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1619441Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1619448Z 2022-11-23T01:08:15.1619766Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2022-11-23T01:08:15.1619944Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1620069Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1620233Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1620441Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1620888Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1621236Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1621502Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1621773Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1622839Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1623512Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1623821Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1624853Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1625174Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1625368Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1625641Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1626746Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1627083Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1628148Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1628430Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1628701Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1629920Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1630265Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1631387Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1631681Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1631876Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1632179Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1633320Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1633631Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1634702Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1635014Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1635286Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1636419Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1636756Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1637880Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1638171Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1638404Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1638553Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1639194Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1639370Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1639553Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1639760Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1639993Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1640216Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1640604Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1640996Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1641210Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1641433Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1642199Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1642406Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1642615Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1643353Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1643576Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1644006Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1644391Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1644633Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1645534Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1645746Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1646045Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1646222Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1646421Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1646664Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1646782Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1646908Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1647029Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1647206Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1647518Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1647636Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1647729Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1647735Z 2022-11-23T01:08:15.1647985Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.1648248Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1648560Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1649057Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1649327Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1649843Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1650075Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1650428Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1651207Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1651617Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1651958Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1652285Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1653310Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1653603Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1653994Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1655225Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1655657Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1657004Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1657335Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1657597Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1658817Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1659087Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1659368Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1659841Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1660045Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1660228Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1660440Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1660708Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1661358Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1661580Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1661738Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1661748Z 2022-11-23T01:08:15.1664812Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a635) 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::'lamb 2022-11-23T01:08:15.1665015Z ================== 2022-11-23T01:08:15.1665100Z ================== 2022-11-23T01:08:15.1665420Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1665798Z  Write of size 1 at 0x7b740003edbf by thread T2: 2022-11-23T01:08:15.1669833Z  #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+0x871a6ad) 2022-11-23T01:08:15.1670317Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1670734Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1671215Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1671704Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1672210Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1672470Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1672850Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1673079Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1673091Z 2022-11-23T01:08:15.1673420Z  Previous write of size 1 at 0x7b740003edbf by main thread: 2022-11-23T01:08:15.1677432Z  #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+0x871a6ad) 2022-11-23T01:08:15.1677911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1678320Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1678799Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1679335Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1679692Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1680059Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1680481Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:15.1680861Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1682216Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1682658Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1683064Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1683527Z #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+0x6562cde) 2022-11-23T01:08:15.1683980Z #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+0x20cf997) 2022-11-23T01:08:15.1684195Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1684398Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1685164Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1685375Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1685585Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1686298Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1686548Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1686974Z #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+0xca56e8) 2022-11-23T01:08:15.1687360Z #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+0x2974180) 2022-11-23T01:08:15.1687601Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1688453Z #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+0x57a0418) 2022-11-23T01:08:15.1688726Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1689020Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1689200Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1689389Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1689644Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1689762Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1689882Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1690005Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1690152Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1690467Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1690585Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1690676Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1690683Z 2022-11-23T01:08:15.1690913Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2022-11-23T01:08:15.1691079Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1691193Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1691380Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1691586Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1692034Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1692303Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1692568Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1692834Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1693941Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1694564Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1694870Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1695932Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1696208Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1696396Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1696665Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1697808Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1698115Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1699279Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1699623Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1699899Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1701032Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1701386Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1702493Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1702783Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1702976Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1703274Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1704422Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1704741Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1705810Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1706088Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1706358Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1707602Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1707981Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1709078Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1709396Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1709659Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1709812Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1710454Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1710610Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1710808Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1711057Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1711390Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1711710Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1712344Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1712986Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1713378Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1713746Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1715126Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1715542Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1715901Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1717167Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1717557Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1718330Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1719050Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1719469Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1721119Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1721486Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1721986Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1722344Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1722707Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1723155Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1723354Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1723554Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1723774Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1724035Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1724606Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1724819Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1724974Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1724983Z 2022-11-23T01:08:15.1725414Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.1725686Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1726093Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1726681Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1726982Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1727502Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1727778Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1728116Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1728914Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1729303Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1729646Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1730003Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1731000Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1731277Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1731737Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1732923Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1733314Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1734685Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1734998Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1735242Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1736283Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1736539Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1736862Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1737313Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1737529Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1737750Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1737953Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1738212Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1738856Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1739074Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1739244Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1739257Z 2022-11-23T01:08:15.1742432Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6ad) 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::'lamb 2022-11-23T01:08:15.1742637Z ================== 2022-11-23T01:08:15.1742875Z ================== 2022-11-23T01:08:15.1743183Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1743490Z  Write of size 1 at 0x7b740003edc6 by thread T2: 2022-11-23T01:08:15.1745872Z  #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+0x871a6f4) 2022-11-23T01:08:15.1746136Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1746406Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1746690Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1746985Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1747254Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1747399Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1747624Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1747793Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1747799Z 2022-11-23T01:08:15.1747990Z  Previous write of size 1 at 0x7b740003edc6 by main thread: 2022-11-23T01:08:15.1750223Z  #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+0x871a6f4) 2022-11-23T01:08:15.1750492Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1750718Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1751007Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1751299Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1751493Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1751727Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1751955Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:15.1752176Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1752892Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1753161Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1753381Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1753768Z #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+0x6562cde) 2022-11-23T01:08:15.1754154Z #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+0x20cf997) 2022-11-23T01:08:15.1754371Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1754574Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1755343Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1755552Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1755756Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1756495Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1756721Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1757152Z #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+0xca56e8) 2022-11-23T01:08:15.1757539Z #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+0x2974180) 2022-11-23T01:08:15.1757805Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1758665Z #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+0x57a0418) 2022-11-23T01:08:15.1758889Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1759187Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1759360Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1759550Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1759804Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1759920Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1760041Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1760162Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1760311Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1760649Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1760770Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1760866Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1760872Z 2022-11-23T01:08:15.1761097Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2022-11-23T01:08:15.1761252Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1761376Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1761537Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1761745Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1762190Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1762490Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1762755Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1763021Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1764102Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1764725Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1765059Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1766104Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1766416Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1766603Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1766878Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1768003Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1768314Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1769399Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1769677Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1769962Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1771097Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1771454Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1772556Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1772873Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1773068Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1773367Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1774460Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1774805Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1775849Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1776128Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1776397Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1777564Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1777889Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1779139Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1779430Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1779623Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1779775Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.1780419Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.1780575Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.1780771Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.1781021Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.1781259Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.1781480Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1781867Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.1782257Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.1782507Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1782707Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1783462Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1783669Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1783876Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1784590Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1784831Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1785259Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.1785681Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.1785923Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1786787Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.1787041Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1787336Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1787514Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1787712Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1787969Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1788085Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1788206Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1788329Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1788476Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1788789Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1788897Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1788991Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1788997Z 2022-11-23T01:08:15.1789221Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.1789390Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.1789697Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.1790022Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.1790197Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.1790529Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.1790687Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.1790879Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.1791290Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.1791514Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.1791705Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.1791899Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.1792486Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.1792652Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.1792880Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.1793542Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.1793753Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.1794524Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.1794705Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.1794849Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.1795449Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.1795600Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.1795751Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.1796007Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1796122Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1796243Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1796368Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1796553Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1796866Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1796985Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1797081Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1797086Z 2022-11-23T01:08:15.1798749Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a6f4) 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::'lamb 2022-11-23T01:08:15.1798821Z ================== 2022-11-23T01:08:15.1938001Z ================== 2022-11-23T01:08:15.1938669Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.1938980Z  Write of size 1 at 0x7b740003ec19 by thread T2: 2022-11-23T01:08:15.1943291Z  #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+0x871a761) 2022-11-23T01:08:15.1943751Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1944135Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1944615Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1945096Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1945616Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.1945849Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.1946227Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.1946464Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.1946474Z 2022-11-23T01:08:15.1946799Z  Previous write of size 1 at 0x7b740003ec19 by main thread: 2022-11-23T01:08:15.1950804Z  #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+0x871a761) 2022-11-23T01:08:15.1951251Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.1951645Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.1952184Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.1952704Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.1953035Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.1953375Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.1953769Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee1d2) 2022-11-23T01:08:15.1954129Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.1955397Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.1955804Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.1956188Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.1956855Z #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+0x6562cde) 2022-11-23T01:08:15.1957519Z #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+0x20cf997) 2022-11-23T01:08:15.1957890Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.1958229Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.1959544Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.1959896Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.1960246Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.1961457Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.1961881Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.1962641Z #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+0xca56e8) 2022-11-23T01:08:15.1963302Z #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+0x2974180) 2022-11-23T01:08:15.1963719Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.1965172Z #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+0x57a0418) 2022-11-23T01:08:15.1965538Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.1966028Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.1966337Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.1966740Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.1967205Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.1967413Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.1967619Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.1967832Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.1968168Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.1968759Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.1968976Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.1969143Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.1969157Z 2022-11-23T01:08:15.1969565Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2022-11-23T01:08:15.1969863Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.1970140Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.1970434Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.1970803Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.1971630Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.1972128Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.1972619Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.1973111Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.1975121Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.1976339Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.1976896Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.1978987Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.1979584Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.1979923Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.1980413Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.1982485Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.1983110Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1985111Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1985660Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1986154Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.1988295Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.1988895Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.1991117Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.1991662Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.1992016Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.1992560Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.1994680Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.1995261Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.1997241Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.1997793Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.1998290Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2000399Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2001034Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2003096Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2003628Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2003986Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2004249Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2005470Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2005752Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2006088Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2006449Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2006872Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2007272Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2007978Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2008725Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2009114Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2009476Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2010906Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2011273Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2011647Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2013012Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2013418Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2014208Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2014939Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2015382Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2017025Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2017403Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2017953Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2018267Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2018747Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2019222Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2019427Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2019639Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2019857Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2020108Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2020709Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2020920Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2021084Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2021094Z 2022-11-23T01:08:15.2021502Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.2021876Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2022271Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2022852Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2023174Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2023705Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2023984Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2024335Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2025157Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2025565Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2025900Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2026233Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2027281Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2027579Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2028003Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2029229Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2029682Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2031181Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2031501Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2031754Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2032825Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2033131Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2033402Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2033868Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2034070Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2034281Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2034495Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2034762Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2035351Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2035576Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2035733Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2035743Z 2022-11-23T01:08:15.2038963Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871a761) 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::'lamb 2022-11-23T01:08:15.2039089Z ================== 2022-11-23T01:08:15.2157658Z ================== 2022-11-23T01:08:15.2157993Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2158299Z  Write of size 2 at 0x7b8400016100 by thread T3: 2022-11-23T01:08:15.2162404Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:15.2162903Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2163384Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2163888Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2164201Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2164472Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2164618Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2164846Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2165042Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2165051Z 2022-11-23T01:08:15.2165366Z  Previous write of size 2 at 0x7b8400016100 by main thread: 2022-11-23T01:08:15.2169289Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:15.2169740Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2170110Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2170596Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2171105Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2171505Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2171867Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2172247Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2172631Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2174046Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:15.2174441Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.2174813Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2176095Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2176490Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2176876Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2178257Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.2178839Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.2180621Z #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+0x57a0418) 2022-11-23T01:08:15.2180973Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2181351Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.2181826Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2182038Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2182258Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2182462Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2182739Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2183178Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2183303Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2183398Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2183404Z 2022-11-23T01:08:15.2183637Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:15.2183807Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2183932Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2184094Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2184349Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2184794Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2185068Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2185337Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2185608Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2186706Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2187349Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2187654Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2188709Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2189004Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2189166Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:15.2189897Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:15.2190109Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:15.2190318Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:15.2191097Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.2191342Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.2192198Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2192411Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2192641Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.2192900Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2193019Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2193140Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2193261Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2193410Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2193722Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2193842Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2193938Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2193945Z 2022-11-23T01:08:15.2194164Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.2194346Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2194566Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2194884Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2195057Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2195353Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2195505Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2195700Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2196105Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2196328Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2196514Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2196706Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2197259Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2197424Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2197651Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2198339Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2198551Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2199334Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2199594Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2199816Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2200736Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2200975Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2201206Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2201623Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2202221Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2202630Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2203053Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2203542Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2204297Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2205012Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2205393Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2205604Z 2022-11-23T01:08:15.2208486Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2210148Z ================== 2022-11-23T01:08:15.2210460Z ================== 2022-11-23T01:08:15.2210894Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2211406Z  Write of size 2 at 0x7b8400016104 by thread T3: 2022-11-23T01:08:15.2215332Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:15.2218100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2219042Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2219988Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2220922Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2221837Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2222628Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2223316Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2223964Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2224274Z 2022-11-23T01:08:15.2224773Z  Previous write of size 2 at 0x7b8400016104 by main thread: 2022-11-23T01:08:15.2228811Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:15.2230591Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2231065Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2231583Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2232161Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2232644Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2233047Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2233495Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2233933Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2234952Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41877) 2022-11-23T01:08:15.2235959Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.2236382Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2237345Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2238259Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2238723Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2239712Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.2240697Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.2241799Z #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+0x57a0418) 2022-11-23T01:08:15.2242816Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2243238Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.2243707Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2244071Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2244356Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2244620Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2244908Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2245378Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2245815Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2246049Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2246177Z 2022-11-23T01:08:15.2246407Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2022-11-23T01:08:15.2246725Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2246987Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2247294Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2247681Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2248374Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2249302Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2250053Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2250578Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2251935Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2253737Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2254644Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2255983Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2257392Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2257852Z #13 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x18e3a19) 2022-11-23T01:08:15.2258802Z #14 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e7ac94) 2022-11-23T01:08:15.2259619Z #15 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x226abf2) 2022-11-23T01:08:15.2260005Z #16 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x18218f6) 2022-11-23T01:08:15.2261019Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e33a97) 2022-11-23T01:08:15.2262050Z #18 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897a67) 2022-11-23T01:08:15.2263165Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2264201Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2264624Z #21 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d11f5) 2022-11-23T01:08:15.2265132Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2265498Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2265755Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2266019Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2266297Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2266778Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2267216Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2267448Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2267579Z 2022-11-23T01:08:15.2267804Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.2268129Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2268492Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2269045Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2269618Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2270109Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2270552Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2270920Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2271544Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2272046Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2272497Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2272881Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2273654Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2274358Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2274771Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2275670Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2276549Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2277555Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2278475Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2278812Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2279559Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2280270Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2280593Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2281022Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2281419Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2281683Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2281945Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2282229Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2282714Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2283153Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2283388Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2283517Z 2022-11-23T01:08:15.2285183Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2286240Z ================== 2022-11-23T01:08:15.2294940Z ================== 2022-11-23T01:08:15.2295387Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2295941Z  Write of size 2 at 0x7b8400019cfc by thread T1: 2022-11-23T01:08:15.2300435Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:15.2303133Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2303907Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2304972Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2305761Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2306635Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2307385Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2308052Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2308729Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2309033Z 2022-11-23T01:08:15.2309405Z  Previous write of size 2 at 0x7b8400019cfc by main thread: 2022-11-23T01:08:15.2312133Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:15.2314587Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2315471Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2316413Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2317220Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2317705Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2318116Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2318601Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2319049Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2319985Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.2320915Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.2321417Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2322033Z #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+0x6562cde) 2022-11-23T01:08:15.2322800Z #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+0x20cf997) 2022-11-23T01:08:15.2323398Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2323832Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2325080Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2326576Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2327348Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2329125Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2330107Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2330774Z #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+0xca56e8) 2022-11-23T01:08:15.2331587Z #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+0x2974180) 2022-11-23T01:08:15.2332248Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2333355Z #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+0x57a0418) 2022-11-23T01:08:15.2334384Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2334900Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2335375Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2335764Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2336223Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2336604Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2336861Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2337120Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2337395Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2337872Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2338359Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2338747Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2338880Z 2022-11-23T01:08:15.2339127Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2022-11-23T01:08:15.2339454Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2339717Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2340022Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2340409Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2341077Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2341766Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2342337Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2342868Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2344222Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2345980Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2346880Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2348244Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2349704Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2350188Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.2350658Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.2352066Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.2353537Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2355108Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2357303Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2358174Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2360441Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2363042Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2365362Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2367671Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2368537Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2369368Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.2371646Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.2374224Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2376593Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2379184Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2379998Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2382376Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2385127Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2387299Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2388813Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2389298Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2389734Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2390549Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2391330Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2391684Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2392093Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2392574Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2393035Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2393648Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2394417Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2395021Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2395431Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2396422Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2397365Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2397778Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2398706Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2399630Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2400282Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2401118Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2401749Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2402878Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2403942Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2404458Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2404925Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2405312Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2405784Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2406167Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2406413Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2406674Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2406968Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2407453Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2407892Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2408113Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2408241Z 2022-11-23T01:08:15.2408488Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.2408827Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2409178Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2409731Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2410231Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2410717Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2411220Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2411588Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2412194Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2412687Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2413107Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2413502Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2414271Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2415002Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2415398Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2416568Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2417914Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2419550Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2420903Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2421403Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2422473Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2423408Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2423847Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2424443Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2425006Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2425356Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2425736Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2426146Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2426931Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2427838Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2428229Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2428454Z 2022-11-23T01:08:15.2431311Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2432724Z ================== 2022-11-23T01:08:15.2433073Z ================== 2022-11-23T01:08:15.2433365Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2433771Z  Write of size 2 at 0x7b8400019d04 by thread T1: 2022-11-23T01:08:15.2437158Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:15.2440101Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2440978Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2441871Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2442923Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2443915Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2444709Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2445385Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2446149Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2446417Z 2022-11-23T01:08:15.2446777Z  Previous write of size 2 at 0x7b8400019d04 by main thread: 2022-11-23T01:08:15.2449946Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:15.2451578Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2452058Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2452569Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2453277Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2453754Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2454164Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2454609Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2455065Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2456009Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.2456961Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.2457422Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2458073Z #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+0x6562cde) 2022-11-23T01:08:15.2459062Z #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+0x20cf997) 2022-11-23T01:08:15.2459664Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2460092Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2461056Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2462042Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2462467Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2463404Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2464310Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2465007Z #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+0xca56e8) 2022-11-23T01:08:15.2465804Z #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+0x2974180) 2022-11-23T01:08:15.2466427Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2467536Z #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+0x57a0418) 2022-11-23T01:08:15.2468571Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2469089Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2469629Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2470007Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2470476Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2470888Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2471149Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2471397Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2471691Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2472175Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2472620Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2472843Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2472973Z 2022-11-23T01:08:15.2473208Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2022-11-23T01:08:15.2473545Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2473801Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2474112Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2474500Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2485369Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2486617Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2487566Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2488504Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2490925Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2494173Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2495805Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2498230Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2500929Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2501754Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.2502593Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.2505061Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.2507703Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2510377Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2512887Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2513964Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2516477Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2517983Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2519435Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2520897Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2521379Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2521886Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.2523284Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.2524795Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2526174Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2527586Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2528161Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2529569Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2531123Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2532537Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2533976Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2534457Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2534799Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2535634Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2536406Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2536773Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2537184Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2537631Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2538091Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2538808Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2539631Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2540214Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2540638Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2541605Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2542529Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2542951Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2544293Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2545882Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2546931Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2548233Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2549195Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2551031Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2552716Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2553553Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2554317Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2554920Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2555649Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2556237Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2556652Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2557064Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2557531Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2558322Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2559026Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2559391Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2559601Z 2022-11-23T01:08:15.2559997Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.2560536Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2561128Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2562046Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2562859Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2563638Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2564323Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2564834Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2565780Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2566503Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2567231Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2567861Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2569102Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2570200Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2570822Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2572297Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2573829Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2575307Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2576230Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2576565Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2577303Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2578006Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2578311Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2578872Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2579311Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2579567Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2579817Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2580108Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2580590Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2581033Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2581254Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2581384Z 2022-11-23T01:08:15.2583072Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2584119Z ================== 2022-11-23T01:08:15.2584271Z ================== 2022-11-23T01:08:15.2584538Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2584857Z  Write of size 2 at 0x7b8400019d06 by thread T1: 2022-11-23T01:08:15.2587175Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:15.2588809Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2589294Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2589911Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2590484Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2591051Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2591469Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2591843Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2592211Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2592376Z 2022-11-23T01:08:15.2592567Z  Previous write of size 2 at 0x7b8400019d06 by main thread: 2022-11-23T01:08:15.2594863Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:15.2596538Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2597021Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2597515Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2598090Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2598575Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2598983Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2599474Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2599922Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2600859Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.2601788Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.2602250Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2602859Z #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+0x6562cde) 2022-11-23T01:08:15.2603631Z #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+0x20cf997) 2022-11-23T01:08:15.2604222Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2604640Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2605625Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2606550Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2606963Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2607892Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2608820Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2609480Z #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+0xca56e8) 2022-11-23T01:08:15.2610293Z #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+0x2974180) 2022-11-23T01:08:15.2610914Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2612018Z #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+0x57a0418) 2022-11-23T01:08:15.2613040Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2613569Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2614046Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2614432Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2614898Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2615275Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2615517Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2615780Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2616069Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2616541Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2617005Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2617236Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2617363Z 2022-11-23T01:08:15.2617590Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2022-11-23T01:08:15.2617910Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2618169Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2618606Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2618998Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2619658Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2620369Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2620899Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2621440Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2622856Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2624603Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2625526Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2626904Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2628288Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2628740Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.2629207Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.2630702Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.2632179Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2633573Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2634993Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2635540Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2636972Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2638480Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2639937Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2641375Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2641879Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2642378Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.2643773Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.2645458Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2646862Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2648282Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2648833Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2650233Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2650593Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2651690Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2651981Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2652201Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2652348Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2652989Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2653145Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2653341Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2653542Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2653800Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2654018Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2654403Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2654791Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2655010Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2655208Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2655970Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2656176Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2656382Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2657121Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2657350Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2657774Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2658157Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2658425Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2659378Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2659606Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2659903Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2660066Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2660266Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2660521Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2660634Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2660755Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2660876Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2661024Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2661375Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2661496Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2661591Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2661597Z 2022-11-23T01:08:15.2661823Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.2661978Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2662199Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2662519Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2662695Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2662990Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2663177Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2663369Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2663779Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2664000Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2664185Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2664381Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2664935Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2665099Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2665325Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2665982Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2666230Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2667012Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2667190Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2667334Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2667908Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2668085Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2668235Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2668494Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2668608Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2668715Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2668837Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2668985Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2669298Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2669415Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2669506Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2669512Z 2022-11-23T01:08:15.2671260Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2671332Z ================== 2022-11-23T01:08:15.2671398Z ================== 2022-11-23T01:08:15.2671595Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2671773Z  Write of size 2 at 0x7b8400019d18 by thread T1: 2022-11-23T01:08:15.2673933Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:15.2674221Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2674445Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2674727Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2675016Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2675280Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2675421Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2675648Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2675786Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2675791Z 2022-11-23T01:08:15.2675978Z  Previous write of size 2 at 0x7b8400019d18 by main thread: 2022-11-23T01:08:15.2678166Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:15.2678428Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2678649Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2678929Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2679248Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2679440Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2679641Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2679869Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2680080Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2680792Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.2681042Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.2681301Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2681933Z #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+0x6562cde) 2022-11-23T01:08:15.2682680Z #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+0x20cf997) 2022-11-23T01:08:15.2683059Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2683419Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2684828Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2685231Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2685607Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2686950Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2687351Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2688135Z #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+0xca56e8) 2022-11-23T01:08:15.2688864Z #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+0x2974180) 2022-11-23T01:08:15.2689313Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2690949Z #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+0x57a0418) 2022-11-23T01:08:15.2691344Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2691884Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2692189Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2692547Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2693005Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2693248Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2693453Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2693670Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2693938Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2694507Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2694718Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2694877Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2694887Z 2022-11-23T01:08:15.2695295Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2022-11-23T01:08:15.2695600Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2695820Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2696108Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2696465Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2697279Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2697759Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2698254Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2698899Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2700982Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2702147Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2702767Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2704684Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2705184Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2705530Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.2706024Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.2708231Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.2708801Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2710926Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2711428Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2711912Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2714086Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2714690Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2716731Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2717293Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2717644Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2718194Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.2720255Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.2720817Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2722854Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2723359Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2723883Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2725995Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2726581Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2728668Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2729207Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2729563Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2729825Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2730993Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2731296Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2731658Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2732031Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2732462Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2732849Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2733549Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2734270Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2734663Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2735026Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2736444Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2736829Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2737200Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2738654Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2739136Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2739927Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2740628Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2741060Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2742677Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2743060Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2743612Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2743930Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2744296Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2744808Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2745012Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2745228Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2745440Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2745704Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2746300Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2746514Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2746681Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2746692Z 2022-11-23T01:08:15.2747079Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.2747370Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2747762Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2748387Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2748701Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2749238Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2749511Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2749923Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2750696Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2751098Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2751437Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2751784Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2752794Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2753093Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2753507Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2754767Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2755147Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2756611Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2756964Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2757216Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2758308Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2758576Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2758836Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2759275Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2759474Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2759687Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2759899Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2760178Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2760765Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2760984Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2761142Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2761152Z 2022-11-23T01:08:15.2764384Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2764501Z ================== 2022-11-23T01:08:15.2764615Z ================== 2022-11-23T01:08:15.2764926Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2765241Z  Write of size 2 at 0x7b8400019d1a by thread T1: 2022-11-23T01:08:15.2769356Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:15.2769876Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2770280Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2770796Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2771318Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2771803Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2772057Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2772473Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2772718Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2772727Z 2022-11-23T01:08:15.2773063Z  Previous write of size 2 at 0x7b8400019d1a by main thread: 2022-11-23T01:08:15.2777235Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:15.2777745Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2778141Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2778766Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2779286Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2779653Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2780029Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2780448Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:15.2780825Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.2782147Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.2782585Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.2783059Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2783755Z #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+0x6562cde) 2022-11-23T01:08:15.2784475Z #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+0x20cf997) 2022-11-23T01:08:15.2784883Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2785240Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2786631Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2787055Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2787430Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2788741Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2789141Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2790021Z #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+0xca56e8) 2022-11-23T01:08:15.2790719Z #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+0x2974180) 2022-11-23T01:08:15.2791195Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2792841Z #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+0x57a0418) 2022-11-23T01:08:15.2793214Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2793784Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2794104Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2794472Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2794947Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2795137Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2795341Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2795549Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2795812Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2796393Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2796613Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2796780Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2796791Z 2022-11-23T01:08:15.2797202Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2022-11-23T01:08:15.2797504Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.2797720Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.2797989Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.2798355Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.2799179Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.2799710Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.2800184Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.2800659Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.2802695Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.2803895Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.2804477Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.2806399Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.2806933Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.2807268Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.2807755Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.2809849Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.2810438Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2812445Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2812954Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2813447Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2815588Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2816194Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2818231Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2818914Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2819269Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2819808Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.2821955Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.2822516Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.2824515Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.2825075Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.2825574Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.2827668Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.2828274Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.2830443Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.2830985Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.2831382Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.2831638Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.2832825Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.2833096Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.2833457Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.2833815Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.2834231Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.2834624Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.2835337Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.2836059Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.2836436Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.2836823Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.2838234Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.2838599Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.2838968Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.2840303Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.2840747Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.2841524Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.2842233Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.2842676Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.2844257Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.2844685Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.2845223Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.2845536Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.2845889Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.2846348Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2846545Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2846756Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2846976Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2847246Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2847868Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2848073Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2848222Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2848247Z 2022-11-23T01:08:15.2848628Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.2848919Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.2849317Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.2849899Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.2850214Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.2850735Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.2851006Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.2851347Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.2852130Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.2852538Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.2852866Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.2853202Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.2854271Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.2854567Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.2854983Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.2856197Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.2856622Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.2858054Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.2858369Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.2858741Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.2859844Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.2860103Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.2860350Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.2860814Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.2861013Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.2861219Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.2861430Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.2861700Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.2862288Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.2862583Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.2862745Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.2862755Z 2022-11-23T01:08:15.2865930Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:15.2866102Z ================== 2022-11-23T01:08:15.2984135Z ================== 2022-11-23T01:08:15.2984639Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.2984960Z  Write of size 4 at 0x7b940004c9f8 by thread T3: 2022-11-23T01:08:15.2988726Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:15.2989215Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2989661Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2990157Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2990697Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2991349Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.2991613Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.2992015Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.2992243Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.2992255Z 2022-11-23T01:08:15.2992604Z  Previous write of size 4 at 0x7b940004c9f8 by main thread: 2022-11-23T01:08:15.2996599Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c2f8) 2022-11-23T01:08:15.2997135Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.2997526Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.2998100Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.2998604Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.2998940Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.2999267Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.2999685Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:15.3000068Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.3001414Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.3001855Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.3002254Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3002870Z #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+0x6562cde) 2022-11-23T01:08:15.3003568Z #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+0x20cf997) 2022-11-23T01:08:15.3003985Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3004351Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3005739Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3006095Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3006475Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3007781Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3008177Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3009001Z #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+0xca56e8) 2022-11-23T01:08:15.3009728Z #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+0x2974180) 2022-11-23T01:08:15.3010149Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3011754Z #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+0x57a0418) 2022-11-23T01:08:15.3012067Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3012366Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3012541Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3012739Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3012993Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3013105Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3013225Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3013348Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3013486Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3013800Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3013919Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3014011Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3014017Z 2022-11-23T01:08:15.3014248Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2022-11-23T01:08:15.3014414Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.3014537Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.3014697Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.3014936Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.3015377Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.3015644Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.3015905Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.3016175Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.3017269Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.3017908Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.3018212Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.3019904Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.3020199Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.3020387Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.3020659Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.3021756Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.3022097Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3023179Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3023483Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3023755Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3024890Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3025251Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3026337Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3026639Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3026821Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3027115Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.3028251Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.3028563Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3029733Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3030015Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3030283Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3031495Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3031819Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3032932Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3033245Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3033442Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3033589Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.3034226Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.3034379Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.3034577Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.3034778Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.3035014Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.3035232Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3035620Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.3036038Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.3036256Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3036456Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3037200Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3037430Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3037634Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3038348Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3038574Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3039005Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.3039402Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.3039644Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3040529Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.3040743Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3041040Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3041213Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3041411Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3041692Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3041838Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3042018Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3042193Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3042416Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3042964Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3043169Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3043349Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3043358Z 2022-11-23T01:08:15.3043748Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.3044043Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.3044450Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.3045024Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.3045346Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.3045876Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.3046132Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.3046475Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.3047224Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.3047673Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.3048000Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.3048338Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.3049391Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.3049665Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.3050074Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.3051336Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.3051722Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.3053106Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.3053435Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.3053699Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.3054747Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.3055011Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.3055269Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.3055775Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3055986Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3056202Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3056425Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3056668Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3057233Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3057444Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3057596Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3057607Z 2022-11-23T01:08:15.3060791Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c2f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:15.3060986Z ================== 2022-11-23T01:08:15.3061167Z ================== 2022-11-23T01:08:15.3061469Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.3061776Z  Write of size 4 at 0x7b940004ca00 by thread T3: 2022-11-23T01:08:15.3065685Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:15.3066170Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3066576Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3067127Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3067669Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3068144Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.3068403Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.3068777Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.3069012Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.3069019Z 2022-11-23T01:08:15.3069354Z  Previous write of size 4 at 0x7b940004ca00 by main thread: 2022-11-23T01:08:15.3073431Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c358) 2022-11-23T01:08:15.3073697Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3073922Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3074208Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3074500Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3074696Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.3074901Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.3075164Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:15.3075380Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.3076094Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.3076345Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.3076585Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3076983Z #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+0x6562cde) 2022-11-23T01:08:15.3077375Z #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+0x20cf997) 2022-11-23T01:08:15.3077587Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3077789Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3078539Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3078741Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3078946Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3079680Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3079907Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3080340Z #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+0xca56e8) 2022-11-23T01:08:15.3080726Z #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+0x2974180) 2022-11-23T01:08:15.3081003Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3081878Z #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+0x57a0418) 2022-11-23T01:08:15.3082091Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3082383Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3082557Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3082758Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3083011Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3083128Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3083234Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3083353Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3083500Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3083810Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3083954Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3084047Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3084053Z 2022-11-23T01:08:15.3084276Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2022-11-23T01:08:15.3084443Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.3084567Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.3084728Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.3084921Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.3085378Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.3085650Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.3085943Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.3086206Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.3087278Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.3087919Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.3088224Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.3089276Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.3089553Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.3089767Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.3090035Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.3091155Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.3091463Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3092551Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3092837Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3093106Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3094228Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3094594Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3095686Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3095974Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3096193Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3096491Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.3097608Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.3097955Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3099118Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3099417Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3099690Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3101196Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3101654Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3103464Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3103999Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3104313Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3104572Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.3105622Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.3105884Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.3106228Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.3106600Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.3107075Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.3107486Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3108158Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.3108822Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.3109159Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3109621Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3111119Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3111481Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3111880Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3112922Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3113245Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3113904Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.3114546Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.3114838Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3116140Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.3116566Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3117016Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3117301Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3117619Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3118045Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3118234Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3118401Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3118590Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3118816Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3119289Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3119453Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3119596Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3119606Z 2022-11-23T01:08:15.3119971Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.3120250Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.3120608Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.3121090Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.3121381Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.3121916Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.3122167Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.3122461Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.3123127Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.3123498Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.3123818Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.3124129Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.3124925Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.3125245Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.3125559Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.3126409Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.3126750Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.3127917Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.3128106Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.3128275Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.3129030Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.3129183Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.3129391Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.3129780Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3129963Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3130164Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3130361Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3130603Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3131081Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3131336Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3131458Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3131467Z 2022-11-23T01:08:15.3134150Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c358) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:15.3134259Z ================== 2022-11-23T01:08:15.3134348Z ================== 2022-11-23T01:08:15.3134609Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.3134888Z  Write of size 4 at 0x7b940004ca04 by thread T3: 2022-11-23T01:08:15.3138362Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:15.3140222Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3140568Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3141014Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3141471Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3141878Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.3142150Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.3142496Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.3142710Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.3142720Z 2022-11-23T01:08:15.3143003Z  Previous write of size 4 at 0x7b940004ca04 by main thread: 2022-11-23T01:08:15.3146355Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c37b) 2022-11-23T01:08:15.3146626Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3146920Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3147451Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3147904Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3148266Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.3148568Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.3148931Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:15.3149268Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.3150424Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.3150792Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.3151143Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3151753Z #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+0x6562cde) 2022-11-23T01:08:15.3152370Z #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+0x20cf997) 2022-11-23T01:08:15.3152687Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3153001Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3154167Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3154543Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3154852Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3156046Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3156388Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3157039Z #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+0xca56e8) 2022-11-23T01:08:15.3157646Z #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+0x2974180) 2022-11-23T01:08:15.3158030Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3159369Z #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+0x57a0418) 2022-11-23T01:08:15.3159691Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3160141Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3160413Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3160728Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3161127Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3161345Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3161539Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3161728Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3161940Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3162254Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3162375Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3162523Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3162530Z 2022-11-23T01:08:15.3162775Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2022-11-23T01:08:15.3162947Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.3163075Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.3163262Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.3163485Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.3164037Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.3164457Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.3164893Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.3165275Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.3166867Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.3167907Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.3168475Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.3170266Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.3170731Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.3171045Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.3171498Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.3173483Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.3174056Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3175980Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3176542Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3177052Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3179361Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3179980Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3182084Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3182637Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3182981Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3183541Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.3185577Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.3186150Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3188328Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3188853Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3189382Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3191477Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3192098Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3194113Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3194653Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3195011Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3195284Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.3196395Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.3196554Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.3196780Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.3196981Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.3197218Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.3197438Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3197829Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.3198217Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.3198434Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3198635Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3199387Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3199610Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3199813Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3200529Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3200781Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3201209Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.3201621Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.3201863Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3202717Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.3202930Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3203224Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3203401Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3203599Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3203850Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3203965Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3204086Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3204206Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3204355Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3204666Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3204788Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3204881Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3204888Z 2022-11-23T01:08:15.3205136Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.3205292Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.3205544Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.3205865Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.3206080Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.3206373Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.3206525Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.3206720Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.3207130Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.3207351Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.3207536Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.3207727Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.3208286Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.3208451Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.3208679Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.3209343Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.3209552Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.3210367Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.3210545Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.3210716Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.3211291Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.3211439Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.3211591Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.3211843Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3211948Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3212067Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3212186Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3212334Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3212645Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3212763Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3212854Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3212860Z 2022-11-23T01:08:15.3214522Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c37b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:15.3214593Z ================== 2022-11-23T01:08:15.3214751Z ================== 2022-11-23T01:08:15.3214905Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.3215081Z  Write of size 4 at 0x7b940004ca08 by thread T3: 2022-11-23T01:08:15.3217260Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:15.3217565Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3217788Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3218073Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3218362Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3218741Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.3218881Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.3219105Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.3219231Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.3219250Z 2022-11-23T01:08:15.3219427Z  Previous write of size 4 at 0x7b940004ca08 by main thread: 2022-11-23T01:08:15.3221643Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c39f) 2022-11-23T01:08:15.3221905Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3222166Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3222446Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3222737Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3222932Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.3223133Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.3223367Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:15.3223655Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.3224769Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.3225212Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.3225602Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3226317Z #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+0x6562cde) 2022-11-23T01:08:15.3227171Z #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+0x20cf997) 2022-11-23T01:08:15.3227554Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3227929Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3229351Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3229809Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3230322Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3231582Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3231974Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3232773Z #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+0xca56e8) 2022-11-23T01:08:15.3233456Z #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+0x2974180) 2022-11-23T01:08:15.3233872Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3235455Z #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+0x57a0418) 2022-11-23T01:08:15.3235844Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3236429Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3236727Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3237125Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3237601Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3237792Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3237991Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3238206Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3238473Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3239045Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3239261Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3239428Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3239441Z 2022-11-23T01:08:15.3239805Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2022-11-23T01:08:15.3240103Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.3240331Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.3240625Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.3241007Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.3241757Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.3242262Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.3242747Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.3243208Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.3245191Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.3246367Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.3246923Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.3248824Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.3249300Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.3249634Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.3250107Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.3252164Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.3252816Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3254612Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3254911Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3255180Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3256313Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3256633Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3257772Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3258081Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3258275Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3258702Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.3259797Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.3260119Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3261228Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3261540Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3261809Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3262958Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3263275Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3264380Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3264671Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3264899Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3265047Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.3265683Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.3265861Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.3266055Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.3266255Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.3266488Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.3266707Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3267098Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.3267487Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.3267705Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3267906Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3268660Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3268864Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3269071Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3269873Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3270152Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3270581Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.3270965Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.3271209Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3272077Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.3272292Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3272593Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3272775Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3272978Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3273237Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3273353Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3273476Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3273597Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3273747Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3274095Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3274202Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3274299Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3274331Z 2022-11-23T01:08:15.3274563Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.3274732Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.3274954Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.3275271Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.3275448Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.3275746Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.3275902Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.3276096Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.3276503Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.3276727Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.3276916Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.3277107Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.3277665Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.3277832Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.3278061Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.3278722Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.3278961Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.3279728Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.3279933Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.3280078Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.3280654Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.3280804Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.3280954Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.3281211Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3281327Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3281447Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3281568Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3281718Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3282034Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3282153Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3282245Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3282250Z 2022-11-23T01:08:15.3283920Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c39f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:15.3283991Z ================== 2022-11-23T01:08:15.3284124Z ================== 2022-11-23T01:08:15.3284327Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.3284505Z  Write of size 4 at 0x7b940004ca0c by thread T3: 2022-11-23T01:08:15.3286647Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:15.3286950Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3287171Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3287455Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3287743Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3288007Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.3288145Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.3288375Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.3288511Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.3288518Z 2022-11-23T01:08:15.3288704Z  Previous write of size 4 at 0x7b940004ca0c by main thread: 2022-11-23T01:08:15.3290874Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871c3c3) 2022-11-23T01:08:15.3291172Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.3291394Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.3291674Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.3291967Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.3292157Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.3292344Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.3292574Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3e4) 2022-11-23T01:08:15.3292783Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.3294874Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.3295131Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.3295359Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3295745Z #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+0x6562cde) 2022-11-23T01:08:15.3296166Z #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+0x20cf997) 2022-11-23T01:08:15.3296382Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3296635Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3297388Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3297592Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3297799Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3298636Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3298868Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3299311Z #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+0xca56e8) 2022-11-23T01:08:15.3299742Z #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+0x2974180) 2022-11-23T01:08:15.3299986Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3300849Z #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+0x57a0418) 2022-11-23T01:08:15.3301098Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3301390Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3301564Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3301766Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3302022Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3302138Z #30 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3302258Z #31 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3302378Z #32 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3302514Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3302826Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3302945Z #35 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3303040Z #36 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3303047Z 2022-11-23T01:08:15.3303287Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2022-11-23T01:08:15.3303456Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.3303579Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.3303741Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.3303945Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.3304423Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.3304693Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.3304958Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.3305224Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.3306296Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.3306955Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.3307259Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.3308316Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.3308607Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.3308795Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.3309064Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.3310230Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.3310572Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3311651Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3311927Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3312194Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3313363Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3313686Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3314798Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3315099Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3315294Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3315590Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.3316717Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.3317024Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.3318082Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.3318391Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.3318658Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.3319775Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.3320133Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.3321231Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.3321545Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.3321736Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.3321883Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.3322535Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.3322689Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.3322882Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.3323073Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.3323306Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.3323523Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.3323909Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.3324295Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.3324549Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.3324741Z #46 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1825770) 2022-11-23T01:08:15.3325503Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2e342ad) 2022-11-23T01:08:15.3325707Z #48 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897084) 2022-11-23T01:08:15.3325939Z #49 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x182190a) 2022-11-23T01:08:15.3326650Z #50 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2e33b69) 2022-11-23T01:08:15.3326876Z #51 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:15.3327300Z #52 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:15.3327686Z #53 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2974180) 2022-11-23T01:08:15.3327925Z #54 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2897aa8) 2022-11-23T01:08:15.3328825Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x57a0418) 2022-11-23T01:08:15.3329038Z #56 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x28976fd) 2022-11-23T01:08:15.3329333Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e7ee1) 2022-11-23T01:08:15.3329506Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.3329705Z #59 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d144e) 2022-11-23T01:08:15.3329960Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3330064Z #61 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3330213Z #62 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3330332Z #63 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3330478Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3330789Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3330908Z #66 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3331000Z #67 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3331006Z 2022-11-23T01:08:15.3331224Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.3331391Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.3331609Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.3331927Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.3332099Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.3332395Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.3332537Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.3332729Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.3333136Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.3333357Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.3333541Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.3333731Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.3334318Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.3334485Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.3334710Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.3335369Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.3335629Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.3336398Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.3336578Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.3336721Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.3337298Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.3337443Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.3337594Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.3337848Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.3337962Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.3338080Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.3338188Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.3338368Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.3338771Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.3338894Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.3338987Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.3338993Z 2022-11-23T01:08:15.3340662Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871c3c3) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda4'()::operator 2022-11-23T01:08:15.3340781Z ================== 2022-11-23T01:08:15.6119005Z [ OK ] LazyOpsTest.TestMultiIndexPutMiddleBroadcast (626 ms) 2022-11-23T01:08:15.6119267Z [ RUN ] LazyOpsTest.TestMultiIndexPutTailBroadcast 2022-11-23T01:08:15.6352146Z [ OK ] LazyOpsTest.TestMultiIndexPutTailBroadcast (23 ms) 2022-11-23T01:08:15.6352443Z [ RUN ] LazyOpsTest.TestMaskIndexPut 2022-11-23T01:08:15.6648573Z [ OK ] LazyOpsTest.TestMaskIndexPut (29 ms) 2022-11-23T01:08:15.6648889Z [ RUN ] LazyOpsTest.TestIndexPutImpl 2022-11-23T01:08:15.6908589Z ================== 2022-11-23T01:08:15.6909051Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.6909351Z  Write of size 4 at 0x7b9400058b58 by thread T1: 2022-11-23T01:08:15.6914000Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.6914462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.6915126Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.6915616Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.6916142Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.6916578Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.6916820Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.6917192Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.6917484Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.6917497Z 2022-11-23T01:08:15.6917840Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2022-11-23T01:08:15.6921547Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.6921927Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.6922230Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.6922647Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.6923184Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.6923543Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.6923927Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.6924293Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.6924634Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.6925762Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.6926197Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.6926547Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.6927197Z #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+0x6562cde) 2022-11-23T01:08:15.6927850Z #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+0x20cf997) 2022-11-23T01:08:15.6928242Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.6928624Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.6930065Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.6930472Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.6930952Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.6932388Z #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+0x3374cd0) 2022-11-23T01:08:15.6932823Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.6934200Z #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+0x6234d5e) 2022-11-23T01:08:15.6934632Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.6936057Z #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+0x503a5d4) 2022-11-23T01:08:15.6936452Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.6936899Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.6937188Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.6937454Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.6937980Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.6938240Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.6938439Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.6938782Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.6939079Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.6939578Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.6939700Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.6939794Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.6939801Z 2022-11-23T01:08:15.6940063Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.6940233Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.6940361Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.6940523Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.6940732Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.6941257Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.6941528Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.6941793Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.6942059Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.6943131Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.6943815Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.6944121Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.6945148Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.6945450Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.6945635Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.6945908Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.6947024Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.6947332Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.6948444Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.6948722Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.6949018Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.6950211Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.6950553Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.6951694Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.6951985Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.6952177Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.6952477Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.6953577Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.6953910Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.6954975Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.6955249Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.6955543Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.6956662Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.6957034Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.6958115Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.6958404Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.6958598Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.6958747Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.6959416Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.6959572Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.6959768Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.6959968Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.6960198Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.6960416Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.6960804Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.6961215Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.6961429Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.6961645Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.6962463Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.6962688Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.6962935Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.6963796Z #50 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+0x3374cd0) 2022-11-23T01:08:15.6964044Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.6964895Z #52 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+0x6234d5e) 2022-11-23T01:08:15.6965175Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.6966030Z #54 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+0x503a5d4) 2022-11-23T01:08:15.6966247Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.6966508Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.6966681Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.6966847Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.6967101Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.6967217Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.6967336Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.6967458Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.6967595Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.6967906Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.6968023Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.6968143Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.6968150Z 2022-11-23T01:08:15.6968374Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.6968539Z [1m #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.6968762Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.6969080Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.6969251Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.6969550Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.6969701Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.6969919Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.6970328Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.6970546Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.6970732Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.6970924Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.6971477Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.6971641Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.6971866Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.6972585Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.6972917Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.6974247Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.6974550Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.6974695Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.6975271Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.6975449Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.6975603Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.6975858Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.6975974Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.6976092Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.6976216Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.6976362Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.6976673Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.6976814Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.6976906Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.6976912Z 2022-11-23T01:08:15.6978976Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.6979147Z ================== 2022-11-23T01:08:15.6979213Z ================== 2022-11-23T01:08:15.6979454Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.6979635Z  Write of size 4 at 0x7b9400058b60 by thread T1: 2022-11-23T01:08:15.6982065Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:15.6982491Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.6982801Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.6983255Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7002715Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7003130Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7003277Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7003505Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7003644Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7003652Z 2022-11-23T01:08:15.7003890Z  Previous write of size 4 at 0x7b9400058b60 by main thread: 2022-11-23T01:08:15.7006158Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e98) 2022-11-23T01:08:15.7006442Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7006653Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7006938Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7007226Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7007450Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7007652Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7007880Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7008095Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7008826Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7009063Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7009281Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7009702Z #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+0x6562cde) 2022-11-23T01:08:15.7010152Z #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+0x20cf997) 2022-11-23T01:08:15.7010401Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7010618Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7011427Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7011648Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7011926Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7012761Z #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+0x3374cd0) 2022-11-23T01:08:15.7013019Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7013868Z #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+0x6234d5e) 2022-11-23T01:08:15.7014109Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7014990Z #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+0x503a5d4) 2022-11-23T01:08:15.7015214Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7015478Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7015652Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7015844Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7016096Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7016213Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7016332Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7016451Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7016599Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7016913Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7017031Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7017126Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7017132Z 2022-11-23T01:08:15.7017357Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7017511Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7017635Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7017796Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7018000Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7018444Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7018863Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7019130Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7019523Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7020756Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7021454Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7021763Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7022810Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7023083Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7023271Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7023573Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7024674Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7025037Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7026105Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7026384Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7026655Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7027912Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7028240Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7029349Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7029753Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7029951Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7030249Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7031355Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7031710Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7032770Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7033074Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7033406Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7035022Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7035502Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7037080Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7037555Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7037870Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7038110Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7039229Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7039474Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7039787Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7040121Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7040513Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7040830Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7041389Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7041899Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7042221Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7042561Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7043725Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7044015Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7044390Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7045488Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7045845Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7047005Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7047351Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7048572Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7048984Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7049412Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7049701Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7049957Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7050365Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7050542Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7050715Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7050902Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7051106Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7051538Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7051748Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7051853Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7051863Z 2022-11-23T01:08:15.7052230Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.7052508Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7054791Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7055241Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7055507Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7055946Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7056193Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7056464Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7057109Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7057466Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7057782Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7058136Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7059253Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7059509Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7059815Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7060539Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7060929Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7061783Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7061998Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7062171Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7063202Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7063492Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7063746Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7064098Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7064317Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7064547Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7064785Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7064966Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7065284Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7065445Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7065540Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7065547Z 2022-11-23T01:08:15.7067262Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e98) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7067392Z ================== 2022-11-23T01:08:15.7067528Z ================== 2022-11-23T01:08:15.7067700Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7067876Z  Write of size 4 at 0x7b9400058b58 by thread T3: 2022-11-23T01:08:15.7070117Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.7070385Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7070613Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7070900Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7071196Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7071505Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7071653Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7071880Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7072020Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7072026Z 2022-11-23T01:08:15.7072217Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2022-11-23T01:08:15.7074356Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.7074649Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7074874Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7075157Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7075448Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7075644Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7075847Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7076079Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7076293Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7077029Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7077272Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7077494Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7077881Z #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+0x6562cde) 2022-11-23T01:08:15.7078281Z #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+0x20cf997) 2022-11-23T01:08:15.7078522Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7078724Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7079541Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7079767Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7080018Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7080853Z #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+0x3374cd0) 2022-11-23T01:08:15.7081133Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7082007Z #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+0x6234d5e) 2022-11-23T01:08:15.7082250Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7083134Z #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+0x503a5d4) 2022-11-23T01:08:15.7083350Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7083614Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7083789Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7083954Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7084210Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7084327Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7084446Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7084570Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7084717Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7085031Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7085152Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7085234Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7085239Z 2022-11-23T01:08:15.7085491Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7085661Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7085787Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7085949Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7086154Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7086599Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7086870Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7087133Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7087440Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7088513Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7089153Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7089463Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7090529Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7090808Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7090997Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7091296Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7092803Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7093215Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7094925Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7095404Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7095814Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7097370Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7097948Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7099621Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7100048Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7100269Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7100838Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7102608Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7103218Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7104919Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7105338Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7105774Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7107328Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7107821Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7109358Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7109940Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7110224Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7110417Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7111416Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7111615Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7111858Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7112107Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7112462Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7112788Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7113310Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7113961Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7114370Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7114721Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7116202Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7116632Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7117109Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7118413Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7118800Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7120137Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7120540Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7121804Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7122198Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7122566Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7122856Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7123093Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7123524Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7123709Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7123819Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7123942Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7124120Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7124465Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7124587Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7124684Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7124692Z 2022-11-23T01:08:15.7124949Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.7125119Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7125344Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7125664Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7125838Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7126193Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7126350Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7126529Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7126941Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7127160Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7127348Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7127542Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7128131Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7128297Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7128525Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7129201Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7129415Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7130186Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7130366Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7130510Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7131128Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7131280Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7131430Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7131687Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7131805Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7131925Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7132045Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7132210Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7132522Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7132641Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7132733Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7132739Z 2022-11-23T01:08:15.7134422Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7134499Z ================== 2022-11-23T01:08:15.7134656Z ================== 2022-11-23T01:08:15.7134826Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7135005Z  Write of size 4 at 0x7b9400058b58 by thread T2: 2022-11-23T01:08:15.7137205Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.7146679Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7146986Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7147287Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7147580Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7147963Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7148107Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7148333Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7148473Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7148480Z 2022-11-23T01:08:15.7148709Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2022-11-23T01:08:15.7150987Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723e38) 2022-11-23T01:08:15.7151255Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7151479Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7151822Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7152119Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7152312Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7152515Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7152749Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7152960Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7153718Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7153958Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7154180Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7154631Z #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+0x6562cde) 2022-11-23T01:08:15.7155093Z #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+0x20cf997) 2022-11-23T01:08:15.7155354Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7155630Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7156917Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7157248Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7157620Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7158909Z #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+0x3374cd0) 2022-11-23T01:08:15.7159346Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7160567Z #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+0x6234d5e) 2022-11-23T01:08:15.7160877Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7162136Z #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+0x503a5d4) 2022-11-23T01:08:15.7162439Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7162763Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7162987Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7163179Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7163527Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7163691Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7163814Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7163962Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7164206Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7164739Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7164956Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7165104Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7165129Z 2022-11-23T01:08:15.7165409Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7165665Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7165861Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7166116Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7166448Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7167113Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7167530Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7167948Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7168239Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7169601Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7170275Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7170736Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7172311Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7172741Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7173048Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7173374Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7175299Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7175846Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7177677Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7178129Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7178659Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7180403Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7180990Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7182435Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7182782Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7183063Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7183396Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7184594Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7184906Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7186360Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7186759Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7187164Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7188719Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7189225Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7190828Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7191229Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7191556Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7191780Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7192686Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7192936Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7193247Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7193558Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7193976Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7194292Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7194856Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7195406Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7195696Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7196012Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7197161Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7197477Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7197832Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7199090Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7199456Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7200708Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7201120Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7202340Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7202631Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7202983Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7203231Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7203460Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7203816Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7204018Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7204195Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7204346Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7204535Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7204905Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7205027Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7205120Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7205126Z 2022-11-23T01:08:15.7205377Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.7205544Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7205770Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7206089Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7206298Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7206596Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7206749Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7206945Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7207356Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7207579Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7207766Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7207958Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7208517Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7208770Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7209000Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7209686Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7209898Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7210669Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7210875Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7211019Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7211594Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7211741Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7211892Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7212149Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7212310Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7212433Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7212558Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7212760Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7213190Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7213375Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7213500Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7213509Z 2022-11-23T01:08:15.7216563Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723e38) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7216691Z ================== 2022-11-23T01:08:15.7216960Z ================== 2022-11-23T01:08:15.7217263Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7217596Z  Write of size 4 at 0x7b9400058b64 by thread T1: 2022-11-23T01:08:15.7221165Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7221616Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7221913Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7222267Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7222621Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7222952Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7223139Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7223424Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7223585Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7223594Z 2022-11-23T01:08:15.7223829Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2022-11-23T01:08:15.7226817Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7227229Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7227595Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7228094Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7228631Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7229449Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7230332Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7231157Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7231747Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7232755Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7233878Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7234728Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7235825Z #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+0x6562cde) 2022-11-23T01:08:15.7236822Z #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+0x20cf997) 2022-11-23T01:08:15.7237659Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7238391Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7240137Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7241412Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7242107Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7243415Z #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+0x3374cd0) 2022-11-23T01:08:15.7244465Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7245621Z #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+0x6234d5e) 2022-11-23T01:08:15.7246703Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7247829Z #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+0x503a5d4) 2022-11-23T01:08:15.7248909Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7249396Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7249830Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7250184Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7250623Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7251001Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7251246Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7251509Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7251799Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7252281Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7252721Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7252950Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7253078Z 2022-11-23T01:08:15.7253329Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7253663Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7253915Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7254216Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7254605Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7255296Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7256000Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7256540Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7257075Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7258413Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7260324Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7261228Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7262632Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7264004Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7264474Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7264950Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7266336Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7267867Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7269236Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7271290Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7272219Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7274461Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7276723Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7278845Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7281033Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7281799Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7282590Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7284944Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7287196Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7289250Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7291452Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7292334Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7294661Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7297107Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7299837Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7302451Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7303236Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7303594Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7304406Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7305180Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7305542Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7305949Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7306386Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7306846Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7307461Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7308232Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7308856Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7309355Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7310494Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7311473Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7311991Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7313086Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7314126Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7315240Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7316297Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7317456Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7318500Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7318990Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7319430Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7319819Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7320247Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7320622Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7320874Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7321135Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7321411Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7321893Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7322333Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7322569Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7322687Z 2022-11-23T01:08:15.7322939Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.7323275Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7323636Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7324185Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7324670Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7325150Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7325603Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7325967Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7326577Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7327087Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7327502Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7327897Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7328657Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7329364Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7329768Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7330696Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7331632Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7333120Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7334667Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7335251Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7336483Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7337592Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7338089Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7339011Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7339635Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7339978Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7340350Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7340754Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7341471Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7342151Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7342527Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7342672Z 2022-11-23T01:08:15.7345044Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7346810Z ================== 2022-11-23T01:08:15.7347040Z ================== 2022-11-23T01:08:15.7347450Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7347967Z  Write of size 4 at 0x7b9400058b64 by thread T3: 2022-11-23T01:08:15.7351809Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7354330Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7355166Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7355994Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7356948Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7357850Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7358548Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7359155Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7359767Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7360079Z 2022-11-23T01:08:15.7360491Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2022-11-23T01:08:15.7364095Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7366365Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7367070Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7367819Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7368663Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7369338Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7369949Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7370656Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7371320Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7373145Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7374483Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7375204Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7376102Z #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+0x6562cde) 2022-11-23T01:08:15.7377250Z #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+0x20cf997) 2022-11-23T01:08:15.7378121Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7378939Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7380504Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7381936Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7382637Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7384322Z #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+0x3374cd0) 2022-11-23T01:08:15.7385800Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7387447Z #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+0x6234d5e) 2022-11-23T01:08:15.7389026Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7390704Z #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+0x503a5d4) 2022-11-23T01:08:15.7392245Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7393024Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7393788Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7394380Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7395117Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7395757Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7396164Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7396672Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7397174Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7397978Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7398724Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7399113Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7399328Z 2022-11-23T01:08:15.7399736Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7400319Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7400743Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7401270Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7401929Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7403040Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7404266Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7405184Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7406094Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7408440Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7411527Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7413076Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7415393Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7417740Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7418660Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7419464Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7421881Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7424383Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7426420Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7427865Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7428457Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7429937Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7431472Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7432919Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7434369Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7434847Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7435338Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7436756Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7438230Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7439619Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7441008Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7441586Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7443002Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7444652Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7446077Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7447515Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7447998Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7448350Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7449159Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7449956Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7450324Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7450733Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7451168Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7451628Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7452245Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7453005Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7453629Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7454068Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7455097Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7456270Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7457037Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7458909Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7460610Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7462405Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7464041Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7465913Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7467538Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7468330Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7469085Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7469746Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7470460Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7471113Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7471528Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7471949Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7472420Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7473137Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7473838Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7474224Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7474391Z 2022-11-23T01:08:15.7474839Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.7475282Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7475808Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7476669Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7477467Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7478250Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7479040Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7479643Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7480718Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7481503Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7482184Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7482820Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7484037Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7485166Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7485831Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7487371Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7488228Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7489272Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7490181Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7490517Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7491261Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7492008Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7492329Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7492744Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7493122Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7493383Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7493631Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7493922Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7494402Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7494844Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7495076Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7495195Z 2022-11-23T01:08:15.7496902Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7497942Z ================== 2022-11-23T01:08:15.7498094Z ================== 2022-11-23T01:08:15.7498361Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7498788Z  Write of size 4 at 0x7b9400058b64 by thread T2: 2022-11-23T01:08:15.7501152Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7502782Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7503310Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7503825Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7504403Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7504961Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7505380Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7505767Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7506125Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7506288Z 2022-11-23T01:08:15.7506479Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2022-11-23T01:08:15.7508797Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723ebb) 2022-11-23T01:08:15.7510512Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7510995Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7511507Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7512073Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7512589Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7512999Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7513444Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7514019Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7515417Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7516885Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7517650Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7518619Z #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+0x6562cde) 2022-11-23T01:08:15.7519821Z #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+0x20cf997) 2022-11-23T01:08:15.7520732Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7521532Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7523181Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7524707Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7525423Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7527342Z #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+0x3374cd0) 2022-11-23T01:08:15.7529138Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7531063Z #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+0x6234d5e) 2022-11-23T01:08:15.7532840Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7534705Z #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+0x503a5d4) 2022-11-23T01:08:15.7536332Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7537071Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7537746Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7538309Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7539150Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7539855Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7540246Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7540656Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7541127Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7541874Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7542627Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7543000Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7543215Z 2022-11-23T01:08:15.7543646Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7544120Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7544456Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7544765Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7545156Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7545821Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7546524Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7547067Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7547587Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7549021Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7550870Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7551806Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7553141Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7554524Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7554985Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7555443Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7556864Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7558336Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7559759Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7561152Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7561700Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7563151Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7564660Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7566082Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7567539Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7568018Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7568521Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7569920Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7571379Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7572886Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7575039Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7576003Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7578112Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7580640Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7582665Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7585063Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7585913Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7586432Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7587651Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7589004Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7589656Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7590322Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7591042Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7591845Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7592875Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7594213Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7595201Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7596012Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7598011Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7599520Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7600296Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7602114Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7603961Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7605902Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7607835Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7609895Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7611725Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7612265Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7612712Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7613054Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7613496Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7613874Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7614135Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7614382Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7614675Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7615158Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7615626Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7615847Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7615977Z 2022-11-23T01:08:15.7616224Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.7616561Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7616918Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7617455Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7617944Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7618429Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7618986Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7619354Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7619958Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7620447Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7620866Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7621258Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7622074Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7622782Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7623190Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7624100Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7624950Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7625971Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7626873Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7627206Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7627942Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7628645Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7628950Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7629374Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7629820Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7630075Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7630322Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7630611Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7631091Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7631527Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7631748Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7631909Z 2022-11-23T01:08:15.7633583Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723ebb) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7634609Z ================== 2022-11-23T01:08:15.7634770Z ================== 2022-11-23T01:08:15.7635032Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7635370Z  Write of size 4 at 0x7b9400058b68 by thread T1: 2022-11-23T01:08:15.7637689Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7639309Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7639797Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7640305Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7640882Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7641540Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7641999Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7642569Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7643138Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7643404Z 2022-11-23T01:08:15.7643696Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2022-11-23T01:08:15.7647409Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7650255Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7650963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7651601Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7652211Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7652847Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7653588Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7654080Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7654599Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7656194Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7657631Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7658306Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7659272Z #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+0x6562cde) 2022-11-23T01:08:15.7660478Z #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+0x20cf997) 2022-11-23T01:08:15.7661350Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7662061Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7663679Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7664942Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7665660Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7667538Z #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+0x3374cd0) 2022-11-23T01:08:15.7668773Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7670463Z #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+0x6234d5e) 2022-11-23T01:08:15.7672246Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7674123Z #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+0x503a5d4) 2022-11-23T01:08:15.7675914Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7676787Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7677590Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7678231Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7679036Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7679737Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7680181Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7680642Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7681177Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7682049Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7682862Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7683273Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7683504Z 2022-11-23T01:08:15.7683933Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7684530Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7685067Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7685619Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7686316Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7687526Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7688820Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7689805Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7690841Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7693357Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7696623Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7698263Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7701013Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7703588Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7704441Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7705298Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7707976Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7710803Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7713486Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7716120Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7716633Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7718762Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7719416Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7721483Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7722024Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7722383Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7722959Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7725034Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7725650Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7727647Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7728149Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7728639Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7730824Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7731412Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7733482Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7734054Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7734406Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7734678Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7735858Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7736133Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7736485Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7736848Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7737275Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7737677Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7738420Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7739292Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7739682Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7740078Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7741585Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7742065Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7742519Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7744104Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7744556Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7746204Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7746651Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7748253Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7748707Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7749185Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7749498Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7749860Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7750335Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7750541Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7750750Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7750962Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7751236Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7751827Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7752038Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7752206Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7752216Z 2022-11-23T01:08:15.7752629Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.7752920Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7753322Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7753897Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7754216Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7754799Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7755068Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7755422Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7756200Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7756596Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7756943Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7757303Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7758319Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7758663Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7759074Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7760307Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7760689Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7762141Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7762468Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7762725Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7763859Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7764127Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7764402Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7764868Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7765067Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7765270Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7765490Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7765765Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7766338Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7766589Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7766757Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7766767Z 2022-11-23T01:08:15.7769989Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7770110Z ================== 2022-11-23T01:08:15.7770882Z ================== 2022-11-23T01:08:15.7771185Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7771495Z  Write of size 4 at 0x7b9400058b68 by thread T3: 2022-11-23T01:08:15.7775684Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7776152Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7776561Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7777084Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7777605Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7778148Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7778403Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7778922Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7779162Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7779172Z 2022-11-23T01:08:15.7779507Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2022-11-23T01:08:15.7783620Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7784100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7784496Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7785091Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7785626Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7785977Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7786352Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7786770Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7787157Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7788476Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7788968Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7789377Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7790138Z #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+0x6562cde) 2022-11-23T01:08:15.7790851Z #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+0x20cf997) 2022-11-23T01:08:15.7791241Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7791627Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7793191Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7793604Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7794067Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7795623Z #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+0x3374cd0) 2022-11-23T01:08:15.7796145Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7797744Z #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+0x6234d5e) 2022-11-23T01:08:15.7798202Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7799814Z #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+0x503a5d4) 2022-11-23T01:08:15.7800210Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7800747Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7801058Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7801350Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7801824Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7802028Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7802242Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7802463Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7802724Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7803322Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7803537Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7803737Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7803746Z 2022-11-23T01:08:15.7804135Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7804439Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7804665Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7804958Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7805323Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7806158Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7806648Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7807136Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7807622Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7809659Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7810835Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7811398Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7813332Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7813870Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7814212Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7814711Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7816803Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7817386Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7819497Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7820073Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7820567Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7822708Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7823303Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7825426Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7825954Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7826300Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7826883Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7828917Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7829490Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7831566Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7832069Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7832567Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7834697Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7835325Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7837401Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7837923Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7838273Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7838578Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7839380Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7839541Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7839737Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7839941Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7840176Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7840433Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7840818Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7841209Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7841422Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7841639Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7842440Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7842664Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7842914Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7843773Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7844035Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7844891Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7845175Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7846027Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7846258Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7846517Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7846682Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7846846Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7847104Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7847223Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7847345Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7847493Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7847646Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7847962Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7848085Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7848180Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7848187Z 2022-11-23T01:08:15.7848419Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.7848571Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7848795Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7849118Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7849323Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7849617Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7849770Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7849962Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7850372Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7850596Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7850785Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7850979Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7851539Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7851702Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7851934Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7852626Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7852843Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7853635Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7853814Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7853986Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7854565Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7854714Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7854866Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7855125Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7855275Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7855382Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7855504Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7855653Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7855970Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7856093Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7856186Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7856192Z 2022-11-23T01:08:15.7857864Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7857938Z ================== 2022-11-23T01:08:15.7858007Z ================== 2022-11-23T01:08:15.7858177Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7858353Z  Write of size 4 at 0x7b9400058b68 by thread T2: 2022-11-23T01:08:15.7860621Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7860940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7861163Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7861455Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7861745Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7862018Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7862163Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7862388Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7862529Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7862535Z 2022-11-23T01:08:15.7862720Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2022-11-23T01:08:15.7864905Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723edf) 2022-11-23T01:08:15.7865171Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7865422Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7865705Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7865996Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7866190Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7866392Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7866621Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7866831Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7867543Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7867795Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7868003Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7868425Z #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+0x6562cde) 2022-11-23T01:08:15.7868813Z #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+0x20cf997) 2022-11-23T01:08:15.7869029Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7869244Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7870128Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7870397Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7870651Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7871488Z #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+0x3374cd0) 2022-11-23T01:08:15.7871739Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7872625Z #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+0x6234d5e) 2022-11-23T01:08:15.7872873Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7873739Z #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+0x503a5d4) 2022-11-23T01:08:15.7873982Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7874243Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7874419Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7874584Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7874841Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7874956Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7875074Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7875196Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7875344Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7875657Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7875775Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7875856Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7875873Z 2022-11-23T01:08:15.7876083Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7876251Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7876374Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7876535Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7876741Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7877183Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7877477Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7877742Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7878009Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7879102Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7879760Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7880068Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7881116Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7881421Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7881609Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7881882Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7883038Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7883513Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7885485Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7885991Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7886478Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7888618Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7889216Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7891280Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7891806Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7892150Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7892691Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7894833Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7895415Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7897370Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7897915Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7898408Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7900634Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7901217Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7903314Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7903859Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7904257Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7904516Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.7905681Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.7905957Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.7906309Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.7906667Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.7907084Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.7907480Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7908170Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.7908883Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.7909271Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7909760Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7911232Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7911636Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7912085Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7913657Z #50 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+0x3374cd0) 2022-11-23T01:08:15.7914121Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7915694Z #52 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+0x6234d5e) 2022-11-23T01:08:15.7916136Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7917770Z #54 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+0x503a5d4) 2022-11-23T01:08:15.7918162Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7918626Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7918942Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7919238Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7919695Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7919932Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7920145Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7920361Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7920635Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7921210Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7921425Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7921589Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7921599Z 2022-11-23T01:08:15.7922006Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.7922297Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.7922693Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.7923267Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.7923574Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.7924105Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.7924384Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.7924729Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.7925489Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.7925889Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.7926264Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.7926611Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.7927634Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.7927927Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.7928342Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.7929546Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.7929979Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.7931412Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.7931736Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.7931990Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.7933039Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.7933303Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.7933570Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.7934030Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7934218Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7934464Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7934685Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7934951Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7935521Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7935729Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7935895Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7935904Z 2022-11-23T01:08:15.7939232Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723edf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.7939418Z ================== 2022-11-23T01:08:15.7939531Z ================== 2022-11-23T01:08:15.7939836Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.7940155Z  Write of size 4 at 0x7b9400058b6c by thread T1: 2022-11-23T01:08:15.7944247Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.7944713Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7945105Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7945659Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7946188Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7946684Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.7946931Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.7947330Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.7947567Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.7947575Z 2022-11-23T01:08:15.7947904Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2022-11-23T01:08:15.7952135Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.7952641Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.7953040Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.7953545Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.7954071Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.7954422Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.7954789Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.7955234Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.7955613Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.7956903Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.7957338Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.7957734Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.7958474Z #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+0x6562cde) 2022-11-23T01:08:15.7959182Z #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+0x20cf997) 2022-11-23T01:08:15.7959566Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.7959952Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.7961428Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.7961828Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.7962278Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.7963844Z #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+0x3374cd0) 2022-11-23T01:08:15.7964292Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7965874Z #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+0x6234d5e) 2022-11-23T01:08:15.7966356Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.7967936Z #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+0x503a5d4) 2022-11-23T01:08:15.7968320Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.7968797Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.7969109Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.7969409Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.7969885Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.7970086Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.7970294Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.7970507Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.7970812Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.7971385Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.7971597Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.7971748Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.7971758Z 2022-11-23T01:08:15.7972160Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.7972452Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.7972670Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.7972951Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.7973327Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.7974134Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.7974656Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.7975142Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.7975634Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.7977623Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.7978963Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.7979517Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.7981447Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.7981993Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.7982325Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.7982816Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.7984863Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.7985425Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7987434Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7987940Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.7988424Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.7990654Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.7991239Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.7993322Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.7993862Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.7994208Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.7994746Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.7996773Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.7997376Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.7999350Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.7999839Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8000329Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8002467Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8003053Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8005104Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8005639Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8005981Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8006242Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.8007412Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.8007687Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.8008074Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.8008440Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.8008859Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.8009256Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8009959Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.8010670Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.8011097Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8011479Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8012973Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8013375Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8013832Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8015363Z #50 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+0x3374cd0) 2022-11-23T01:08:15.8015847Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8017434Z #52 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+0x6234d5e) 2022-11-23T01:08:15.8017883Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8019614Z #54 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+0x503a5d4) 2022-11-23T01:08:15.8020075Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8020548Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8020860Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8021157Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8021618Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8021827Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8022041Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8022253Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8022522Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8023098Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8023309Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8023471Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8023480Z 2022-11-23T01:08:15.8023864Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:15.8024162Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.8024596Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.8025167Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.8025484Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.8026020Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.8026294Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.8026644Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.8027398Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.8027829Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.8028161Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.8028510Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.8029529Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.8029896Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.8030303Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.8031513Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.8031892Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.8033348Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.8033685Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.8033921Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.8034991Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.8035250Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.8035518Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.8036000Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8036200Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8036410Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8036624Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8036888Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8037458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8037671Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8037835Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8037848Z 2022-11-23T01:08:15.8041035Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.8041158Z ================== 2022-11-23T01:08:15.8041270Z ================== 2022-11-23T01:08:15.8041573Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.8041885Z  Write of size 4 at 0x7b9400058b6c by thread T3: 2022-11-23T01:08:15.8046093Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.8046561Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8047012Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8047520Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8048040Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8048528Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.8048780Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.8049182Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.8049423Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.8049432Z 2022-11-23T01:08:15.8049770Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2022-11-23T01:08:15.8053898Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.8054353Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8054753Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8055260Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8055787Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8056137Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.8056541Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.8056950Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.8057333Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.8058769Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.8059203Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.8059600Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8060295Z #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+0x6562cde) 2022-11-23T01:08:15.8061002Z #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+0x20cf997) 2022-11-23T01:08:15.8061378Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8061769Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8063322Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8063722Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8064175Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8065760Z #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+0x3374cd0) 2022-11-23T01:08:15.8066202Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8067802Z #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+0x6234d5e) 2022-11-23T01:08:15.8068250Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8069958Z #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+0x503a5d4) 2022-11-23T01:08:15.8070348Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8070820Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8071130Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8071432Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8071894Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8072137Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8072351Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8072569Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8072827Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8073401Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8073598Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8073763Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8073776Z 2022-11-23T01:08:15.8074179Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.8074479Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.8074701Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.8074987Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.8075359Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.8076162Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.8076642Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.8077120Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.8077597Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.8079612Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.8080788Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.8081377Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.8083273Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.8083782Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.8084117Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.8084606Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.8086677Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.8087240Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8089217Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8089751Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8090230Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8092362Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8092948Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8094971Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8095556Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8095910Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8096463Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.8098603Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.8099152Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8101208Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8101713Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8102203Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8104358Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8104945Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8107008Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8107547Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8107894Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8108140Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.8109312Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.8109709Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.8110069Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.8110427Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.8110851Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.8111239Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8111949Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.8112663Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.8113051Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8113435Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8114964Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8115360Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8115811Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8117340Z #50 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+0x3374cd0) 2022-11-23T01:08:15.8117829Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8119412Z #52 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+0x6234d5e) 2022-11-23T01:08:15.8119855Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8121441Z #54 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+0x503a5d4) 2022-11-23T01:08:15.8121834Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8122324Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8122627Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8122919Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8123380Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8123577Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8123785Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8124001Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8124267Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8124848Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8125056Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8125245Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8125266Z 2022-11-23T01:08:15.8125648Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.8125932Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.8126317Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.8126882Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.8127197Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.8127726Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.8128002Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.8128347Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.8129100Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.8129493Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.8129828Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.8130176Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.8131192Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.8131521Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.8131932Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.8133153Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.8133534Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.8134947Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.8135297Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.8135549Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.8136620Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.8136877Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.8137124Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.8137590Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8137790Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8137999Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8138217Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8138583Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8139155Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8139368Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8139531Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8139540Z 2022-11-23T01:08:15.8142750Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.8142874Z ================== 2022-11-23T01:08:15.8142989Z ================== 2022-11-23T01:08:15.8143288Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.8143594Z  Write of size 4 at 0x7b9400058b6c by thread T2: 2022-11-23T01:08:15.8147643Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.8148165Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8148566Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8149078Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8149676Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8150154Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.8150405Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.8150843Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.8151081Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.8151091Z 2022-11-23T01:08:15.8151427Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2022-11-23T01:08:15.8155570Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8723f03) 2022-11-23T01:08:15.8156070Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8156465Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8156965Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8157486Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8157817Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.8158179Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.8158595Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee29b) 2022-11-23T01:08:15.8158982Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.8160331Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.8160757Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.8161151Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8161842Z #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+0x6562cde) 2022-11-23T01:08:15.8162542Z #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+0x20cf997) 2022-11-23T01:08:15.8162920Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8163360Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8164833Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8165228Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8165684Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8167214Z #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+0x3374cd0) 2022-11-23T01:08:15.8167665Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8169301Z #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+0x6234d5e) 2022-11-23T01:08:15.8169752Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8171340Z #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+0x503a5d4) 2022-11-23T01:08:15.8171761Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8172230Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8172548Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8172843Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8173302Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8173507Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8173721Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8173938Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8174205Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8174758Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8174977Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8175139Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8175147Z 2022-11-23T01:08:15.8175550Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2022-11-23T01:08:15.8175851Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.8176066Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.8176351Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.8176753Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.8177563Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.8178049Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.8178657Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.8179137Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.8181152Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.8182319Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.8182885Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.8184845Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.8185359Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.8185699Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.8186182Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.8188252Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.8188808Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8190854Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8191396Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8191892Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8193979Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8194599Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8196615Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8197150Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8197499Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8198036Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.8200108Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.8200661Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8202673Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8203177Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8203668Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8205803Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8206391Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8208407Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8208996Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8209328Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8209588Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.8210771Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.8211047Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.8211395Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.8211747Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.8212171Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.8212559Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8213294Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.8214013Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.8214400Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8214773Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8216255Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8216897Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8217390Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8219114Z #50 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+0x3374cd0) 2022-11-23T01:08:15.8239815Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8241533Z #52 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+0x6234d5e) 2022-11-23T01:08:15.8241998Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8243595Z #54 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+0x503a5d4) 2022-11-23T01:08:15.8244051Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8244524Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8244821Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8245115Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8245580Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8245778Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8245988Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8246206Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8246467Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8247036Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8247247Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8247412Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8247423Z 2022-11-23T01:08:15.8247841Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:15.8248126Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.8248512Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.8249088Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.8249402Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.8249933Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.8250256Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.8250608Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.8251374Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.8251769Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.8252103Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.8252450Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.8253461Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.8253786Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.8254195Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.8255408Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.8255786Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.8257225Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.8257545Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.8257798Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.8259557Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.8259810Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.8259971Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.8260240Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8260363Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8260471Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8260597Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8260746Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8261066Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8261237Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8261333Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8261341Z 2022-11-23T01:08:15.8263072Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8723f03) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda12'()::o 2022-11-23T01:08:15.8263146Z ================== 2022-11-23T01:08:15.8589161Z ================== 2022-11-23T01:08:15.8589696Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:15.8590014Z  Write of size 1 at 0x7b740003a961 by main thread: 2022-11-23T01:08:15.8594395Z  #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+0x8718ed1) 2022-11-23T01:08:15.8594865Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8595281Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8595836Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8596375Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8596719Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:15.8597065Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:15.8597414Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee258) 2022-11-23T01:08:15.8597762Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:15.8598870Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:15.8599230Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:15.8599588Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8600256Z #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+0x6562cde) 2022-11-23T01:08:15.8600895Z #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+0x20cf997) 2022-11-23T01:08:15.8601282Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8601655Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8602975Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8603371Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8603801Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8605338Z #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+0x3374cd0) 2022-11-23T01:08:15.8605768Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8607267Z #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+0x6234d5e) 2022-11-23T01:08:15.8607736Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8609276Z #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+0x503a5d4) 2022-11-23T01:08:15.8609679Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8610085Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8610375Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8610642Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8611077Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8611317Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8611517Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8611716Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8611951Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8612495Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8612723Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8612870Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8612880Z 2022-11-23T01:08:15.8613259Z  Previous write of size 1 at 0x7b740003a961 by thread T3: 2022-11-23T01:08:15.8617151Z  #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+0x8718ed1) 2022-11-23T01:08:15.8617636Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:15.8618047Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:15.8618892Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:15.8619390Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:15.8619789Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:15.8620017Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:15.8620363Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:15.8620527Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:15.8620535Z 2022-11-23T01:08:15.8620852Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2022-11-23T01:08:15.8621165Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:15.8621353Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:15.8621517Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:15.8621730Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:15.8622354Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:15.8622716Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:15.8623073Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:15.8623421Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:15.8624910Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:15.8626009Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:15.8626337Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:15.8627540Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:15.8627980Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:15.8628217Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:15.8628557Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:15.8630027Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:15.8630403Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8631862Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8632310Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8632754Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8634810Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8635387Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8637038Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8637335Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8637529Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8637826Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:15.8638960Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:15.8639267Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:15.8640349Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:15.8640628Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:15.8640896Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:15.8642017Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:15.8642375Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:15.8643460Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:15.8643747Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:15.8643938Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:15.8644084Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:15.8644745Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:15.8644900Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:15.8645097Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:15.8645296Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:15.8645532Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:15.8645748Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:15.8646162Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:15.8646552Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:15.8646766Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:15.8646981Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:15.8647792Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:15.8648015Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:15.8648265Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:15.8649128Z #50 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+0x3374cd0) 2022-11-23T01:08:15.8649375Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8650243Z #52 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+0x6234d5e) 2022-11-23T01:08:15.8650516Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:15.8651377Z #54 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+0x503a5d4) 2022-11-23T01:08:15.8651593Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:15.8651855Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:15.8652032Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:15.8652197Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:15.8652453Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8652568Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8652689Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8652809Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8652971Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8653286Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8653405Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8653497Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8653503Z 2022-11-23T01:08:15.8653767Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:15.8653936Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:15.8654159Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:15.8654482Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:15.8654656Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:15.8655000Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:15.8655156Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:15.8655348Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:15.8655756Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:15.8655976Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:15.8656163Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:15.8656355Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:15.8656914Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:15.8657078Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:15.8657304Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:15.8657993Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:15.8658204Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:15.8659079Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:15.8659261Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:15.8659404Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:15.8660035Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:15.8660183Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:15.8660339Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:15.8660594Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:15.8660712Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:15.8660832Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:15.8660951Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:15.8661102Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:15.8661416Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:15.8661537Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:15.8661629Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:15.8661637Z 2022-11-23T01:08:15.8663336Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8718ed1) 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::' 2022-11-23T01:08:15.8663408Z ================== 2022-11-23T01:08:16.0601045Z ================== 2022-11-23T01:08:16.0601533Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0601925Z  Write of size 2 at 0x7b840001c16c by thread T3: 2022-11-23T01:08:16.0605335Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0606048Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0606411Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0606910Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0607453Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0607908Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0608113Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0608446Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0608628Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0608642Z 2022-11-23T01:08:16.0608967Z  Previous write of size 2 at 0x7b840001c16c by main thread: 2022-11-23T01:08:16.0612439Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0612799Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0613074Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0613432Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0613797Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0614046Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0614368Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0614697Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0614995Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0615958Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0616351Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0616691Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0617175Z #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+0x6562cde) 2022-11-23T01:08:16.0617736Z #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+0x20cf997) 2022-11-23T01:08:16.0618016Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0618350Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0619611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0620059Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0620414Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0621583Z #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+0x3374cd0) 2022-11-23T01:08:16.0622009Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0623117Z #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+0x6234d5e) 2022-11-23T01:08:16.0623560Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0624784Z #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+0x503a5d4) 2022-11-23T01:08:16.0625155Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0625513Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0625783Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0626045Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0626433Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0626556Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0626677Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0626798Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0626944Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0627262Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0627381Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0627475Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0627483Z 2022-11-23T01:08:16.0627732Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.0627904Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.0628030Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.0628193Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.0628399Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.0628842Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.0629109Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.0629418Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.0629756Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.0630850Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.0631509Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.0631819Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.0632859Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.0633195Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.0633387Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.0633657Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.0634771Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.0635120Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0636191Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0636468Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0636740Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0638525Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0639215Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0640309Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0640633Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0640825Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0641127Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.0642279Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.0642593Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0643671Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0643973Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0644242Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0645369Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0645706Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0646818Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0647111Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0647302Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0647479Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.0648121Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.0648274Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.0648472Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.0648676Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.0648910Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.0649128Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0649517Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.0649907Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.0650119Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0650335Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0651195Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0651421Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0651669Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0652531Z #50 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+0x3374cd0) 2022-11-23T01:08:16.0652774Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0653625Z #52 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+0x6234d5e) 2022-11-23T01:08:16.0653887Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0654778Z #54 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+0x503a5d4) 2022-11-23T01:08:16.0654995Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0655258Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0655437Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0655603Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0655858Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0656004Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0656123Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0656243Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0656377Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0656688Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0656805Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0656898Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0656908Z 2022-11-23T01:08:16.0657142Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.0657309Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.0657531Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.0657871Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.0658124Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.0658648Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.0658852Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.0659156Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.0659821Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.0660167Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.0660455Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.0660719Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.0661293Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.0661461Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.0661689Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.0662348Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.0662599Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.0663369Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.0663545Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.0663687Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.0664260Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.0664404Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.0664553Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.0664807Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0664923Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0665045Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0665218Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0665367Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0665681Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0665800Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0665881Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0665887Z 2022-11-23T01:08:16.0667589Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.0667688Z ================== 2022-11-23T01:08:16.0667772Z ================== 2022-11-23T01:08:16.0667930Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0668149Z  Write of size 2 at 0x7b840001c16c by thread T2: 2022-11-23T01:08:16.0671455Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0671863Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0672210Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0672609Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0673103Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0673482Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0673716Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0674122Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0674311Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0674320Z 2022-11-23T01:08:16.0674626Z  Previous write of size 2 at 0x7b840001c16c by main thread: 2022-11-23T01:08:16.0678012Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0678517Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0678903Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0679369Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0679824Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0680134Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0680354Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0680673Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0681074Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0682092Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0682409Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0682637Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0683160Z #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+0x6562cde) 2022-11-23T01:08:16.0683720Z #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+0x20cf997) 2022-11-23T01:08:16.0684067Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0684424Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0685782Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0686110Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0686502Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0687860Z #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+0x3374cd0) 2022-11-23T01:08:16.0688209Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0689490Z #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+0x6234d5e) 2022-11-23T01:08:16.0689877Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0691205Z #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+0x503a5d4) 2022-11-23T01:08:16.0691550Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0691963Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0692213Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0692462Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0692848Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0693045Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0693224Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0693403Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0693613Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0694155Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0694318Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0694463Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0694471Z 2022-11-23T01:08:16.0694872Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.0695138Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.0695336Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.0695583Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.0695895Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.0696577Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.0697043Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.0697460Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.0697852Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.0699213Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.0700184Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.0700718Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.0702327Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.0702830Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.0703124Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.0703549Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.0705176Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.0705594Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0707256Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0707693Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0708125Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0709953Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0710531Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0712295Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0712792Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0713098Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0713541Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.0715341Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.0715883Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0717568Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0718017Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0718494Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0720203Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0720536Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0721804Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0722260Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0722532Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0722754Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.0723750Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.0723991Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.0724298Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.0724688Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.0725079Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.0725423Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0725983Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.0726623Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.0726951Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0727322Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0728448Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0728770Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0729170Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0730568Z #50 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+0x3374cd0) 2022-11-23T01:08:16.0730998Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0732627Z #52 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+0x6234d5e) 2022-11-23T01:08:16.0733098Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0734542Z #54 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+0x503a5d4) 2022-11-23T01:08:16.0735013Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0735402Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0735678Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0735943Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0736350Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0736537Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0736744Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0736953Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0737187Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0737693Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0737882Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0738044Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0738052Z 2022-11-23T01:08:16.0738455Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.0738836Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.0739191Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.0739780Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.0740035Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.0740501Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.0740734Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.0740929Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.0741381Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.0741662Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.0742025Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.0742339Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.0743366Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.0743645Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.0744045Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.0745253Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.0745604Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.0747060Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.0747376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.0747646Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.0748675Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.0748946Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.0749205Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.0749737Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0749993Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0750185Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0750380Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0750652Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0751213Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0751430Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0751583Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0751592Z 2022-11-23T01:08:16.0754553Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.0754628Z ================== 2022-11-23T01:08:16.0754755Z ================== 2022-11-23T01:08:16.0754930Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0755107Z  Write of size 2 at 0x7b840001c16c by thread T1: 2022-11-23T01:08:16.0757287Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0757551Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0757776Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0758087Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0758374Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0758642Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0758784Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0759012Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0759155Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0759162Z 2022-11-23T01:08:16.0759350Z  Previous write of size 2 at 0x7b840001c16c by main thread: 2022-11-23T01:08:16.0761482Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc0a) 2022-11-23T01:08:16.0761780Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0762004Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0762284Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0762568Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0762762Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0762964Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0763221Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0763433Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0764149Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0764388Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0764606Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0764994Z #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+0x6562cde) 2022-11-23T01:08:16.0765394Z #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+0x20cf997) 2022-11-23T01:08:16.0765611Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0765825Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0766656Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0766878Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0767129Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0767959Z #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+0x3374cd0) 2022-11-23T01:08:16.0768236Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0769103Z #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+0x6234d5e) 2022-11-23T01:08:16.0769351Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0770236Z #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+0x503a5d4) 2022-11-23T01:08:16.0770453Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0770719Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0770893Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0771057Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0771311Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0771427Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0771546Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0771695Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0771844Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0772156Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0772276Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0772356Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0772374Z 2022-11-23T01:08:16.0772585Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.0772753Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.0772875Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.0773035Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.0773242Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.0773685Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.0773957Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.0774220Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.0774488Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.0775607Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.0776235Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.0776565Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.0777607Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.0777885Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.0778073Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.0778345Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.0779643Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.0779970Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0781038Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0781349Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0781622Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0782759Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0783107Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0784758Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0785335Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0785696Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0786177Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.0787971Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.0788512Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0790554Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0791025Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0791455Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0793341Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0793881Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0795569Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0796054Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0796380Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0796623Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.0797563Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.0797768Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.0798113Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.0798318Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.0798585Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.0798906Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0799476Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.0800061Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.0800411Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0800663Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0801718Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0802136Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0802439Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0803702Z #50 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+0x3374cd0) 2022-11-23T01:08:16.0804228Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0805774Z #52 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+0x6234d5e) 2022-11-23T01:08:16.0806199Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0807810Z #54 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+0x503a5d4) 2022-11-23T01:08:16.0808211Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0808675Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0809031Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0809329Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0809793Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0810009Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0810219Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0810436Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0810713Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0811296Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0811505Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0811678Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0811690Z 2022-11-23T01:08:16.0812133Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.0812415Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.0812768Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.0813186Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.0813366Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.0813805Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.0814055Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.0814364Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.0814971Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.0815288Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.0815571Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.0815811Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.0816626Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.0816875Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.0817285Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.0818260Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.0818654Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.0819783Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.0820118Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.0820308Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.0821163Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.0821373Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.0821597Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.0821969Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0822129Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0822296Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0822474Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0822694Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0823172Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0823344Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0823476Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0823483Z 2022-11-23T01:08:16.0826187Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc0a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.0826295Z ================== 2022-11-23T01:08:16.0826484Z ================== 2022-11-23T01:08:16.0826727Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0827002Z  Write of size 2 at 0x7b840001c170 by thread T3: 2022-11-23T01:08:16.0830285Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0830781Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0831125Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0831556Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0832001Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0832405Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0832618Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0832953Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0833155Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0833212Z 2022-11-23T01:08:16.0833490Z  Previous write of size 2 at 0x7b840001c170 by main thread: 2022-11-23T01:08:16.0836738Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0837178Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0837509Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0837911Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0838310Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0838595Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0838897Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0839231Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0839530Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0840578Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0840979Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0841323Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0841902Z #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+0x6562cde) 2022-11-23T01:08:16.0842461Z #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+0x20cf997) 2022-11-23T01:08:16.0842785Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0843089Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0844321Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0844651Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0845024Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0846493Z #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+0x3374cd0) 2022-11-23T01:08:16.0846907Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0848438Z #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+0x6234d5e) 2022-11-23T01:08:16.0848860Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0850368Z #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+0x503a5d4) 2022-11-23T01:08:16.0850790Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0851239Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0851543Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0851830Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0852268Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0852461Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0852666Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0852853Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0853104Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0853656Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0853875Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0854032Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0854047Z 2022-11-23T01:08:16.0854446Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.0854747Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.0854957Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.0855233Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.0855581Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.0856387Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.0856848Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.0857296Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.0857752Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.0859730Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.0860765Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.0861310Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.0863173Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.0863651Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.0863971Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.0864431Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.0866360Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.0866927Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0868805Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0869334Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0869852Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0871764Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0872358Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0874229Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0874731Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0875059Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0875558Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.0877462Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.0878004Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0879970Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0880530Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0880922Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0882268Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0882601Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0883701Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0884039Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0884220Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0884370Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.0885022Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.0885176Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.0885372Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.0885561Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.0885798Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.0886018Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0886402Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.0886839Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.0887055Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0887258Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0888077Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0888323Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0888571Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0889397Z #50 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+0x3374cd0) 2022-11-23T01:08:16.0889649Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0890508Z #52 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+0x6234d5e) 2022-11-23T01:08:16.0890791Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0891659Z #54 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+0x503a5d4) 2022-11-23T01:08:16.0891873Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0892191Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0892365Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0892527Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0892782Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0892896Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0893017Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0893139Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0893288Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0893603Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0893721Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0893802Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0893809Z 2022-11-23T01:08:16.0894058Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.0894228Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.0894449Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.0894764Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.0894941Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.0895234Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.0895385Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.0895603Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.0896017Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.0896236Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.0896424Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.0896616Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.0897176Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.0897367Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.0897591Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.0898252Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.0898468Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.0899333Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.0899515Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.0899658Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.0900284Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.0900432Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.0900583Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.0900837Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0900950Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0901068Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0901187Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0901333Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0901646Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0901765Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0901856Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0901897Z 2022-11-23T01:08:16.0903555Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.0903628Z ================== 2022-11-23T01:08:16.0903765Z ================== 2022-11-23T01:08:16.0903935Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0904111Z  Write of size 2 at 0x7b840001c170 by thread T2: 2022-11-23T01:08:16.0906274Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0906569Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0906798Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0907083Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0907372Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0907732Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0907876Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0908229Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0908401Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0908408Z 2022-11-23T01:08:16.0908706Z  Previous write of size 2 at 0x7b840001c170 by main thread: 2022-11-23T01:08:16.0912173Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0912613Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0913021Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0913546Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0914147Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0914468Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0914834Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0915222Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0915605Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0916893Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0917365Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0917770Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0918470Z #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+0x6562cde) 2022-11-23T01:08:16.0919195Z #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+0x20cf997) 2022-11-23T01:08:16.0919566Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0919961Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0921436Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0921831Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0922332Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0923830Z #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+0x3374cd0) 2022-11-23T01:08:16.0924279Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0925858Z #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+0x6234d5e) 2022-11-23T01:08:16.0926291Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0927864Z #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+0x503a5d4) 2022-11-23T01:08:16.0928256Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0928713Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0929031Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0929316Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0929782Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0929995Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0930200Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0930418Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0930685Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0931228Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0931435Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0931603Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0931614Z 2022-11-23T01:08:16.0932045Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.0932350Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.0932564Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.0932889Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.0933236Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.0934039Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.0934528Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.0935056Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.0935547Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.0937467Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.0938805Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.0939384Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.0941199Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.0941537Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.0941716Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.0941990Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.0943104Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.0943444Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0944524Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0944837Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0945107Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0946236Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0946573Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0947693Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0947984Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0948182Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0948483Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.0949722Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.0950036Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.0951101Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.0951430Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.0951703Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.0952836Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.0953200Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.0954295Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.0954586Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.0954787Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.0954936Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.0955607Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.0955767Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.0955963Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.0956167Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.0956405Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.0956629Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0957017Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.0957433Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.0957652Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0957868Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0958689Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0958911Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0959163Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.0960017Z #50 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+0x3374cd0) 2022-11-23T01:08:16.0960270Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0961141Z #52 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+0x6234d5e) 2022-11-23T01:08:16.0961416Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.0962276Z #54 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+0x503a5d4) 2022-11-23T01:08:16.0962492Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.0962754Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.0962930Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.0963092Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.0963350Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0963464Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0963583Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0963703Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0963841Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0964180Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0964301Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0964393Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0964403Z 2022-11-23T01:08:16.0964634Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.0964802Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.0965023Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.0965339Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.0965515Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.0965810Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.0965991Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.0966183Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.0966587Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.0966811Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.0966999Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.0967191Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.0967748Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.0967913Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.0968141Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.0968939Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.0969328Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.0970624Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.0970947Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.0971148Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.0972062Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.0972393Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.0972673Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.0973062Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.0973181Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.0973301Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.0973423Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.0973614Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.0974191Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.0974411Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.0974577Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.0974588Z 2022-11-23T01:08:16.0976448Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.0976577Z ================== 2022-11-23T01:08:16.0976842Z ================== 2022-11-23T01:08:16.0977210Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.0977465Z  Write of size 2 at 0x7b840001c170 by thread T1: 2022-11-23T01:08:16.0981214Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0981803Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0982209Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0982721Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0983232Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0983735Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.0983991Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.0984368Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.0984602Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.0984616Z 2022-11-23T01:08:16.0984967Z  Previous write of size 2 at 0x7b840001c170 by main thread: 2022-11-23T01:08:16.0988990Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc69) 2022-11-23T01:08:16.0989486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.0989929Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.0990436Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.0990983Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.0991316Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.0991682Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.0992063Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.0992424Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.0993695Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.0994118Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.0994518Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.0995206Z #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+0x6562cde) 2022-11-23T01:08:16.0995950Z #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+0x20cf997) 2022-11-23T01:08:16.0996314Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.0996711Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.0998159Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.0998586Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.0999044Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1000584Z #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+0x3374cd0) 2022-11-23T01:08:16.1000834Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1001694Z #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+0x6234d5e) 2022-11-23T01:08:16.1001944Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1002843Z #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+0x503a5d4) 2022-11-23T01:08:16.1003063Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1003326Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1003536Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1003701Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1003944Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1004059Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1004177Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1004300Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1004450Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1004762Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1004883Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1004975Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1004981Z 2022-11-23T01:08:16.1005210Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1005377Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1005487Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1005649Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1005857Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1006303Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1006574Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1006868Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1007137Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1008220Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1008871Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1009179Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1010222Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1010497Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1010685Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1010981Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1012100Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1012434Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1013495Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1013790Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1014060Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1015226Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1015552Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1016650Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1016967Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1017162Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1017459Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1018665Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1019019Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1020068Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1020395Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1020661Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1021787Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1022108Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1023231Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1023520Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1023713Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1023861Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1024529Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1024683Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1024881Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1025083Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1025319Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1025536Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1025923Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1026311Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1026530Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1026749Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1027584Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1027898Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1028290Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1029740Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1030175Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1031564Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1031963Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1033396Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1033749Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1034182Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1034426Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1034702Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1035132Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1035329Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1035502Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1035746Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1035989Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1036544Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1036747Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1036901Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1036911Z 2022-11-23T01:08:16.1037282Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.1037570Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1037890Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1038417Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1038706Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1039137Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1039347Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1039630Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1040208Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1040526Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1040833Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1041155Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1042094Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1042371Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1042731Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1043783Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1044177Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1045303Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1045593Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1045825Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1046655Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1046895Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1047089Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1047510Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1047706Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1047873Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1048050Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1048278Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1048760Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1048931Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1049061Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1049070Z 2022-11-23T01:08:16.1051992Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc69) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1052168Z ================== 2022-11-23T01:08:16.1052258Z ================== 2022-11-23T01:08:16.1052568Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1052851Z  Write of size 2 at 0x7b840001c172 by thread T3: 2022-11-23T01:08:16.1056351Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1056773Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1057136Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1057623Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1058219Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1058791Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1059002Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1059304Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1059430Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1059437Z 2022-11-23T01:08:16.1059642Z  Previous write of size 2 at 0x7b840001c172 by main thread: 2022-11-23T01:08:16.1061818Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1062151Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1062373Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1062657Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1062949Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1063143Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1063351Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1063580Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1063793Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1064538Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1064776Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1064994Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1065383Z #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+0x6562cde) 2022-11-23T01:08:16.1065797Z #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+0x20cf997) 2022-11-23T01:08:16.1066011Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1066228Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1067035Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1067261Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1067513Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1068383Z #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+0x3374cd0) 2022-11-23T01:08:16.1068634Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1069495Z #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+0x6234d5e) 2022-11-23T01:08:16.1069844Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1070722Z #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+0x503a5d4) 2022-11-23T01:08:16.1070940Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1071204Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1071381Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1071549Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1071933Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1072051Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1072156Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1072279Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1072429Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1072743Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1072863Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1072994Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1073001Z 2022-11-23T01:08:16.1073229Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1073401Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1073524Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1073684Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1073877Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1074333Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1074602Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1074914Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1075180Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1076255Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1076895Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1077200Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1078259Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1078536Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1078750Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1079020Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1080133Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1080444Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1081550Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1081829Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1082098Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1083233Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1083590Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1084679Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1084965Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1085184Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1085483Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1086595Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1086925Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1088544Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1089046Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1089507Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1091608Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1092199Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1094183Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1094739Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1095075Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1095318Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1096499Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1096774Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1097115Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1097469Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1097921Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1098299Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1099085Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1099801Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1100164Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1100559Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1102083Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1102490Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1102938Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1104442Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1104872Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1106466Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1106918Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1108463Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1108880Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1109337Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1109714Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1110023Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1110469Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1110671Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1110876Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1111096Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1111368Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1111925Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1112144Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1112290Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1112312Z 2022-11-23T01:08:16.1112702Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.1112986Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1113385Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1114013Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1114326Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1114854Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1115139Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1115464Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1116229Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1116624Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1116948Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1117321Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1118329Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1118628Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1119041Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1120179Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1120393Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1121159Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1121374Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1121518Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1122107Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1122255Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1122393Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1122646Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1122761Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1122908Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1123031Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1123179Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1123488Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1123607Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1123701Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1123708Z 2022-11-23T01:08:16.1125373Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1125448Z ================== 2022-11-23T01:08:16.1125514Z ================== 2022-11-23T01:08:16.1125681Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1125856Z  Write of size 2 at 0x7b840001c172 by thread T2: 2022-11-23T01:08:16.1128034Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1128298Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1128521Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1128804Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1129122Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1129391Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1129532Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1129758Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1129894Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1129902Z 2022-11-23T01:08:16.1130088Z  Previous write of size 2 at 0x7b840001c172 by main thread: 2022-11-23T01:08:16.1132215Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1132474Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1132720Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1133001Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1133287Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1133483Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1133690Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1133919Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1134160Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1134870Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1135108Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1135327Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1135711Z #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+0x6562cde) 2022-11-23T01:08:16.1136102Z #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+0x20cf997) 2022-11-23T01:08:16.1136318Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1136531Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1137383Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1137606Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1137855Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1138861Z #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+0x3374cd0) 2022-11-23T01:08:16.1139157Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1140026Z #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+0x6234d5e) 2022-11-23T01:08:16.1140276Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1141137Z #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+0x503a5d4) 2022-11-23T01:08:16.1141388Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1141655Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1141834Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1141998Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1142251Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1142369Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1142492Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1142614Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1142762Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1143090Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1143211Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1143303Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1143309Z 2022-11-23T01:08:16.1143531Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1143702Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1143828Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1143994Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1144200Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1144645Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1144916Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1145183Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1145448Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1146658Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1147618Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1148230Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1150156Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1150682Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1151029Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1151482Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1153540Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1154089Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1156022Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1156562Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1157061Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1159169Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1159761Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1161798Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1162383Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1162735Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1163275Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1165265Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1165815Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1167774Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1168266Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1168764Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1170828Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1171443Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1173441Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1174003Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1174355Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1174615Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1175753Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1176034Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1176380Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1176765Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1177183Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1177580Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1178290Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1179102Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1179498Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1179881Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1180757Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1180983Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1181297Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1182141Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1182390Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1183279Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1183525Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1184402Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1184618Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1184881Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1185057Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1185221Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1185501Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1185604Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1185726Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1185845Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1185992Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1186303Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1186422Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1186514Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1186521Z 2022-11-23T01:08:16.1186761Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.1186927Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1187148Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1187495Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1187669Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1187962Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1188107Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1188298Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1188709Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1188931Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1189118Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1189309Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1189934Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1190103Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1190334Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1191042Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1191256Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1192028Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1192233Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1192376Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1192953Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1193102Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1193254Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1193512Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1193626Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1193745Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1193854Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1194004Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1194317Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1194438Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1194531Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1194537Z 2022-11-23T01:08:16.1196241Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1196315Z ================== 2022-11-23T01:08:16.1196529Z ================== 2022-11-23T01:08:16.1196698Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1196872Z  Write of size 2 at 0x7b840001c172 by thread T1: 2022-11-23T01:08:16.1199021Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1199320Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1199549Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1199835Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1200124Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1200392Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1200534Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1200760Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1200895Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1200901Z 2022-11-23T01:08:16.1201088Z  Previous write of size 2 at 0x7b840001c172 by main thread: 2022-11-23T01:08:16.1203361Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fc8e) 2022-11-23T01:08:16.1203813Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1204162Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1204629Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1205101Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1205418Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1205749Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1206098Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1206446Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1207682Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1208091Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1208509Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1209130Z #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+0x6562cde) 2022-11-23T01:08:16.1209788Z #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+0x20cf997) 2022-11-23T01:08:16.1210145Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1210495Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1211678Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1212060Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1212405Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1213619Z #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+0x3374cd0) 2022-11-23T01:08:16.1213926Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1215296Z #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+0x6234d5e) 2022-11-23T01:08:16.1215734Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1217004Z #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+0x503a5d4) 2022-11-23T01:08:16.1217438Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1217858Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1218137Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1218396Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1218865Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1219038Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1219230Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1219429Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1219662Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1220194Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1220387Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1220536Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1220545Z 2022-11-23T01:08:16.1220940Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1221205Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1221387Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1221631Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1221950Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1222764Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1223218Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1223552Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1223984Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1225620Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1226639Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1227070Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1228759Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1229209Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1229510Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1229984Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1231571Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1232109Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1233681Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1234026Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1234341Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1235486Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1235836Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1236924Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1237231Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1237422Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1237722Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1238840Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1239151Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1240219Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1240523Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1240794Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1241921Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1242282Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1243372Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1243706Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1243888Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1244036Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1244696Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1244851Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1245045Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1245234Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1245471Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1245690Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1246078Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1246508Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1246723Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1246929Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1247743Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1247990Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1248239Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1249333Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1249585Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1250453Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1250753Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1251736Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1251959Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1252273Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1252503Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1252670Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1253057Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1253174Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1253294Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1253463Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1253616Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1253976Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1254101Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1254182Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1254189Z 2022-11-23T01:08:16.1254485Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.1254659Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1254881Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1255257Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1255431Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1255778Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1255985Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1256178Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1256679Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1256903Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1257092Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1257284Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1257895Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1258059Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1258316Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1259211Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1259425Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1260246Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1260427Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1260572Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1261196Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1261344Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1261543Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1261803Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1261920Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1262040Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1262161Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1262306Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1262669Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1262787Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1262883Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1262889Z 2022-11-23T01:08:16.1264722Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fc8e) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1264868Z ================== 2022-11-23T01:08:16.1264969Z ================== 2022-11-23T01:08:16.1265272Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1265537Z  Write of size 2 at 0x7b840001c174 by thread T3: 2022-11-23T01:08:16.1269019Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1269531Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1269968Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1270469Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1270911Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1271517Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1271791Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1272261Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1272637Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1272649Z 2022-11-23T01:08:16.1273093Z  Previous write of size 2 at 0x7b840001c174 by main thread: 2022-11-23T01:08:16.1277451Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1277896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1278290Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1278810Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1279407Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1279765Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1280222Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1280700Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1281153Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1282629Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1283192Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1283643Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1284426Z #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+0x6562cde) 2022-11-23T01:08:16.1285159Z #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+0x20cf997) 2022-11-23T01:08:16.1285603Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1285996Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1287611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1288022Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1288519Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1290193Z #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+0x3374cd0) 2022-11-23T01:08:16.1290656Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1292363Z #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+0x6234d5e) 2022-11-23T01:08:16.1292904Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1294615Z #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+0x503a5d4) 2022-11-23T01:08:16.1295057Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1295543Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1295860Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1296225Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1296751Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1296982Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1297163Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1297285Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1297437Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1297750Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1297920Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1298001Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1298020Z 2022-11-23T01:08:16.1298242Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1298410Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1298679Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1298845Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1299050Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1299599Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1299919Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1300186Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1300454Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1301734Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1302447Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1302758Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1303901Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1304208Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1304395Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1304715Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1305960Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1306285Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1307492Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1307773Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1308119Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1309309Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1309739Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1310979Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1311273Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1311515Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1311818Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1313002Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1313395Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1314552Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1314832Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1315181Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1316414Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1316765Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1317901Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1318203Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1318397Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1318590Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1319259Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1319415Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1319612Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1319862Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1320098Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1320314Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1320701Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1321168Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1321384Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1321649Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1322548Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1322771Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1323020Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1324041Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1324438Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1326071Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1326486Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1327885Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1328272Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1328731Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1329030Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1329334Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1329800Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1330009Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1330221Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1330438Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1330710Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1331241Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1331457Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1331673Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1331686Z 2022-11-23T01:08:16.1332095Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.1332373Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1332847Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1333413Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1333722Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1334239Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1334511Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1334883Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1335633Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1336029Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1336364Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1336700Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1337690Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1337991Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1338392Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1339660Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1340045Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1341553Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1341849Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1342110Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1343154Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1343469Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1343742Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1344213Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1344408Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1344608Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1344812Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1345084Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1345662Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1345878Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1346047Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1346056Z 2022-11-23T01:08:16.1349071Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1349193Z ================== 2022-11-23T01:08:16.1349683Z ================== 2022-11-23T01:08:16.1349972Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1350283Z  Write of size 2 at 0x7b840001c174 by thread T2: 2022-11-23T01:08:16.1354353Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1354868Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1355276Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1355668Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1355962Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1356231Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1356375Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1356601Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1356739Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1356745Z 2022-11-23T01:08:16.1356938Z  Previous write of size 2 at 0x7b840001c174 by main thread: 2022-11-23T01:08:16.1359102Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1359379Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1359588Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1359871Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1360172Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1360383Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1360589Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1360816Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1361029Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1361750Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1361988Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1362209Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1362596Z #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+0x6562cde) 2022-11-23T01:08:16.1362982Z #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+0x20cf997) 2022-11-23T01:08:16.1363225Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1363441Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1364259Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1364482Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1364760Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1365592Z #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+0x3374cd0) 2022-11-23T01:08:16.1365851Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1366712Z #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+0x6234d5e) 2022-11-23T01:08:16.1366959Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1367845Z #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+0x503a5d4) 2022-11-23T01:08:16.1368060Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1368324Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1368502Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1368695Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1368951Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1369068Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1369189Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1369311Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1369459Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1369770Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1369890Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1369985Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1369991Z 2022-11-23T01:08:16.1370212Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1370364Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1370487Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1370646Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1370853Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1371298Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1371571Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1371834Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1372126Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1373209Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1373858Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1374161Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1375204Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1375478Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1375665Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1375964Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1377070Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1377420Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1378568Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1378847Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1379118Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1380309Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1380637Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1381733Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1382056Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1382253Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1382552Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1383654Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1384014Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1385067Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1385374Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1385641Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1386837Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1387253Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1389069Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1389627Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1389927Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1390167Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1391218Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1391532Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1391863Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1392194Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1392558Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1392902Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1393535Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1394168Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1394533Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1394894Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1396311Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1396724Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1397181Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1398713Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1399204Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1400747Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1401212Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1402780Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1403211Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1403678Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1403986Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1404258Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1404725Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1404927Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1405125Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1405344Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1405606Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1406160Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1406419Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1406584Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1406596Z 2022-11-23T01:08:16.1406995Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.1407300Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1407698Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1408260Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1408623Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1409191Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1409504Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1409895Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1410657Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1411191Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1411563Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1411924Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1412981Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1413305Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1413703Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1414926Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1415379Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1416712Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1417058Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1417350Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1418391Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1418766Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1419065Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1419593Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1419827Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1420058Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1420311Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1420618Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1421243Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1421626Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1421781Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1421792Z 2022-11-23T01:08:16.1423801Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1423959Z ================== 2022-11-23T01:08:16.1424011Z ================== 2022-11-23T01:08:16.1424209Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1424413Z  Write of size 2 at 0x7b840001c174 by thread T1: 2022-11-23T01:08:16.1426616Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1426976Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1427245Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1427571Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1427892Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1428226Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1428395Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1428648Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1428777Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1428783Z 2022-11-23T01:08:16.1429000Z  Previous write of size 2 at 0x7b840001c174 by main thread: 2022-11-23T01:08:16.1431313Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcb4) 2022-11-23T01:08:16.1431636Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1431885Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1432194Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1432510Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1432734Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1432996Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1433278Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1433521Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1434289Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1434561Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1434807Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1435224Z #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+0x6562cde) 2022-11-23T01:08:16.1435649Z #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+0x20cf997) 2022-11-23T01:08:16.1435917Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1436180Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1437014Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1437263Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1437542Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1438442Z #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+0x3374cd0) 2022-11-23T01:08:16.1438766Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1439651Z #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+0x6234d5e) 2022-11-23T01:08:16.1439944Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1440904Z #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+0x503a5d4) 2022-11-23T01:08:16.1441151Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1441440Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1441643Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1441834Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1442118Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1442222Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1442393Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1442550Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1442726Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1443067Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1443245Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1443367Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1443373Z 2022-11-23T01:08:16.1443659Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1443856Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1444039Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1444188Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1444425Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1444894Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1445240Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1445535Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1445868Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1446958Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1447633Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1448006Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1449110Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1449417Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1449642Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1449971Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1451657Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1452242Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1454157Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1495258Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1495767Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1497839Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1498735Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1502192Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1502489Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1502687Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1503050Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1504169Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1504514Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1505587Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1505877Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1506147Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1507306Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1507631Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1508741Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1509059Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1509254Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1509402Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1510121Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1510280Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1510475Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1510676Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1510911Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1511160Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1511549Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1511938Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1512153Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1512372Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1513181Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1513445Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1513695Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1514529Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1514777Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1515652Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1515915Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1516773Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1517015Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1517281Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1517461Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1517624Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1517880Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1517997Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1518116Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1518224Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1518372Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1518688Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1518808Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1518905Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1518913Z 2022-11-23T01:08:16.1519159Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.1519331Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1519553Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1519873Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1520049Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1520374Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1520530Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1520721Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1521129Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1521351Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1521528Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1521720Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1522317Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1522479Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1522710Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1523370Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1523582Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1524357Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1524537Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1524679Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1525295Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1525445Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1525594Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1525848Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1525964Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1526081Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1526201Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1526348Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1526689Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1526795Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1526887Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1526893Z 2022-11-23T01:08:16.1528581Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcb4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1528669Z ================== 2022-11-23T01:08:16.1528720Z ================== 2022-11-23T01:08:16.1528891Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1529066Z  Write of size 2 at 0x7b840001c176 by thread T3: 2022-11-23T01:08:16.1531273Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1531550Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1531771Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1532053Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1532348Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1532647Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1532786Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1532997Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1533134Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1533140Z 2022-11-23T01:08:16.1533327Z  Previous write of size 2 at 0x7b840001c176 by main thread: 2022-11-23T01:08:16.1535481Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1535745Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1535965Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1536273Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1536565Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1536759Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1536961Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1537193Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1537405Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1538119Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1538387Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1538778Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1539172Z #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+0x6562cde) 2022-11-23T01:08:16.1539560Z #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+0x20cf997) 2022-11-23T01:08:16.1539776Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1539996Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1540859Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1541084Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1541334Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1542177Z #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+0x3374cd0) 2022-11-23T01:08:16.1542459Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1543308Z #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+0x6234d5e) 2022-11-23T01:08:16.1543556Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1544439Z #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+0x503a5d4) 2022-11-23T01:08:16.1544655Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1544940Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1545118Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1545283Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1545537Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1545640Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1545761Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1545880Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1546031Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1546343Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1546491Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1546583Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1546590Z 2022-11-23T01:08:16.1546820Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1546985Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1547110Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1547261Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1547467Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1547912Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1548197Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1548461Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1548731Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1549898Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1550563Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1550908Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1551976Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1552253Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1552441Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1552713Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1553861Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1554171Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1555242Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1555560Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1555830Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1556958Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1557279Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1558421Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1558714Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1558937Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1559235Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1560355Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1560663Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1561753Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1562043Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1562314Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1563443Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1563789Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1564996Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1565291Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1565515Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1565665Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1566306Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1566461Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1566659Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1566859Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1567125Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1567346Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1567730Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1568117Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1568335Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1568551Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1569357Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1569590Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1569837Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1570696Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1570947Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1571796Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1572076Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1572950Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1573165Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1573428Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1573604Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1573771Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1574025Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1574168Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1574278Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1574400Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1574551Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1574867Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1574987Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1575080Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1575086Z 2022-11-23T01:08:16.1575309Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.1575478Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1575702Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1576017Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1576220Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1576516Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1576668Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1576861Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1577271Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1577479Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1577848Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1578042Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1578765Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1578940Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1579155Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1579875Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1580091Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1580866Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1581077Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1581220Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1581799Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1581946Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1582095Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1582351Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1582466Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1582586Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1582708Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1582855Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1583169Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1583276Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1583367Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1583375Z 2022-11-23T01:08:16.1585062Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1585148Z ================== 2022-11-23T01:08:16.1585200Z ================== 2022-11-23T01:08:16.1585371Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1585545Z  Write of size 2 at 0x7b840001c176 by thread T2: 2022-11-23T01:08:16.1587702Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1588005Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1588229Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1588510Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1588799Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1589070Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1589212Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1589426Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1589630Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1589637Z 2022-11-23T01:08:16.1589827Z  Previous write of size 2 at 0x7b840001c176 by main thread: 2022-11-23T01:08:16.1592009Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1592285Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1592542Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1592822Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1593111Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1593305Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1593507Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1593734Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1593946Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1594660Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1594899Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1595120Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1595532Z #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+0x6562cde) 2022-11-23T01:08:16.1595923Z #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+0x20cf997) 2022-11-23T01:08:16.1596138Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1596354Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1597163Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1597415Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1597664Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1598510Z #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+0x3374cd0) 2022-11-23T01:08:16.1598756Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1599639Z #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+0x6234d5e) 2022-11-23T01:08:16.1599889Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1600768Z #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+0x503a5d4) 2022-11-23T01:08:16.1601038Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1601301Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1601475Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1601644Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1601900Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1602005Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1602124Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1602243Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1602391Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1602703Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1602824Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1602917Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1602926Z 2022-11-23T01:08:16.1603148Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1603320Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1603448Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1603599Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1603809Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1604283Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1604555Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1604824Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1605089Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1606173Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1606829Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1607148Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1608200Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1608480Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1608668Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1608939Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1610048Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1610382Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1611444Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1611738Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1612011Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1613167Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1613491Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1614624Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1614916Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1615110Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1615409Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1616554Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1616863Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1617933Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1618255Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1618650Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1619843Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1620168Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1621339Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1621631Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1621859Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1622009Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1622654Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1622810Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1623006Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1623206Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1623440Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1623665Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1624052Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1624444Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1624683Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1624902Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1625709Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1625944Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1626210Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1627059Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1627308Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1628159Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1628406Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1629311Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1629528Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1629863Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1630042Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1630210Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1630497Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1630613Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1630720Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1630841Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1630989Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1631310Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1631429Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1631525Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1631532Z 2022-11-23T01:08:16.1631755Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.1631924Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1632147Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1632468Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1632643Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1632939Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1633097Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1633294Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1633694Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1633941Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1634129Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1634321Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1634879Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1635047Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1635271Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1635971Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1636182Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1636954Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1637135Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1637278Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1637853Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1638001Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1638153Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1638437Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1638552Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1638674Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1638797Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1638934Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1639247Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1639365Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1639457Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1639462Z 2022-11-23T01:08:16.1641124Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1641224Z ================== 2022-11-23T01:08:16.1641290Z ================== 2022-11-23T01:08:16.1641462Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.1641638Z  Write of size 2 at 0x7b840001c176 by thread T1: 2022-11-23T01:08:16.1643794Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1644074Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1644287Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1644598Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1644903Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1645171Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.1645299Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.1645526Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.1645664Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.1645670Z 2022-11-23T01:08:16.1645858Z  Previous write of size 2 at 0x7b840001c176 by main thread: 2022-11-23T01:08:16.1648035Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871fcda) 2022-11-23T01:08:16.1648308Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.1648532Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.1648814Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.1649106Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.1649296Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.1649499Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.1649754Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee2de) 2022-11-23T01:08:16.1649955Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.1650681Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.1650920Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.1651230Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1651644Z #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+0x6562cde) 2022-11-23T01:08:16.1652083Z #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+0x20cf997) 2022-11-23T01:08:16.1652302Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1652520Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1653333Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1653557Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1653803Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1654694Z #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+0x3374cd0) 2022-11-23T01:08:16.1654944Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1655800Z #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+0x6234d5e) 2022-11-23T01:08:16.1656072Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1656948Z #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+0x503a5d4) 2022-11-23T01:08:16.1657170Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1657434Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1657610Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1657780Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1658024Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1658140Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1658260Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1658411Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1658729Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1659049Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1659171Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1659265Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1659272Z 2022-11-23T01:08:16.1659501Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2022-11-23T01:08:16.1659668Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.1659780Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.1659940Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.1660149Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.1660592Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.1660921Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.1661189Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.1661455Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.1662533Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.1663195Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.1663504Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.1664557Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.1664862Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.1665051Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.1665323Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.1666443Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.1666753Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1667828Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1668124Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1668391Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1669623Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1669953Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1671112Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1671405Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1671601Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1671900Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.1673012Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.1673343Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.1674397Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.1674687Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.1674954Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.1676113Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.1676463Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.1677568Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.1677857Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.1678054Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.1678203Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.1678846Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.1679033Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.1679231Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.1679432Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.1679668Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.1679886Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.1680275Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.1680662Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.1680908Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.1681125Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.1681934Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.1682156Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.1682408Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.1683247Z #50 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+0x3374cd0) 2022-11-23T01:08:16.1683527Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1684386Z #52 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+0x6234d5e) 2022-11-23T01:08:16.1684633Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.1685533Z #54 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+0x503a5d4) 2022-11-23T01:08:16.1685748Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.1686012Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.1686189Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.1686354Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.1686613Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1686716Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1686836Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1686958Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1687107Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1687418Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1687541Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1687635Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1687641Z 2022-11-23T01:08:16.1687861Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.1688057Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.1688279Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.1688601Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.1688775Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.1689068Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.1689224Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.1689404Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.1689810Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.1690065Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.1690253Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.1690443Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.1691001Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.1691167Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.1691394Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.1692067Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.1692280Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.1693084Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.1693265Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.1693408Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.1693989Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.1694135Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.1694314Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.1694568Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.1694686Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.1694808Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.1694928Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.1695066Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.1695380Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.1695500Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.1695595Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.1695600Z 2022-11-23T01:08:16.1697284Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871fcda) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda8'()::oper 2022-11-23T01:08:16.1697356Z ================== 2022-11-23T01:08:16.4124292Z ================== 2022-11-23T01:08:16.4124991Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4125498Z  Write of size 8 at 0x7ba40006a3b0 by thread T1: 2022-11-23T01:08:16.4129772Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4132141Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4132972Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4133883Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4134629Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4135422Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4136096Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4136546Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4137102Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4137316Z 2022-11-23T01:08:16.4137631Z  Previous write of size 8 at 0x7ba40006a3b0 by main thread: 2022-11-23T01:08:16.4141067Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4143467Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4144265Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4145201Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4146152Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4147007Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4147812Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4148621Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4149354Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4150970Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4152176Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4152860Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4153685Z #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+0x6562cde) 2022-11-23T01:08:16.4154769Z #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+0x20cf997) 2022-11-23T01:08:16.4155636Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4156319Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4157727Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4159070Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4159758Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4161373Z #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+0x3374cd0) 2022-11-23T01:08:16.4162919Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4164554Z #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+0x6234d5e) 2022-11-23T01:08:16.4166048Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4167716Z #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+0x503a5d4) 2022-11-23T01:08:16.4169194Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4169896Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4170552Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4171076Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4171730Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4172335Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4172694Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4173055Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4173484Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4174173Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4174817Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4175143Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4175340Z 2022-11-23T01:08:16.4175719Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4176200Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4176582Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4177025Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4177561Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4178469Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4179634Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4180428Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4181193Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4183209Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4185686Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4187313Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4189666Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4192020Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4192811Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4193615Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4196038Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4198554Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4200987Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4203385Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4204329Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4206813Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4209430Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4211838Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4214333Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4215140Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4215989Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4218737Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4220925Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4223053Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4225010Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4225842Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4227835Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4230187Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4232270Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4234365Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4235064Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4235556Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4236765Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4237988Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4238519Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4239107Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4239763Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4240436Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4241318Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4242452Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4243301Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4243917Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4245433Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4246853Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4247554Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4249083Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4250596Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4252420Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4254215Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4256129Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4257894Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4258899Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4259661Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4260268Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4260978Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4261608Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4262034Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4262470Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4262959Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4263812Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4264683Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4265098Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4265302Z 2022-11-23T01:08:16.4265721Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.4266318Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4266942Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4267929Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4268789Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4269722Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4270531Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4271184Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4272278Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4273159Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4273878Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4274590Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4276004Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4277273Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4277972Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4279600Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4281130Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4282876Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4284723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4285065Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4285811Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4286525Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4286846Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4287269Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4287650Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4287910Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4288173Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4288450Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4288934Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4289377Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4289612Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4289727Z 2022-11-23T01:08:16.4291502Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4292540Z ================== 2022-11-23T01:08:16.4292691Z ================== 2022-11-23T01:08:16.4292960Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4293283Z  Write of size 8 at 0x7ba40006a3b0 by thread T2: 2022-11-23T01:08:16.4295620Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4297239Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4297715Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4298230Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4298920Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4299481Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4299901Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4300353Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4300713Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4300879Z 2022-11-23T01:08:16.4301075Z  Previous write of size 8 at 0x7ba40006a3b0 by main thread: 2022-11-23T01:08:16.4303364Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4305028Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4305516Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4306030Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4306594Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4307078Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4307490Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4307937Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4308391Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4309357Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4310367Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4310829Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4311450Z #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+0x6562cde) 2022-11-23T01:08:16.4312226Z #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+0x20cf997) 2022-11-23T01:08:16.4312857Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4313287Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4314491Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4316078Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4316826Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4318727Z #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+0x3374cd0) 2022-11-23T01:08:16.4320555Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4322631Z #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+0x6234d5e) 2022-11-23T01:08:16.4324348Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4326291Z #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+0x503a5d4) 2022-11-23T01:08:16.4328253Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4329126Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4329934Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4330378Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4330988Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4331557Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4331962Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4332385Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4332842Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4333594Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4334292Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4334683Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4334895Z 2022-11-23T01:08:16.4335307Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4335863Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4336252Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4336820Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4337387Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4338304Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4339548Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4340429Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4341307Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4343712Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4345776Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4346677Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4348087Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4349473Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4350028Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4350489Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4351924Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4353389Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4354797Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4356193Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4356747Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4358165Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4359684Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4361104Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4362531Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4363016Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4363523Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4364964Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4366441Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4367852Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4369261Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4369817Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4371254Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4372772Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4374188Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4375673Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4376156Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4376517Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4377328Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4378105Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4378652Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4379082Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4379568Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4380250Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4381187Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4382510Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4383527Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4384295Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4386128Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4388006Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4388883Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4390656Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4392385Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4394309Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4396127Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4398187Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4400107Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4401006Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4401764Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4402373Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4403135Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4403802Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4404273Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4404694Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4405205Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4406103Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4406854Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4407249Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4407484Z 2022-11-23T01:08:16.4407915Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.4408487Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4409150Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4410120Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4411023Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4411735Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4412186Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4412553Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4413159Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4413655Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4414070Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4414465Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4415225Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4415966Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4416376Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4417271Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4418119Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4419211Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4420131Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4420466Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4421292Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4422006Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4422309Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4422738Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4423119Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4423375Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4423625Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4423918Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4424399Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4424879Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4425098Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4425228Z 2022-11-23T01:08:16.4426914Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4427939Z ================== 2022-11-23T01:08:16.4428104Z ================== 2022-11-23T01:08:16.4428373Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4428695Z  Write of size 8 at 0x7ba40006a3b8 by thread T2: 2022-11-23T01:08:16.4431090Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:16.4432719Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4433200Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4433716Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4434297Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4434855Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4435298Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4435673Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4436041Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4436205Z 2022-11-23T01:08:16.4436399Z  Previous write of size 8 at 0x7ba40006a3b8 by main thread: 2022-11-23T01:08:16.4438698Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:16.4440534Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4441354Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4442047Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4442847Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4443627Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4444308Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4445018Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4445635Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4447046Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4448746Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4449605Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4450543Z #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+0x6562cde) 2022-11-23T01:08:16.4451813Z #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+0x20cf997) 2022-11-23T01:08:16.4452843Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4453606Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4455399Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4457079Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4457871Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4459827Z #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+0x3374cd0) 2022-11-23T01:08:16.4461723Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4463605Z #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+0x6234d5e) 2022-11-23T01:08:16.4465500Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4467344Z #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+0x503a5d4) 2022-11-23T01:08:16.4469209Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4470110Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4471006Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4471608Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4472329Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4472943Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4473349Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4473813Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4474347Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4474847Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4475277Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4475515Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4475702Z 2022-11-23T01:08:16.4475962Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4476304Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4476558Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4476870Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4477262Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4477929Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4478645Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4479173Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4479710Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4481101Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4482876Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4483782Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4485122Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4486521Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4486975Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4487445Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4488867Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4490343Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4491740Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4493176Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4493729Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4495156Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4496666Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4498135Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4499907Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4500396Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4500953Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4502354Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4503839Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4505247Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4506675Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4507228Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4508631Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4510238Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4511649Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4513110Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4513593Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4513953Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4514795Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4515558Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4515913Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4516324Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4516778Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4517270Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4517887Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4518663Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4519266Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4519696Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4520745Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4521732Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4522214Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4523344Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4524383Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4525486Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4526575Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4527710Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4528741Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4529229Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4529663Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4530020Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4530466Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4530850Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4531123Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4531467Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4531932Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4532712Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4533483Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4533879Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4534093Z 2022-11-23T01:08:16.4534507Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.4535112Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4535750Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4536761Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4537667Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4538242Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4538789Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4539180Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4540204Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4541098Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4541606Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4542035Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4542964Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4543788Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4544247Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4545389Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4546374Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4547552Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4548977Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4549519Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4550943Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4552147Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4552682Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4553418Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4554036Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4554451Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4554882Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4555364Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4556138Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4556864Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4557259Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4557470Z 2022-11-23T01:08:16.4560436Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4562185Z ================== 2022-11-23T01:08:16.4562924Z ================== 2022-11-23T01:08:16.4563390Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4563917Z  Write of size 8 at 0x7ba40006a3b8 by thread T1: 2022-11-23T01:08:16.4567612Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:16.4569338Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4569826Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4570345Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4570920Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4571483Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4571890Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4572281Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4572655Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4572822Z 2022-11-23T01:08:16.4573023Z  Previous write of size 8 at 0x7ba40006a3b8 by main thread: 2022-11-23T01:08:16.4575356Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dfac) 2022-11-23T01:08:16.4576970Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4577443Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4577987Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4578671Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4579164Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4579577Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4580024Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4580465Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4581403Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4582336Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4582785Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4583403Z #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+0x6562cde) 2022-11-23T01:08:16.4584235Z #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+0x20cf997) 2022-11-23T01:08:16.4584837Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4585279Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4586318Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4587360Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4587843Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4588932Z #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+0x3374cd0) 2022-11-23T01:08:16.4590056Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4591174Z #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+0x6234d5e) 2022-11-23T01:08:16.4592262Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4593387Z #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+0x503a5d4) 2022-11-23T01:08:16.4594412Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4594935Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4595380Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4595738Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4596162Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4596544Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4596805Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4597070Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4597352Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4597834Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4598274Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4598511Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4598641Z 2022-11-23T01:08:16.4598859Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4599192Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4599457Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4599619Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4599828Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4600273Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4600584Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4600852Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4601119Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4602191Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4602855Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4603162Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4604195Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4604511Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4604690Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4604965Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4606083Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4606422Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4607495Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4607774Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4608046Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4609196Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4609533Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4610622Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4610938Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4611132Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4611434Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4612575Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4612888Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4613954Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4614257Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4614527Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4615657Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4615990Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4617103Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4617393Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4617613Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4617762Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4618403Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4618646Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4618845Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4619047Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4619282Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4619502Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4619893Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4620284Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4620499Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4620756Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4621578Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4621804Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4622054Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4622925Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4623172Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4624039Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4624288Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4625174Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4625392Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4625657Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4625836Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4626004Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4626260Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4626402Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4626521Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4626642Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4626791Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4627090Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4627209Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4627303Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4627309Z 2022-11-23T01:08:16.4627526Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.4627697Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4627920Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4628238Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4628412Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4628711Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4628866Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4629062Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4629470Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4629760Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4629948Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4630189Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4630747Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4630915Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4631145Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4631812Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4632051Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4632826Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4633005Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4633150Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4633728Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4633876Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4634029Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4634288Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4634405Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4634526Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4634675Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4634825Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4635145Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4635264Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4635358Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4635364Z 2022-11-23T01:08:16.4637034Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dfac) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4637132Z ================== 2022-11-23T01:08:16.4637198Z ================== 2022-11-23T01:08:16.4637355Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4637533Z  Write of size 8 at 0x7ba40006a3c0 by thread T1: 2022-11-23T01:08:16.4639696Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:16.4639961Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4640183Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4640495Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4640784Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4641055Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4641198Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4641425Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4641561Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4641567Z 2022-11-23T01:08:16.4641743Z  Previous write of size 8 at 0x7ba40006a3c0 by main thread: 2022-11-23T01:08:16.4643892Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:16.4644183Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4644407Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4644694Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4644984Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4645180Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4645382Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4645610Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4645851Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4646563Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4646807Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4647025Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4647438Z #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+0x6562cde) 2022-11-23T01:08:16.4647827Z #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+0x20cf997) 2022-11-23T01:08:16.4648042Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4648258Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4649069Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4649304Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4649558Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4650414Z #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+0x3374cd0) 2022-11-23T01:08:16.4650667Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4651519Z #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+0x6234d5e) 2022-11-23T01:08:16.4651788Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4652665Z #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+0x503a5d4) 2022-11-23T01:08:16.4652884Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4653146Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4653323Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4653491Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4653748Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4653865Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4653985Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4654094Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4654242Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4654585Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4654707Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4654802Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4654808Z 2022-11-23T01:08:16.4655031Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4655200Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4655326Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4655486Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4655692Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4656138Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4656449Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4656715Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4656983Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4658055Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4658866Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4659220Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4660250Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4660664Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4660856Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4661131Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4662251Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4662564Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4663711Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4663993Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4664265Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4665419Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4665755Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4666842Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4667157Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4667356Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4667651Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4668763Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4669098Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4670252Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4670536Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4670806Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4671960Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4672295Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4673407Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4673696Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4673887Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4674036Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4674676Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4674833Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4675029Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4675256Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4675494Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4675741Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4676128Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4676519Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4676766Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4676982Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4677798Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4678020Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4678270Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4679098Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4679347Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4680223Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4680489Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4681344Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4681593Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4681854Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4682038Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4682204Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4682463Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4682579Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4682701Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4682822Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4682957Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4683272Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4683391Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4683484Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4683491Z 2022-11-23T01:08:16.4683718Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.4683887Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4684136Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4684456Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4684633Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4684933Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4685088Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4685281Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4685698Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4685949Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4686134Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4686326Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4686885Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4687051Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4687279Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4687946Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4688157Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4688958Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4689137Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4689283Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4689859Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4690006Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4690158Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4690415Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4690559Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4690680Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4690803Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4690952Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4691267Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4691388Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4691469Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4691474Z 2022-11-23T01:08:16.4693155Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4693231Z ================== 2022-11-23T01:08:16.4693296Z ================== 2022-11-23T01:08:16.4693451Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4693628Z  Write of size 8 at 0x7ba40006a3c0 by thread T2: 2022-11-23T01:08:16.4695821Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:16.4696100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4696325Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4696640Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4696933Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4697203Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4697346Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4697571Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4697697Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4697716Z 2022-11-23T01:08:16.4697892Z  Previous write of size 8 at 0x7ba40006a3c0 by main thread: 2022-11-23T01:08:16.4700224Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871dff2) 2022-11-23T01:08:16.4700486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4700712Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4700994Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4701280Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4701477Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4701682Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4701947Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4702162Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4702881Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4703124Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4703345Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4703732Z #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+0x6562cde) 2022-11-23T01:08:16.4704120Z #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+0x20cf997) 2022-11-23T01:08:16.4704335Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4704552Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4705393Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4705617Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4705876Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4706714Z #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+0x3374cd0) 2022-11-23T01:08:16.4706990Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4707843Z #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+0x6234d5e) 2022-11-23T01:08:16.4708090Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4708992Z #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+0x503a5d4) 2022-11-23T01:08:16.4709213Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4709473Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4709722Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4709893Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4710155Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4710271Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4710378Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4710533Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4710682Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4710994Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4711117Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4711212Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4711217Z 2022-11-23T01:08:16.4711446Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4711616Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4711743Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4711910Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4712198Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4712788Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4713065Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4713334Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4713603Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4714711Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4715363Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4715695Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4716729Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4717007Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4717199Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4717470Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4718617Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4718927Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4719996Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4720298Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4720568Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4721700Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4722067Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4723167Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4723485Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4723678Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4723979Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4725092Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4725401Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4726490Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4726786Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4727055Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4728218Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4728538Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4729669Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4729960Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4730155Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4730304Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4730953Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4731147Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4731345Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4731546Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4731782Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4732004Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4732390Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4732783Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4732998Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4733215Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4734046Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4734284Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4734536Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4735366Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4735639Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4736487Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4736736Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4737612Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4737828Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4738090Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4738287Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4738452Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4738809Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4738924Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4739032Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4739154Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4739300Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4739616Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4739734Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4739831Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4739837Z 2022-11-23T01:08:16.4740111Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.4740281Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4740502Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4740815Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4740988Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4741286Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4741441Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4741629Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4742034Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4742243Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4742432Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4742623Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4743181Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4743345Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4743605Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4744277Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4744488Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4745254Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4745459Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4745600Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4746177Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4746324Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4746473Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4746726Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4746843Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4746961Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4747080Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4747230Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4747529Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4747646Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4747739Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4747745Z 2022-11-23T01:08:16.4749436Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871dff2) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4749509Z ================== 2022-11-23T01:08:16.4749634Z ================== 2022-11-23T01:08:16.4749807Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.4749986Z  Write of size 8 at 0x7ba40006a3b0 by thread T3: 2022-11-23T01:08:16.4752148Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4752459Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4752681Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4752965Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4753252Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4753522Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.4753650Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.4753874Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.4754037Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.4754043Z 2022-11-23T01:08:16.4754233Z  Previous write of size 8 at 0x7ba40006a3b0 by main thread: 2022-11-23T01:08:16.4756368Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871df35) 2022-11-23T01:08:16.4756676Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.4756893Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.4757172Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.4757460Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.4757652Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.4757853Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.4758081Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.4758292Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.4759003Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.4759277Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.4759498Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4759884Z #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+0x6562cde) 2022-11-23T01:08:16.4760269Z #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+0x20cf997) 2022-11-23T01:08:16.4760480Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4760718Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4776107Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4776346Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4776603Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4777438Z #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+0x3374cd0) 2022-11-23T01:08:16.4777690Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4778805Z #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+0x6234d5e) 2022-11-23T01:08:16.4779059Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4779926Z #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+0x503a5d4) 2022-11-23T01:08:16.4780186Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4780453Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4780634Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4780802Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4781059Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4781175Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4781298Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4781422Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4781573Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4781887Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4781997Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4782094Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4782101Z 2022-11-23T01:08:16.4782356Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.4782528Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.4782657Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.4782820Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.4783063Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.4783512Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.4783786Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.4784056Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.4784326Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.4785436Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.4786084Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.4786391Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.4787463Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.4787751Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.4787939Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.4788212Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.4789312Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.4789728Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4790815Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4791132Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4791401Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4792549Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4792896Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4793989Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4794294Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4794489Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4794790Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.4795917Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.4796227Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.4797323Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.4797601Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.4797868Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.4799035Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.4799356Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.4800448Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.4800776Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.4800970Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.4801103Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.4801752Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.4801908Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.4802105Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.4802303Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.4802530Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.4802749Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.4803150Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.4803570Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.4803786Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.4804004Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.4804803Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.4805050Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.4805302Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.4806132Z #50 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+0x3374cd0) 2022-11-23T01:08:16.4806385Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4807245Z #52 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+0x6234d5e) 2022-11-23T01:08:16.4807527Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.4808389Z #54 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+0x503a5d4) 2022-11-23T01:08:16.4808730Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.4809028Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.4809206Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.4809370Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.4809624Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4809743Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4809865Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4809987Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4810139Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4810454Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4810574Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4810655Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4810673Z 2022-11-23T01:08:16.4810883Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.4811051Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.4811274Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.4811590Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.4811767Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.4812058Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.4812211Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.4812460Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.4812867Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.4813087Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.4813274Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.4813468Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.4814026Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.4814214Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.4814444Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.4815109Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.4815324Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.4816105Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.4816285Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.4816418Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.4817070Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.4817218Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.4817368Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.4817612Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.4817725Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.4817842Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.4817962Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.4818108Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.4818423Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.4818636Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.4818777Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.4818782Z 2022-11-23T01:08:16.4820443Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871df35) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.4820515Z ================== 2022-11-23T01:08:16.5203857Z ================== 2022-11-23T01:08:16.5204252Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.5204588Z  Write of size 8 at 0x7ba40006b758 by thread T1: 2022-11-23T01:08:16.5208894Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5209393Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5209808Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5210332Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5210847Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5211358Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.5211676Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.5212134Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.5212471Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.5212482Z 2022-11-23T01:08:16.5213147Z  Previous write of size 8 at 0x7ba40006b758 by main thread: 2022-11-23T01:08:16.5217810Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5218298Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5218867Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5219372Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5220013Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5220376Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.5220739Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.5221142Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.5221516Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.5222827Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.5223188Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.5223467Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5223966Z #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+0x6562cde) 2022-11-23T01:08:16.5224409Z #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+0x20cf997) 2022-11-23T01:08:16.5224655Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5224917Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5225988Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5226375Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5226713Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5228079Z #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+0x3374cd0) 2022-11-23T01:08:16.5228477Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5230013Z #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+0x6234d5e) 2022-11-23T01:08:16.5230421Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5231846Z #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+0x503a5d4) 2022-11-23T01:08:16.5232197Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5232624Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5232880Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5233189Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5233626Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5233846Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5234071Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5234256Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5234545Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5235098Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5235268Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5235402Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5235417Z 2022-11-23T01:08:16.5235746Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.5235987Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.5236221Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.5236430Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.5236723Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.5237360Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.5237738Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.5238118Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.5238489Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.5239995Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.5240925Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.5241365Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.5242813Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.5243247Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.5243513Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.5243911Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.5245572Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.5246129Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5247693Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5248117Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5248488Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5250085Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5250563Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5252129Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5252566Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5252869Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5253304Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.5254941Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.5255389Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5256920Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5257350Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5257746Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5259401Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5259929Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5261485Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5261884Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5262147Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5262383Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.5263329Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.5263544Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.5263835Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.5264131Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.5264457Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.5264757Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5265319Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.5265881Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.5266174Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5266475Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5267632Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5267943Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5268326Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5269922Z #50 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+0x3374cd0) 2022-11-23T01:08:16.5270347Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5271783Z #52 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+0x6234d5e) 2022-11-23T01:08:16.5272248Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5273713Z #54 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+0x503a5d4) 2022-11-23T01:08:16.5274072Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5274514Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5274797Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5275072Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5275500Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5275690Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5275883Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5276086Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5276316Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5276882Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5277082Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5277238Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5277247Z 2022-11-23T01:08:16.5277645Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:16.5277926Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.5278300Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.5278829Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.5279121Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.5279603Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.5279906Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.5280227Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.5280910Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.5281274Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.5281587Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.5281915Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.5282861Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.5283208Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.5283597Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.5284702Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.5285094Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.5286400Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.5286720Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.5286946Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.5287945Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.5288228Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.5288489Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.5288903Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5289092Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5289294Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5289493Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5289739Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5290261Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5290458Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5290619Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5290627Z 2022-11-23T01:08:16.5293484Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.5293601Z ================== 2022-11-23T01:08:16.5293714Z ================== 2022-11-23T01:08:16.5294053Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.5294357Z  Write of size 8 at 0x7ba40006b758 by thread T2: 2022-11-23T01:08:16.5298010Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5298595Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5298961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5299435Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5299915Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5300365Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.5300596Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.5300975Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.5301195Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.5301203Z 2022-11-23T01:08:16.5301535Z  Previous write of size 8 at 0x7ba40006b758 by main thread: 2022-11-23T01:08:16.5305298Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5305767Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5306191Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5306738Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5307331Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5307688Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.5308067Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.5308498Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.5308902Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.5310380Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.5310834Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.5311256Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5311974Z #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+0x6562cde) 2022-11-23T01:08:16.5312786Z #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+0x20cf997) 2022-11-23T01:08:16.5313194Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5313586Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5315141Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5315619Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5316095Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5317697Z #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+0x3374cd0) 2022-11-23T01:08:16.5318145Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5319827Z #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+0x6234d5e) 2022-11-23T01:08:16.5320304Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5321997Z #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+0x503a5d4) 2022-11-23T01:08:16.5322413Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5322885Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5323233Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5323543Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5324035Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5324242Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5324451Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5324669Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5324945Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5325556Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5325772Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5325921Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5325931Z 2022-11-23T01:08:16.5326350Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.5326663Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.5326892Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.5327250Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.5327625Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.5328469Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.5328972Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.5329511Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.5330023Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.5332082Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.5333325Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.5333881Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.5335895Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.5336424Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.5336803Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.5337297Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.5339550Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.5340217Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5342252Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5342769Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5343299Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5345518Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5346115Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5348203Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5348784Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5349125Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5349804Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.5351990Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.5352559Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5354591Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5355179Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5355687Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5357836Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5358453Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5360591Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5361119Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5361462Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5361734Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.5362972Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.5363253Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.5363622Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.5363996Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.5364417Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.5364811Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5365585Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.5366292Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.5366685Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5367093Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5368662Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5369097Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5369559Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5371148Z #50 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+0x3374cd0) 2022-11-23T01:08:16.5371633Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5373257Z #52 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+0x6234d5e) 2022-11-23T01:08:16.5373740Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5375406Z #54 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+0x503a5d4) 2022-11-23T01:08:16.5375807Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5376299Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5376609Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5376921Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5377422Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5377633Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5377878Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5378177Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5378462Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5379159Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5379381Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5379551Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5379562Z 2022-11-23T01:08:16.5379981Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:16.5380286Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.5380680Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.5381292Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.5381614Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.5382145Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.5382434Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.5382796Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.5383553Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.5383966Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.5384315Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.5384661Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.5385785Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.5386101Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.5386516Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.5387792Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.5388218Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.5389772Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.5390098Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.5390361Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.5391462Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.5391720Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.5392005Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.5392494Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5392703Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5392913Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5393122Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5393389Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5394038Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5394242Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5394405Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5394414Z 2022-11-23T01:08:16.5397671Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.5397844Z ================== 2022-11-23T01:08:16.5398046Z ================== 2022-11-23T01:08:16.5398352Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:16.5398667Z  Write of size 8 at 0x7ba40006b758 by thread T3: 2022-11-23T01:08:16.5402855Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5403336Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5403753Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5404260Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5404847Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5405361Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:16.5405611Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:16.5406008Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:16.5406254Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:16.5406265Z 2022-11-23T01:08:16.5406610Z  Previous write of size 8 at 0x7ba40006b758 by main thread: 2022-11-23T01:08:16.5410819Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x871e05f) 2022-11-23T01:08:16.5411355Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd0aae2) 2022-11-23T01:08:16.5411773Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xcfd742) 2022-11-23T01:08:16.5412286Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd09ef2) 2022-11-23T01:08:16.5412820Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:16.5413175Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:16.5413545Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xcfd1a7) 2022-11-23T01:08:16.5413958Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x86ee3a4) 2022-11-23T01:08:16.5414355Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x18233ce) 2022-11-23T01:08:16.5415757Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___index_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+0x2b41976) 2022-11-23T01:08:16.5416221Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:16.5416629Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5417338Z #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+0x6562cde) 2022-11-23T01:08:16.5418133Z #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+0x20cf997) 2022-11-23T01:08:16.5418636Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5419038Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5420574Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5420999Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5421473Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5423141Z #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+0x3374cd0) 2022-11-23T01:08:16.5423593Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5425253Z #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+0x6234d5e) 2022-11-23T01:08:16.5425777Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5427429Z #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+0x503a5d4) 2022-11-23T01:08:16.5427826Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5428296Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5428615Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5428926Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5429411Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5429675Z #29 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5429888Z #30 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5430101Z #31 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5430376Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5430985Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5431246Z #34 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5431397Z #35 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5431406Z 2022-11-23T01:08:16.5431826Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2022-11-23T01:08:16.5432135Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:16.5432363Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:16.5432659Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:16.5433030Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc8aab3) 2022-11-23T01:08:16.5433894Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc8a865) 2022-11-23T01:08:16.5434392Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc876a8) 2022-11-23T01:08:16.5434919Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc84e2f) 2022-11-23T01:08:16.5435425Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x18ce224) 2022-11-23T01:08:16.5437492Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2b35cca) 2022-11-23T01:08:16.5438688Z #9 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x25bc06e) 2022-11-23T01:08:16.5439291Z #10 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2485b67) 2022-11-23T01:08:16.5441301Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x29f32f8) 2022-11-23T01:08:16.5441829Z #12 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24854ab) 2022-11-23T01:08:16.5442210Z #13 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd0be2e) 2022-11-23T01:08:16.5442700Z #14 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x188fe8a) 2022-11-23T01:08:16.5444823Z #15 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2e8827f) 2022-11-23T01:08:16.5445419Z #16 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5447485Z #17 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5448014Z #18 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5448521Z #19 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5450704Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5451376Z #21 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5453490Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5454033Z #23 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5454426Z #24 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5454980Z #25 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x78d3abb) 2022-11-23T01:08:16.5457085Z #26 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x668866f) 2022-11-23T01:08:16.5457723Z #27 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8ddd) 2022-11-23T01:08:16.5459890Z #28 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a0b3f3) 2022-11-23T01:08:16.5460402Z #29 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x1fb8a3d) 2022-11-23T01:08:16.5460921Z #30 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x189175e) 2022-11-23T01:08:16.5463179Z #31 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x316f2d8) 2022-11-23T01:08:16.5463782Z #32 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22743d4) 2022-11-23T01:08:16.5465892Z #33 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a0b88c) 2022-11-23T01:08:16.5466485Z #34 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2274011) 2022-11-23T01:08:16.5466833Z #35 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc2964d) 2022-11-23T01:08:16.5467104Z #36 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x1892537) 2022-11-23T01:08:16.5468301Z #37 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x316bcc5) 2022-11-23T01:08:16.5468585Z #38 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x1fb2b86) 2022-11-23T01:08:16.5468957Z #39 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x78cb56d) 2022-11-23T01:08:16.5469324Z #40 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x78cad10) 2022-11-23T01:08:16.5469885Z #41 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c714e) 2022-11-23T01:08:16.5470301Z #42 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:16.5471044Z #43 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:16.5471761Z #44 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x20cf997) 2022-11-23T01:08:16.5472163Z #45 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab95) 2022-11-23T01:08:16.5472604Z #46 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1edfeb9) 2022-11-23T01:08:16.5474138Z #47 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2e346c3) 2022-11-23T01:08:16.5474540Z #48 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x203c354) 2022-11-23T01:08:16.5475000Z #49 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x323777c) 2022-11-23T01:08:16.5476562Z #50 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+0x3374cd0) 2022-11-23T01:08:16.5477049Z #51 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5478719Z #52 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+0x6234d5e) 2022-11-23T01:08:16.5479175Z #53 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6aea8) 2022-11-23T01:08:16.5480835Z #54 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+0x503a5d4) 2022-11-23T01:08:16.5481264Z #55 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f6ab34) 2022-11-23T01:08:16.5481763Z #56 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3eac57) 2022-11-23T01:08:16.5482088Z #57 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:16.5482383Z #58 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d44e5) 2022-11-23T01:08:16.5482848Z #59 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5483057Z #60 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5483275Z #61 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5483497Z #62 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5483766Z #63 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5484349Z #64 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5484571Z #65 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5484740Z #66 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5484751Z 2022-11-23T01:08:16.5485148Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:16.5485445Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:16.5485835Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:16.5486482Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:16.5486809Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:16.5487350Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:16.5487626Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:16.5487991Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:16.5488782Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:16.5489182Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:16.5489530Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:16.5489941Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:16.5490984Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:16.5491288Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:16.5491712Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:16.5492978Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:16.5493368Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:16.5494872Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:16.5495229Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:16.5495467Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:16.5496609Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:16.5496872Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:16.5497138Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:16.5497620Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:16.5497827Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:16.5498084Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:16.5498295Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:16.5498677Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:16.5499290Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:16.5499512Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:16.5499682Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:16.5499693Z 2022-11-23T01:08:16.5502897Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x871e05f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda6'()::operat 2022-11-23T01:08:16.5503024Z ================== 2022-11-23T01:08:16.8756097Z [ OK ] LazyOpsTest.TestIndexPutImpl (1210 ms) 2022-11-23T01:08:16.8756596Z [ RUN ] LazyOpsTest.TestIndexFillWithScalar 2022-11-23T01:08:16.9225992Z [ OK ] LazyOpsTest.TestIndexFillWithScalar (47 ms) 2022-11-23T01:08:16.9226619Z [ RUN ] LazyOpsTest.TestIndexFillWithScalarInPlace 2022-11-23T01:08:16.9628459Z [ OK ] LazyOpsTest.TestIndexFillWithScalarInPlace (40 ms) 2022-11-23T01:08:16.9629084Z [ RUN ] LazyOpsTest.TestIndexFillWithTensor 2022-11-23T01:08:17.0002231Z [ OK ] LazyOpsTest.TestIndexFillWithTensor (37 ms) 2022-11-23T01:08:17.0002828Z [ RUN ] LazyOpsTest.TestIndexFillWithTensorInPlace 2022-11-23T01:08:17.0452660Z [ OK ] LazyOpsTest.TestIndexFillWithTensorInPlace (44 ms) 2022-11-23T01:08:17.0453238Z [ RUN ] LazyOpsTest.TestIndexFillRank0 2022-11-23T01:08:17.0819321Z [ OK ] LazyOpsTest.TestIndexFillRank0 (36 ms) 2022-11-23T01:08:17.0819835Z [ RUN ] LazyOpsTest.TestIndexAdd 2022-11-23T01:08:17.1976482Z [ OK ] LazyOpsTest.TestIndexAdd (115 ms) 2022-11-23T01:08:17.1977070Z [ RUN ] LazyOpsTest.TestIndexAddInPlace 2022-11-23T01:08:17.2881347Z [ OK ] LazyOpsTest.TestIndexAddInPlace (90 ms) 2022-11-23T01:08:17.2881800Z [ RUN ] LazyOpsTest.TestIndexAddRank0 2022-11-23T01:08:17.3221553Z [ OK ] LazyOpsTest.TestIndexAddRank0 (33 ms) 2022-11-23T01:08:17.3222069Z [ RUN ] LazyOpsTest.TestIndexCopy 2022-11-23T01:08:17.3573610Z [ OK ] LazyOpsTest.TestIndexCopy (35 ms) 2022-11-23T01:08:17.3574148Z [ RUN ] LazyOpsTest.TestIndexCopyInPlace 2022-11-23T01:08:17.4030237Z [ OK ] LazyOpsTest.TestIndexCopyInPlace (45 ms) 2022-11-23T01:08:17.4030780Z [ RUN ] LazyOpsTest.TestIndexCopyRank0 2022-11-23T01:08:17.4369575Z [ OK ] LazyOpsTest.TestIndexCopyRank0 (33 ms) 2022-11-23T01:08:17.4370043Z [ RUN ] LazyOpsTest.TestRelu 2022-11-23T01:08:17.4403850Z [ OK ] LazyOpsTest.TestRelu (3 ms) 2022-11-23T01:08:17.4404590Z [ RUN ] LazyOpsTest.TestReluInPlace 2022-11-23T01:08:17.4459541Z [ OK ] LazyOpsTest.TestReluInPlace (5 ms) 2022-11-23T01:08:17.4460130Z [ RUN ] LazyOpsTest.TestHardshrink 2022-11-23T01:08:17.4472771Z [ OK ] LazyOpsTest.TestHardshrink (1 ms) 2022-11-23T01:08:17.4473363Z [ RUN ] LazyOpsTest.TestHardSigmoid 2022-11-23T01:08:17.4505651Z [ OK ] LazyOpsTest.TestHardSigmoid (3 ms) 2022-11-23T01:08:17.4506242Z [ RUN ] LazyOpsTest.TestHardSigmoidInPlace 2022-11-23T01:08:17.4560128Z [ OK ] LazyOpsTest.TestHardSigmoidInPlace (5 ms) 2022-11-23T01:08:17.4560721Z [ RUN ] LazyOpsTest.TestHardSigmoidBackward 2022-11-23T01:08:17.4674695Z [ OK ] LazyOpsTest.TestHardSigmoidBackward (11 ms) 2022-11-23T01:08:17.4675267Z [ RUN ] LazyOpsTest.TestSoftshrink 2022-11-23T01:08:17.4686981Z [ OK ] LazyOpsTest.TestSoftshrink (1 ms) 2022-11-23T01:08:17.4687545Z [ RUN ] LazyOpsTest.TestHardtanh 2022-11-23T01:08:17.4700352Z [ OK ] LazyOpsTest.TestHardtanh (1 ms) 2022-11-23T01:08:17.4700938Z [ RUN ] LazyOpsTest.TestHardtanhInPlace 2022-11-23T01:08:17.4719950Z [ OK ] LazyOpsTest.TestHardtanhInPlace (1 ms) 2022-11-23T01:08:17.4720577Z [ RUN ] LazyOpsTest.TestLeakyRelu 2022-11-23T01:08:17.4754348Z [ OK ] LazyOpsTest.TestLeakyRelu (3 ms) 2022-11-23T01:08:17.4754949Z [ RUN ] LazyOpsTest.TestLeakyReluInPlace 2022-11-23T01:08:17.4810075Z [ OK ] LazyOpsTest.TestLeakyReluInPlace (5 ms) 2022-11-23T01:08:17.4810400Z [ RUN ] LazyOpsTest.TestExp 2022-11-23T01:08:17.4844687Z [ OK ] LazyOpsTest.TestExp (3 ms) 2022-11-23T01:08:17.4844962Z [ RUN ] LazyOpsTest.TestExpm1 2022-11-23T01:08:17.4859115Z [ OK ] LazyOpsTest.TestExpm1 (1 ms) 2022-11-23T01:08:17.4859456Z [ RUN ] LazyOpsTest.TestLog 2022-11-23T01:08:17.4894280Z [ OK ] LazyOpsTest.TestLog (3 ms) 2022-11-23T01:08:17.4894636Z [ RUN ] LazyOpsTest.TestLog2 2022-11-23T01:08:17.4928651Z [ OK ] LazyOpsTest.TestLog2 (3 ms) 2022-11-23T01:08:17.4929035Z [ RUN ] LazyOpsTest.TestLog10 2022-11-23T01:08:17.4942666Z [ OK ] LazyOpsTest.TestLog10 (1 ms) 2022-11-23T01:08:17.4943030Z [ RUN ] LazyOpsTest.TestLog1p 2022-11-23T01:08:17.4957174Z [ OK ] LazyOpsTest.TestLog1p (1 ms) 2022-11-23T01:08:17.4957525Z [ RUN ] LazyOpsTest.TestErf 2022-11-23T01:08:17.4971393Z [ OK ] LazyOpsTest.TestErf (1 ms) 2022-11-23T01:08:17.4971756Z [ RUN ] LazyOpsTest.TestErfc 2022-11-23T01:08:17.4986187Z [ OK ] LazyOpsTest.TestErfc (1 ms) 2022-11-23T01:08:17.4986516Z [ RUN ] LazyOpsTest.TestErfinv 2022-11-23T01:08:17.5000314Z [ OK ] LazyOpsTest.TestErfinv (1 ms) 2022-11-23T01:08:17.5000676Z [ RUN ] LazyOpsTest.TestSqrt 2022-11-23T01:08:17.5035440Z [ OK ] LazyOpsTest.TestSqrt (3 ms) 2022-11-23T01:08:17.5035858Z [ RUN ] LazyOpsTest.TestRsqrt 2022-11-23T01:08:17.5068049Z [ OK ] LazyOpsTest.TestRsqrt (3 ms) 2022-11-23T01:08:17.5068426Z [ RUN ] LazyOpsTest.TestReciprocal 2022-11-23T01:08:17.5100048Z [ OK ] LazyOpsTest.TestReciprocal (3 ms) 2022-11-23T01:08:17.5100445Z [ RUN ] LazyOpsTest.TestPowTensorScalar 2022-11-23T01:08:17.5134380Z [ OK ] LazyOpsTest.TestPowTensorScalar (3 ms) 2022-11-23T01:08:17.5134794Z [ RUN ] LazyOpsTest.TestPowTensorScalarInPlace 2022-11-23T01:08:17.5190771Z [ OK ] LazyOpsTest.TestPowTensorScalarInPlace (5 ms) 2022-11-23T01:08:17.5191177Z [ RUN ] LazyOpsTest.TestPowTensorTensor 2022-11-23T01:08:17.5229236Z [ OK ] LazyOpsTest.TestPowTensorTensor (3 ms) 2022-11-23T01:08:17.5229901Z [ RUN ] LazyOpsTest.TestPowTensorTensorInPlace 2022-11-23T01:08:17.5293373Z [ OK ] LazyOpsTest.TestPowTensorTensorInPlace (6 ms) 2022-11-23T01:08:17.5293838Z [ RUN ] LazyOpsTest.TestPowTensorTensorBroadcast 2022-11-23T01:08:17.5331263Z [ OK ] LazyOpsTest.TestPowTensorTensorBroadcast (3 ms) 2022-11-23T01:08:17.5331704Z [ RUN ] LazyOpsTest.TestPowScalarTensor 2022-11-23T01:08:17.5345880Z [ OK ] LazyOpsTest.TestPowScalarTensor (1 ms) 2022-11-23T01:08:17.5346301Z [ RUN ] LazyOpsTest.TestPowIntExponent 2022-11-23T01:08:17.5381188Z [ OK ] LazyOpsTest.TestPowIntExponent (3 ms) 2022-11-23T01:08:17.5381599Z [ RUN ] LazyOpsTest.TestFmodScalar 2022-11-23T01:08:17.5396466Z [ OK ] LazyOpsTest.TestFmodScalar (1 ms) 2022-11-23T01:08:17.5396874Z [ RUN ] LazyOpsTest.TestFmodScalarInPlace 2022-11-23T01:08:17.5418419Z [ OK ] LazyOpsTest.TestFmodScalarInPlace (2 ms) 2022-11-23T01:08:17.5418963Z [ RUN ] LazyOpsTest.TestFmodTensor 2022-11-23T01:08:17.5434791Z [ OK ] LazyOpsTest.TestFmodTensor (1 ms) 2022-11-23T01:08:17.5435183Z [ RUN ] LazyOpsTest.TestFmodTensorInPlace 2022-11-23T01:08:17.5458249Z [ OK ] LazyOpsTest.TestFmodTensorInPlace (2 ms) 2022-11-23T01:08:17.5458794Z [ RUN ] LazyOpsTest.TestRemainderScalar 2022-11-23T01:08:17.5497749Z [ OK ] LazyOpsTest.TestRemainderScalar (3 ms) 2022-11-23T01:08:17.5498245Z [ RUN ] LazyOpsTest.TestRemainderScalarInPlace 2022-11-23T01:08:17.5561776Z [ OK ] LazyOpsTest.TestRemainderScalarInPlace (6 ms) 2022-11-23T01:08:17.5562221Z [ RUN ] LazyOpsTest.TestRemainderTensor 2022-11-23T01:08:17.5600614Z [ OK ] LazyOpsTest.TestRemainderTensor (3 ms) 2022-11-23T01:08:17.5601058Z [ RUN ] LazyOpsTest.TestRemainderTensorInPlace 2022-11-23T01:08:17.5665882Z [ OK ] LazyOpsTest.TestRemainderTensorInPlace (6 ms) 2022-11-23T01:08:17.5666292Z [ RUN ] LazyOpsTest.TestWhere 2022-11-23T01:08:17.5671245Z [W TensorCompare.cpp:491] 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()) 2022-11-23T01:08:17.5687406Z [ OK ] LazyOpsTest.TestWhere (2 ms) 2022-11-23T01:08:17.5687808Z [ RUN ] LazyOpsTest.TestWhereBroadcast 2022-11-23T01:08:17.5708556Z [ OK ] LazyOpsTest.TestWhereBroadcast (2 ms) 2022-11-23T01:08:17.5708881Z [ RUN ] LazyOpsTest.TestThreshold 2022-11-23T01:08:17.5744509Z [ OK ] LazyOpsTest.TestThreshold (3 ms) 2022-11-23T01:08:17.5744861Z [ RUN ] LazyOpsTest.TestThresholdBackward 2022-11-23T01:08:17.5853730Z [ OK ] LazyOpsTest.TestThresholdBackward (10 ms) 2022-11-23T01:08:17.5854101Z [ RUN ] LazyOpsTest.TestThresholdInPlace 2022-11-23T01:08:17.5903124Z [ OK ] LazyOpsTest.TestThresholdInPlace (4 ms) 2022-11-23T01:08:17.5903434Z [ RUN ] LazyOpsTest.TestElu 2022-11-23T01:08:17.5938672Z [ OK ] LazyOpsTest.TestElu (3 ms) 2022-11-23T01:08:17.5939022Z [ RUN ] LazyOpsTest.TestEluInPlace 2022-11-23T01:08:17.5995486Z [ OK ] LazyOpsTest.TestEluInPlace (5 ms) 2022-11-23T01:08:17.5995774Z [ RUN ] LazyOpsTest.TestSelu 2022-11-23T01:08:17.6030572Z [ OK ] LazyOpsTest.TestSelu (3 ms) 2022-11-23T01:08:17.6030883Z [ RUN ] LazyOpsTest.TestSeluInPlace 2022-11-23T01:08:17.6087094Z [ OK ] LazyOpsTest.TestSeluInPlace (5 ms) 2022-11-23T01:08:17.6087438Z [ RUN ] LazyOpsTest.TestCelu 2022-11-23T01:08:17.6102733Z [ OK ] LazyOpsTest.TestCelu (1 ms) 2022-11-23T01:08:17.6103044Z [ RUN ] LazyOpsTest.TestCeluInPlace 2022-11-23T01:08:17.6125523Z [ OK ] LazyOpsTest.TestCeluInPlace (2 ms) 2022-11-23T01:08:17.6125831Z [ RUN ] LazyOpsTest.TestGelu 2022-11-23T01:08:17.6161406Z [ OK ] LazyOpsTest.TestGelu (3 ms) 2022-11-23T01:08:17.6161710Z [ RUN ] LazyOpsTest.TestAddMatMul 2022-11-23T01:08:17.6308149Z [ OK ] LazyOpsTest.TestAddMatMul (14 ms) 2022-11-23T01:08:17.6308461Z [ RUN ] LazyOpsTest.TestEmbedding 2022-11-23T01:08:17.6352800Z [ OK ] LazyOpsTest.TestEmbedding (4 ms) 2022-11-23T01:08:17.6353094Z [ RUN ] LazyOpsTest.TestOneHot 2022-11-23T01:08:17.6450822Z [ OK ] LazyOpsTest.TestOneHot (9 ms) 2022-11-23T01:08:17.6451136Z [ RUN ] LazyOpsTest.TestTranspose 2022-11-23T01:08:17.6483228Z [ OK ] LazyOpsTest.TestTranspose (3 ms) 2022-11-23T01:08:17.6483642Z [ RUN ] LazyOpsTest.TestTransposeInPlace 2022-11-23T01:08:17.6534327Z [ OK ] LazyOpsTest.TestTransposeInPlace (5 ms) 2022-11-23T01:08:17.6534660Z [ RUN ] LazyOpsTest.TestReshape 2022-11-23T01:08:17.6616018Z [ OK ] LazyOpsTest.TestReshape (8 ms) 2022-11-23T01:08:17.6616337Z [ RUN ] LazyOpsTest.TestResize 2022-11-23T01:08:17.6674862Z [ OK ] LazyOpsTest.TestResize (5 ms) 2022-11-23T01:08:17.6675209Z [ RUN ] LazyOpsTest.TestViewResize 2022-11-23T01:08:17.6763354Z [ OK ] LazyOpsTest.TestViewResize (8 ms) 2022-11-23T01:08:17.6763682Z [ RUN ] LazyOpsTest.TestView 2022-11-23T01:08:17.6839301Z [ OK ] LazyOpsTest.TestView (7 ms) 2022-11-23T01:08:17.6839604Z [ RUN ] LazyOpsTest.TestViewMod 2022-11-23T01:08:17.7037229Z [ OK ] LazyOpsTest.TestViewMod (19 ms) 2022-11-23T01:08:17.7037573Z [ RUN ] LazyOpsTest.TestViewModComplex 2022-11-23T01:08:17.7256480Z [ OK ] LazyOpsTest.TestViewModComplex (21 ms) 2022-11-23T01:08:17.7256831Z [ RUN ] LazyOpsTest.TestViewOfViewMod 2022-11-23T01:08:17.7493420Z [ OK ] LazyOpsTest.TestViewOfViewMod (23 ms) 2022-11-23T01:08:17.7493819Z [ RUN ] LazyOpsTest.TestViewSqueezeAddInPlace 2022-11-23T01:08:17.7593505Z [ OK ] LazyOpsTest.TestViewSqueezeAddInPlace (10 ms) 2022-11-23T01:08:17.7593905Z [ RUN ] LazyOpsTest.TestUnsafeView 2022-11-23T01:08:17.7686038Z [ OK ] LazyOpsTest.TestUnsafeView (9 ms) 2022-11-23T01:08:17.7686391Z [ RUN ] LazyOpsTest.TestNarrow 2022-11-23T01:08:17.7918601Z [ OK ] LazyOpsTest.TestNarrow (23 ms) 2022-11-23T01:08:17.7918934Z [ RUN ] LazyOpsTest.TestNarrowUpdate 2022-11-23T01:08:17.8180443Z [ OK ] LazyOpsTest.TestNarrowUpdate (26 ms) 2022-11-23T01:08:17.8180805Z [ RUN ] LazyOpsTest.TestNarrowUpdateBaseCheck 2022-11-23T01:08:17.8497413Z [ OK ] LazyOpsTest.TestNarrowUpdateBaseCheck (31 ms) 2022-11-23T01:08:17.8497812Z [ RUN ] LazyOpsTest.TestNarrowUpdateTwoSlices 2022-11-23T01:08:18.0020307Z [ OK ] LazyOpsTest.TestNarrowUpdateTwoSlices (152 ms) 2022-11-23T01:08:18.0020689Z [ RUN ] LazyOpsTest.TestNarrowUpdateView 2022-11-23T01:08:18.0328787Z [ OK ] LazyOpsTest.TestNarrowUpdateView (30 ms) 2022-11-23T01:08:18.0329154Z [ RUN ] LazyOpsTest.TestNarrowInNarrowUpdate 2022-11-23T01:08:18.0879614Z [ OK ] LazyOpsTest.TestNarrowInNarrowUpdate (55 ms) 2022-11-23T01:08:18.0879953Z [ RUN ] LazyOpsTest.TestNarrowCopy 2022-11-23T01:08:18.0982812Z [ OK ] LazyOpsTest.TestNarrowCopy (10 ms) 2022-11-23T01:08:18.0983126Z [ RUN ] LazyOpsTest.TestViewAs 2022-11-23T01:08:18.1080128Z [ OK ] LazyOpsTest.TestViewAs (9 ms) 2022-11-23T01:08:18.1080441Z [ RUN ] LazyOpsTest.TestLogSoftmax 2022-11-23T01:08:18.1332648Z [ OK ] LazyOpsTest.TestLogSoftmax (25 ms) 2022-11-23T01:08:18.1333405Z [ RUN ] LazyOpsTest.TestLogSoftmaxCast 2022-11-23T01:08:18.1677336Z [ OK ] LazyOpsTest.TestLogSoftmaxCast (34 ms) 2022-11-23T01:08:18.1677896Z [ RUN ] LazyOpsTest.TestLogSoftmaxWrapper 2022-11-23T01:08:18.1935989Z [ OK ] LazyOpsTest.TestLogSoftmaxWrapper (25 ms) 2022-11-23T01:08:18.1936545Z [ RUN ] LazyOpsTest.TestSoftmax 2022-11-23T01:08:18.2185497Z [ OK ] LazyOpsTest.TestSoftmax (24 ms) 2022-11-23T01:08:18.2186057Z [ RUN ] LazyOpsTest.TestSoftmaxCast 2022-11-23T01:08:18.2522218Z [ OK ] LazyOpsTest.TestSoftmaxCast (33 ms) 2022-11-23T01:08:18.2522808Z [ RUN ] LazyOpsTest.TestSoftmaxWrapper 2022-11-23T01:08:18.2863142Z [ OK ] LazyOpsTest.TestSoftmaxWrapper (34 ms) 2022-11-23T01:08:18.2863732Z [ RUN ] LazyOpsTest.TestSoftplus 2022-11-23T01:08:18.2899449Z [ OK ] LazyOpsTest.TestSoftplus (3 ms) 2022-11-23T01:08:18.2900004Z [ RUN ] LazyOpsTest.TestMaxPool1D 2022-11-23T01:08:18.3937307Z [ OK ] LazyOpsTest.TestMaxPool1D (103 ms) 2022-11-23T01:08:18.3937882Z [ RUN ] LazyOpsTest.TestMaxPool2D 2022-11-23T01:08:18.4688421Z [ OK ] LazyOpsTest.TestMaxPool2D (75 ms) 2022-11-23T01:08:18.4688999Z [ RUN ] LazyOpsTest.TestMaxPool2DWithIndices 2022-11-23T01:08:18.6462294Z [ OK ] LazyOpsTest.TestMaxPool2DWithIndices (177 ms) 2022-11-23T01:08:18.6462936Z [ RUN ] LazyOpsTest.TestMaxPool2DNonSquare 2022-11-23T01:08:18.7210243Z [ OK ] LazyOpsTest.TestMaxPool2DNonSquare (74 ms) 2022-11-23T01:08:18.7210842Z [ RUN ] LazyOpsTest.TestMaxPool3D 2022-11-23T01:08:18.7436845Z [ OK ] LazyOpsTest.TestMaxPool3D (22 ms) 2022-11-23T01:08:18.7437471Z [ RUN ] LazyOpsTest.TestMaxPool3DWithIndices 2022-11-23T01:08:18.7786584Z [ OK ] LazyOpsTest.TestMaxPool3DWithIndices (34 ms) 2022-11-23T01:08:18.7787357Z [ RUN ] LazyOpsTest.TestMaxPool3DIncompleteAttributes 2022-11-23T01:08:18.7986289Z [ OK ] LazyOpsTest.TestMaxPool3DIncompleteAttributes (19 ms) 2022-11-23T01:08:18.7986981Z [ RUN ] LazyOpsTest.TestMaxPool3DNonSquare 2022-11-23T01:08:18.8197384Z [ OK ] LazyOpsTest.TestMaxPool3DNonSquare (21 ms) 2022-11-23T01:08:18.8197893Z [ RUN ] LazyOpsTest.TestMaxPool2DNoBatch 2022-11-23T01:08:18.8950318Z [ OK ] LazyOpsTest.TestMaxPool2DNoBatch (75 ms) 2022-11-23T01:08:18.8950936Z [ RUN ] LazyOpsTest.TestMaxPool3DNoBatch 2022-11-23T01:08:18.9172072Z [ OK ] LazyOpsTest.TestMaxPool3DNoBatch (22 ms) 2022-11-23T01:08:18.9172958Z [ RUN ] LazyOpsTest.TestAvgPool1D 2022-11-23T01:08:19.0094303Z [ OK ] LazyOpsTest.TestAvgPool1D (92 ms) 2022-11-23T01:08:19.0094865Z [ RUN ] LazyOpsTest.TestAvgPool2D 2022-11-23T01:08:19.0781380Z [ OK ] LazyOpsTest.TestAvgPool2D (68 ms) 2022-11-23T01:08:19.0782009Z [ RUN ] LazyOpsTest.TestAvgPool2DNonSquare 2022-11-23T01:08:19.1482921Z [ OK ] LazyOpsTest.TestAvgPool2DNonSquare (70 ms) 2022-11-23T01:08:19.1483570Z [ RUN ] LazyOpsTest.TestAvgPool3D 2022-11-23T01:08:19.1677431Z [ OK ] LazyOpsTest.TestAvgPool3D (19 ms) 2022-11-23T01:08:19.1678108Z [ RUN ] LazyOpsTest.TestAvgPool3DIncompleteAttributes 2022-11-23T01:08:19.1850546Z [ OK ] LazyOpsTest.TestAvgPool3DIncompleteAttributes (17 ms) 2022-11-23T01:08:19.1851240Z [ RUN ] LazyOpsTest.TestAvgPool3DNonSquare 2022-11-23T01:08:19.2029654Z [ OK ] LazyOpsTest.TestAvgPool3DNonSquare (17 ms) 2022-11-23T01:08:19.2030241Z [ RUN ] LazyOpsTest.TestAvgPool2DNoBatch 2022-11-23T01:08:19.2718165Z [ OK ] LazyOpsTest.TestAvgPool2DNoBatch (68 ms) 2022-11-23T01:08:19.2718786Z [ RUN ] LazyOpsTest.TestAvgPool3DNoBatch 2022-11-23T01:08:19.2907131Z [ OK ] LazyOpsTest.TestAvgPool3DNoBatch (18 ms) 2022-11-23T01:08:19.2907833Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2D 2022-11-23T01:08:19.2994479Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2D (8 ms) 2022-11-23T01:08:19.2994946Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3D 2022-11-23T01:08:19.5025461Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3D (202 ms) 2022-11-23T01:08:19.5025926Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatch 2022-11-23T01:08:19.5247108Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatch (22 ms) 2022-11-23T01:08:19.5247535Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatch 2022-11-23T01:08:19.5331277Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatch (8 ms) 2022-11-23T01:08:19.5331644Z [ RUN ] LazyOpsTest.TestMaxUnpool2D 2022-11-23T01:08:19.5602410Z [ OK ] LazyOpsTest.TestMaxUnpool2D (27 ms) 2022-11-23T01:08:19.5602762Z [ RUN ] LazyOpsTest.TestMaxUnpool3D 2022-11-23T01:08:19.5625566Z ================== 2022-11-23T01:08:19.5626373Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:19.5626948Z  Write of size 4 at 0x7b400006fb78 by thread T3: 2022-11-23T01:08:19.5628211Z  #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+0x8685463) 2022-11-23T01:08:19.5629286Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5630308Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5631023Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5631642Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5632239Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5632520Z 2022-11-23T01:08:19.5632850Z  Previous write of size 4 at 0x7b400006fb78 by thread T2: 2022-11-23T01:08:19.5634381Z  #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+0x8685463) 2022-11-23T01:08:19.5635447Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5636377Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5637065Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5637701Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5638306Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5638563Z 2022-11-23T01:08:19.5638961Z  Location is heap block of size 256 at 0x7b400006fb00 allocated by main thread: 2022-11-23T01:08:19.5639622Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:19.5640042Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:19.5640554Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:19.5641128Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:19.5641782Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:19.5642468Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:19.5643205Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:19.5644908Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:19.5646633Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:19.5647447Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:19.5647984Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5649163Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:19.5650225Z #12 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:19.5651400Z #13 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+0x559e1b5) 2022-11-23T01:08:19.5652528Z #14 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5652925Z #15 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x30638f) 2022-11-23T01:08:19.5653360Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5653725Z #17 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5653987Z #18 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5654247Z #19 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5654538Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5655007Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5655450Z #22 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5655683Z #23 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5655815Z 2022-11-23T01:08:19.5656067Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:19.5656391Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5656754Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5657308Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5657794Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5658302Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5658947Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5659313Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5659934Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5660426Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5660878Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5661267Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5662036Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5662789Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5663191Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5664095Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5664942Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5665930Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5666937Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5667332Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5668504Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5669766Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5670307Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5671057Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5671728Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5672127Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5672558Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5673035Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5673807Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5674677Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5675052Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5675252Z 2022-11-23T01:08:19.5675633Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:19.5676216Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5676804Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5677603Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5678375Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5679056Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5679683Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5680245Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5681240Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5682042Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5682721Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5683381Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5684888Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5686079Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5686750Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5688381Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5689848Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5691497Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5692979Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5693587Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5694381Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5695088Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5695412Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5695842Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5696226Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5696469Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5696731Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5697020Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5697489Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5697928Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5698203Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5698334Z 2022-11-23T01:08:19.5699205Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:19.5699682Z ================== 2022-11-23T01:08:19.5699908Z ================== 2022-11-23T01:08:19.5700162Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:19.5700484Z  Write of size 4 at 0x7b400006fbac by thread T1: 2022-11-23T01:08:19.5701408Z  #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+0x8685463) 2022-11-23T01:08:19.5702313Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5703401Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5704042Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5704434Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5704808Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5704977Z 2022-11-23T01:08:19.5705191Z  Previous write of size 4 at 0x7b400006fbac by thread T3: 2022-11-23T01:08:19.5705856Z  #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+0x8685463) 2022-11-23T01:08:19.5706475Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5707034Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5707453Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5707840Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5708199Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5708368Z 2022-11-23T01:08:19.5708589Z  Location is heap block of size 256 at 0x7b400006fb00 allocated by main thread: 2022-11-23T01:08:19.5708930Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:19.5709198Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:19.5709492Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:19.5709913Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:19.5710317Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:19.5710812Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:19.5711270Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:19.5712453Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:19.5713407Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:19.5713921Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:19.5714400Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5715493Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:19.5716527Z #12 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:19.5717706Z #13 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+0x559e1b5) 2022-11-23T01:08:19.5718801Z #14 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5719228Z #15 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x30638f) 2022-11-23T01:08:19.5719668Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5720051Z #17 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5720291Z #18 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5720552Z #19 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5720843Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5721313Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5721753Z #22 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5721988Z #23 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5722116Z 2022-11-23T01:08:19.5722336Z  Thread T1 'PTThreadPool' (tid=59, running) created by main thread at: 2022-11-23T01:08:19.5722690Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5723048Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5723596Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5724088Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5724571Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5725027Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5725381Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5725990Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5726485Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5726894Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5727286Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5728033Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5728758Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5729194Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5730095Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5730945Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5731934Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5732892Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5733212Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5733949Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5734644Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5734956Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5735384Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5735755Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5736009Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5736273Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5736559Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5737029Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5737464Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5737698Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5737827Z 2022-11-23T01:08:19.5738039Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:19.5738416Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5739040Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5739589Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5740085Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5740570Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5741008Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5741372Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5741996Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5742488Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5742943Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5743317Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5744081Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5744816Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5745218Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5746118Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5746967Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5747992Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5748914Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5749236Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5750035Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5750775Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5751090Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5751520Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5751920Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5752171Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5752433Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5752722Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5753198Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5753639Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5753869Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5753997Z 2022-11-23T01:08:19.5754697Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:19.5755168Z ================== 2022-11-23T01:08:19.5770975Z ================== 2022-11-23T01:08:19.5771489Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:19.5771982Z  Write of size 4 at 0x7b400006fa04 by main thread: 2022-11-23T01:08:19.5773132Z  #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+0x8685463) 2022-11-23T01:08:19.5774133Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5774881Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:19.5775501Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x8682e25) 2022-11-23T01:08:19.5776351Z #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+0x157ccf7) 2022-11-23T01:08:19.5777179Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5779253Z #6 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:19.5780754Z #7 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:19.5782725Z #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+0x559e1b5) 2022-11-23T01:08:19.5784354Z #9 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5784901Z #10 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x30638f) 2022-11-23T01:08:19.5785589Z #11 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5786109Z #12 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5786492Z #13 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5786745Z #14 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5787040Z #15 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5787525Z #16 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5787970Z #17 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5788195Z #18 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5788325Z 2022-11-23T01:08:19.5788541Z  Previous write of size 4 at 0x7b400006fa04 by thread T3: 2022-11-23T01:08:19.5789236Z  #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+0x8685463) 2022-11-23T01:08:19.5790021Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5790588Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5791011Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5791386Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5791758Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5791923Z 2022-11-23T01:08:19.5792145Z  Location is heap block of size 256 at 0x7b400006fa00 allocated by main thread: 2022-11-23T01:08:19.5792486Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:19.5792742Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:19.5793045Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:19.5793430Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:19.5793817Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:19.5794234Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:19.5794720Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:19.5795751Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:19.5796705Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:19.5797160Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:19.5797654Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5798760Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:19.5799808Z #12 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:19.5801093Z #13 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+0x559e1b5) 2022-11-23T01:08:19.5802209Z #14 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5802704Z #15 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x30638f) 2022-11-23T01:08:19.5803312Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5803684Z #17 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5803947Z #18 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5804210Z #19 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5804486Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5804969Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5805412Z #22 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5805644Z #23 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5805776Z 2022-11-23T01:08:19.5805988Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:19.5806327Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5806691Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5807233Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5807728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5808199Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5808647Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5809012Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5809677Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5810169Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5810570Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5810962Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5811727Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5812460Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5812869Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5813773Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5814629Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5815619Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5816547Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5816888Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5817689Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5818710Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5819041Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5819460Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5819837Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5820095Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5820358Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5820637Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5821125Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5821568Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5821804Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5821999Z 2022-11-23T01:08:19.5822698Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:19.5823342Z ================== 2022-11-23T01:08:19.5848163Z ================== 2022-11-23T01:08:19.5848664Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:19.5849243Z  Write of size 4 at 0x7b400006f744 by main thread: 2022-11-23T01:08:19.5850239Z  #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+0x8685463) 2022-11-23T01:08:19.5851034Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5851728Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:19.5852426Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x8682e25) 2022-11-23T01:08:19.5853244Z #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+0x157ccf7) 2022-11-23T01:08:19.5854136Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5856156Z #6 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2bb1) 2022-11-23T01:08:19.5857990Z #7 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:19.5858961Z #8 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:19.5860007Z #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+0x6562cde) 2022-11-23T01:08:19.5861085Z #10 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:19.5862168Z #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+0xca56e8) 2022-11-23T01:08:19.5863090Z #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+0x281b3a9) 2022-11-23T01:08:19.5863814Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d2dd) 2022-11-23T01:08:19.5865288Z #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+0x559e1b5) 2022-11-23T01:08:19.5866506Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5867101Z #16 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x430fe9) 2022-11-23T01:08:19.5867533Z #17 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:19.5867880Z #18 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x306438) 2022-11-23T01:08:19.5868317Z #19 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5868699Z #20 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5868941Z #21 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5869331Z #22 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5870035Z #23 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5870564Z #24 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5871005Z #25 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5871232Z #26 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5871361Z 2022-11-23T01:08:19.5871580Z  Previous write of size 4 at 0x7b400006f744 by thread T3: 2022-11-23T01:08:19.5872269Z  #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+0x8685463) 2022-11-23T01:08:19.5872892Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:19.5873455Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:19.5873900Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:19.5874282Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:19.5874647Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:19.5874812Z 2022-11-23T01:08:19.5875031Z  Location is heap block of size 256 at 0x7b400006f700 allocated by main thread: 2022-11-23T01:08:19.5875353Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:19.5875613Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:19.5875919Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:19.5876269Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:19.5876657Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:19.5877070Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:19.5877525Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:19.5878557Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:19.5879501Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:19.5879992Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:19.5880480Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:19.5881467Z #11 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2bb1) 2022-11-23T01:08:19.5882415Z #12 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:19.5882919Z #13 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:19.5883530Z #14 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:19.5884125Z #15 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:19.5884780Z #16 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:19.5885614Z #17 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+0x281b3a9) 2022-11-23T01:08:19.5886263Z #18 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d2dd) 2022-11-23T01:08:19.5887443Z #19 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+0x559e1b5) 2022-11-23T01:08:19.5888566Z #20 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:19.5889059Z #21 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x430fe9) 2022-11-23T01:08:19.5889503Z #22 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:19.5889848Z #23 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x306438) 2022-11-23T01:08:19.5890265Z #24 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5890643Z #25 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5890899Z #26 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5891158Z #27 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5891436Z #28 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5891942Z #29 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5892381Z #30 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5892614Z #31 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5892731Z 2022-11-23T01:08:19.5892946Z  Thread T3 'PTThreadPool' (tid=61, running) created by main thread at: 2022-11-23T01:08:19.5893279Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:19.5893638Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:19.5894181Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:19.5894666Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:19.5895145Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:19.5895593Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:19.5895957Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:19.5896575Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:19.5897063Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:19.5897485Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:19.5897880Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:19.5898884Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:19.5899605Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:19.5900013Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:19.5900916Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:19.5901810Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:19.5902801Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:19.5903705Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:19.5904046Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:19.5904792Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:19.5905505Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:19.5905825Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:19.5906241Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:19.5906619Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:19.5906879Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:19.5907128Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:19.5907423Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:19.5907910Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:19.5908382Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:19.5908624Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:19.5908740Z 2022-11-23T01:08:19.5909426Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:19.5909963Z ================== 2022-11-23T01:08:19.6066892Z [ OK ] LazyOpsTest.TestMaxUnpool3D (46 ms) 2022-11-23T01:08:19.6067393Z [ RUN ] LazyOpsTest.TestNllLoss 2022-11-23T01:08:19.6067794Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:8184: Skipped 2022-11-23T01:08:19.6068021Z 2022-11-23T01:08:19.6068274Z [ SKIPPED ] LazyOpsTest.TestNllLoss (0 ms) 2022-11-23T01:08:19.6068590Z [ RUN ] LazyOpsTest.TestNllLoss2d 2022-11-23T01:08:19.7045013Z [ OK ] LazyOpsTest.TestNllLoss2d (97 ms) 2022-11-23T01:08:19.7045382Z [ RUN ] LazyOpsTest.TestSmoothL1Loss 2022-11-23T01:08:19.7272118Z [ OK ] LazyOpsTest.TestSmoothL1Loss (22 ms) 2022-11-23T01:08:19.7272437Z [ RUN ] LazyOpsTest.TestL1Loss 2022-11-23T01:08:19.7422504Z [ OK ] LazyOpsTest.TestL1Loss (14 ms) 2022-11-23T01:08:19.7422856Z [ RUN ] LazyOpsTest.TestL1LossBackward 2022-11-23T01:08:19.7892653Z [ OK ] LazyOpsTest.TestL1LossBackward (47 ms) 2022-11-23T01:08:19.7893008Z [ RUN ] LazyOpsTest.TestMseLoss 2022-11-23T01:08:19.7935878Z [ OK ] LazyOpsTest.TestMseLoss (4 ms) 2022-11-23T01:08:19.7936275Z [ RUN ] LazyOpsTest.TestMseLossBackward 2022-11-23T01:08:19.8259014Z [ OK ] LazyOpsTest.TestMseLossBackward (32 ms) 2022-11-23T01:08:19.8259369Z [ RUN ] LazyOpsTest.TestBatchNorm1D 2022-11-23T01:08:19.8483997Z [ OK ] LazyOpsTest.TestBatchNorm1D (22 ms) 2022-11-23T01:08:19.8484316Z [ RUN ] LazyOpsTest.TestBatchNorm2D 2022-11-23T01:08:19.8707585Z [ OK ] LazyOpsTest.TestBatchNorm2D (22 ms) 2022-11-23T01:08:19.8707902Z [ RUN ] LazyOpsTest.TestDim 2022-11-23T01:08:19.8709490Z [ OK ] LazyOpsTest.TestDim (0 ms) 2022-11-23T01:08:19.8709842Z [ RUN ] LazyOpsTest.TestContiguous 2022-11-23T01:08:19.8719790Z [ OK ] LazyOpsTest.TestContiguous (0 ms) 2022-11-23T01:08:19.8720198Z [ RUN ] LazyOpsTest.TestSqueezeAll 2022-11-23T01:08:19.8755302Z [ OK ] LazyOpsTest.TestSqueezeAll (3 ms) 2022-11-23T01:08:19.8755709Z [ RUN ] LazyOpsTest.TestSqueezeAllInPlace 2022-11-23T01:08:19.8806891Z [ OK ] LazyOpsTest.TestSqueezeAllInPlace (5 ms) 2022-11-23T01:08:19.8807279Z [ RUN ] LazyOpsTest.TestSqueezeOne 2022-11-23T01:08:19.9053534Z [ OK ] LazyOpsTest.TestSqueezeOne (24 ms) 2022-11-23T01:08:19.9053962Z [ RUN ] LazyOpsTest.TestSqueezeOneInPlace 2022-11-23T01:08:19.9423074Z [ OK ] LazyOpsTest.TestSqueezeOneInPlace (36 ms) 2022-11-23T01:08:19.9423401Z [ RUN ] LazyOpsTest.TestUnsqueeze 2022-11-23T01:08:19.9608389Z [ OK ] LazyOpsTest.TestUnsqueeze (18 ms) 2022-11-23T01:08:19.9608721Z [ RUN ] LazyOpsTest.TestUnsqueezeInPlace 2022-11-23T01:08:19.9854002Z [ OK ] LazyOpsTest.TestUnsqueezeInPlace (24 ms) 2022-11-23T01:08:19.9854340Z [ RUN ] LazyOpsTest.TestMaskedFill 2022-11-23T01:08:19.9893812Z [ OK ] LazyOpsTest.TestMaskedFill (4 ms) 2022-11-23T01:08:19.9894149Z [ RUN ] LazyOpsTest.TestMaskedFillInPlace 2022-11-23T01:08:19.9951517Z [ OK ] LazyOpsTest.TestMaskedFillInPlace (5 ms) 2022-11-23T01:08:19.9952093Z [ RUN ] LazyOpsTest.TestMaskedFillBroadcast 2022-11-23T01:08:19.9992861Z [ OK ] LazyOpsTest.TestMaskedFillBroadcast (4 ms) 2022-11-23T01:08:19.9993179Z [ RUN ] LazyOpsTest.TestFill 2022-11-23T01:08:20.0048894Z [ OK ] LazyOpsTest.TestFill (5 ms) 2022-11-23T01:08:20.0049213Z [ RUN ] LazyOpsTest.TestFillWithRank0 2022-11-23T01:08:20.0069521Z [ OK ] LazyOpsTest.TestFillWithRank0 (2 ms) 2022-11-23T01:08:20.0069883Z [ RUN ] LazyOpsTest.TestPermute 2022-11-23T01:08:20.0473833Z [ OK ] LazyOpsTest.TestPermute (40 ms) 2022-11-23T01:08:20.0474169Z [ RUN ] LazyOpsTest.TestPermuteMod 2022-11-23T01:08:20.1860681Z [ OK ] LazyOpsTest.TestPermuteMod (138 ms) 2022-11-23T01:08:20.1860987Z [ RUN ] LazyOpsTest.TestFlip 2022-11-23T01:08:20.2298885Z [ OK ] LazyOpsTest.TestFlip (43 ms) 2022-11-23T01:08:20.2299208Z [ RUN ] LazyOpsTest.TestPixelShuffle 2022-11-23T01:08:20.2368680Z [ OK ] LazyOpsTest.TestPixelShuffle (7 ms) 2022-11-23T01:08:20.2369010Z [ RUN ] LazyOpsTest.TestSumToSize 2022-11-23T01:08:20.2412959Z [ OK ] LazyOpsTest.TestSumToSize (4 ms) 2022-11-23T01:08:20.2413469Z [ RUN ] LazyOpsTest.TestTransposeDims 2022-11-23T01:08:20.2453432Z [ OK ] LazyOpsTest.TestTransposeDims (4 ms) 2022-11-23T01:08:20.2453770Z [ RUN ] LazyOpsTest.TestTransposeDimsMod 2022-11-23T01:08:20.2584295Z [ OK ] LazyOpsTest.TestTransposeDimsMod (12 ms) 2022-11-23T01:08:20.2584650Z [ RUN ] LazyOpsTest.TestTransposeDimsInPlace 2022-11-23T01:08:20.2644035Z [ OK ] LazyOpsTest.TestTransposeDimsInPlace (5 ms) 2022-11-23T01:08:20.2644429Z [ RUN ] LazyOpsTest.TestSplit 2022-11-23T01:08:20.3006687Z [ OK ] LazyOpsTest.TestSplit (36 ms) 2022-11-23T01:08:20.3007172Z [ RUN ] LazyOpsTest.TestSplitEmpty 2022-11-23T01:08:20.3016366Z [ OK ] LazyOpsTest.TestSplitEmpty (0 ms) 2022-11-23T01:08:20.3016727Z [ RUN ] LazyOpsTest.TestSplitWithSizes 2022-11-23T01:08:20.3257680Z [ OK ] LazyOpsTest.TestSplitWithSizes (24 ms) 2022-11-23T01:08:20.3258208Z [ RUN ] LazyOpsTest.TestCrossImplicitDim 2022-11-23T01:08:20.3299691Z [ OK ] LazyOpsTest.TestCrossImplicitDim (4 ms) 2022-11-23T01:08:20.3300054Z [ RUN ] LazyOpsTest.TestCrossExplicitDim 2022-11-23T01:08:20.3349409Z [ OK ] LazyOpsTest.TestCrossExplicitDim (4 ms) 2022-11-23T01:08:20.3349922Z [ RUN ] LazyOpsTest.TestCrossZeroDim 2022-11-23T01:08:20.3361173Z [ OK ] LazyOpsTest.TestCrossZeroDim (1 ms) 2022-11-23T01:08:20.3361546Z [ RUN ] LazyOpsTest.TestTriu 2022-11-23T01:08:20.3694020Z [ OK ] LazyOpsTest.TestTriu (33 ms) 2022-11-23T01:08:20.3694419Z [ RUN ] LazyOpsTest.TestTriuNonSquare 2022-11-23T01:08:20.4026588Z [ OK ] LazyOpsTest.TestTriuNonSquare (33 ms) 2022-11-23T01:08:20.4027156Z [ RUN ] LazyOpsTest.TestTriuBatch 2022-11-23T01:08:20.4361864Z [ OK ] LazyOpsTest.TestTriuBatch (33 ms) 2022-11-23T01:08:20.4370688Z [ RUN ] LazyOpsTest.TestTril 2022-11-23T01:08:20.4689647Z [ OK ] LazyOpsTest.TestTril (32 ms) 2022-11-23T01:08:20.4689989Z [ RUN ] LazyOpsTest.TestTrilNonSquare 2022-11-23T01:08:20.5020993Z [ OK ] LazyOpsTest.TestTrilNonSquare (33 ms) 2022-11-23T01:08:20.5021343Z [ RUN ] LazyOpsTest.TestTrilBatch 2022-11-23T01:08:20.5358820Z [ OK ] LazyOpsTest.TestTrilBatch (33 ms) 2022-11-23T01:08:20.5359170Z [ RUN ] LazyOpsTest.TestTriuInPlace 2022-11-23T01:08:20.5869934Z [ OK ] LazyOpsTest.TestTriuInPlace (51 ms) 2022-11-23T01:08:20.5870415Z [ RUN ] LazyOpsTest.TestTrilInPlace 2022-11-23T01:08:20.6379690Z [ OK ] LazyOpsTest.TestTrilInPlace (50 ms) 2022-11-23T01:08:20.6380049Z [ RUN ] LazyOpsTest.TestTrace 2022-11-23T01:08:20.6412732Z [ OK ] LazyOpsTest.TestTrace (3 ms) 2022-11-23T01:08:20.6413280Z [ RUN ] LazyOpsTest.TestTraceWide 2022-11-23T01:08:20.6445162Z [ OK ] LazyOpsTest.TestTraceWide (3 ms) 2022-11-23T01:08:20.6445709Z [ RUN ] LazyOpsTest.TestTraceNarrow 2022-11-23T01:08:20.6477552Z [ OK ] LazyOpsTest.TestTraceNarrow (3 ms) 2022-11-23T01:08:20.6478114Z [ RUN ] LazyOpsTest.TestDiagRank1 2022-11-23T01:08:20.8559943Z [ OK ] LazyOpsTest.TestDiagRank1 (208 ms) 2022-11-23T01:08:20.8560345Z [ RUN ] LazyOpsTest.TestDiagRank2 2022-11-23T01:08:20.9031983Z [ OK ] LazyOpsTest.TestDiagRank2 (47 ms) 2022-11-23T01:08:20.9032508Z [ RUN ] LazyOpsTest.TestDiagFlat 2022-11-23T01:08:22.1033020Z [ OK ] LazyOpsTest.TestDiagFlat (1199 ms) 2022-11-23T01:08:22.1033575Z [ RUN ] LazyOpsTest.TestDiagonal 2022-11-23T01:08:22.1390059Z [ OK ] LazyOpsTest.TestDiagonal (35 ms) 2022-11-23T01:08:22.1390648Z [ RUN ] LazyOpsTest.TestDiagonalUpdate 2022-11-23T01:08:22.2223398Z [ OK ] LazyOpsTest.TestDiagonalUpdate (83 ms) 2022-11-23T01:08:22.2224036Z [ RUN ] LazyOpsTest.TestDiagonalNonSquare 2022-11-23T01:08:22.2573672Z [ OK ] LazyOpsTest.TestDiagonalNonSquare (35 ms) 2022-11-23T01:08:22.2574308Z [ RUN ] LazyOpsTest.TestDiagonalBatch 2022-11-23T01:08:22.2929541Z [ OK ] LazyOpsTest.TestDiagonalBatch (35 ms) 2022-11-23T01:08:22.2930117Z [ RUN ] LazyOpsTest.TestFlatten 2022-11-23T01:08:22.3777225Z [ OK ] LazyOpsTest.TestFlatten (84 ms) 2022-11-23T01:08:22.3777811Z [ RUN ] LazyOpsTest.TestLogicalAnd 2022-11-23T01:08:22.4051866Z [ OK ] LazyOpsTest.TestLogicalAnd (27 ms) 2022-11-23T01:08:22.4052220Z [ RUN ] LazyOpsTest.TestBitwiseAnd 2022-11-23T01:08:22.4086627Z [ OK ] LazyOpsTest.TestBitwiseAnd (3 ms) 2022-11-23T01:08:22.4087101Z [ RUN ] LazyOpsTest.TestBitwiseAndInPlace 2022-11-23T01:08:22.4133424Z [ OK ] LazyOpsTest.TestBitwiseAndInPlace (4 ms) 2022-11-23T01:08:22.4133830Z [ RUN ] LazyOpsTest.TestBitwiseAndScalar 2022-11-23T01:08:22.4167680Z [ OK ] LazyOpsTest.TestBitwiseAndScalar (3 ms) 2022-11-23T01:08:22.4168363Z [ RUN ] LazyOpsTest.TestBitwiseAndScalarInPlace 2022-11-23T01:08:22.4214022Z [ OK ] LazyOpsTest.TestBitwiseAndScalarInPlace (4 ms) 2022-11-23T01:08:22.4214637Z [ RUN ] LazyOpsTest.TestBitwiseAndPromotion 2022-11-23T01:08:22.4271687Z [ OK ] LazyOpsTest.TestBitwiseAndPromotion (5 ms) 2022-11-23T01:08:22.4272239Z [ RUN ] LazyOpsTest.TestBitwiseOr 2022-11-23T01:08:22.4305391Z [ OK ] LazyOpsTest.TestBitwiseOr (3 ms) 2022-11-23T01:08:22.4305732Z [ RUN ] LazyOpsTest.TestBitwiseOrInPlace 2022-11-23T01:08:22.4352318Z [ OK ] LazyOpsTest.TestBitwiseOrInPlace (4 ms) 2022-11-23T01:08:22.4352646Z [ RUN ] LazyOpsTest.TestBitwiseOrScalar 2022-11-23T01:08:22.4385637Z [ OK ] LazyOpsTest.TestBitwiseOrScalar (3 ms) 2022-11-23T01:08:22.4386108Z [ RUN ] LazyOpsTest.TestBitwiseOrScalarInPlace 2022-11-23T01:08:22.4431607Z [ OK ] LazyOpsTest.TestBitwiseOrScalarInPlace (4 ms) 2022-11-23T01:08:22.4432096Z [ RUN ] LazyOpsTest.TestBitwiseXor 2022-11-23T01:08:22.4441220Z [ OK ] LazyOpsTest.TestBitwiseXor (0 ms) 2022-11-23T01:08:22.4441809Z [ RUN ] LazyOpsTest.TestBitwiseXorInPlace 2022-11-23T01:08:22.4452955Z [ OK ] LazyOpsTest.TestBitwiseXorInPlace (1 ms) 2022-11-23T01:08:22.4453555Z [ RUN ] LazyOpsTest.TestBitwiseXorScalar 2022-11-23T01:08:22.4461998Z [ OK ] LazyOpsTest.TestBitwiseXorScalar (0 ms) 2022-11-23T01:08:22.4462491Z [ RUN ] LazyOpsTest.TestBitwiseXorScalarInPlace 2022-11-23T01:08:22.4472622Z [ OK ] LazyOpsTest.TestBitwiseXorScalarInPlace (1 ms) 2022-11-23T01:08:22.4473133Z [ RUN ] LazyOpsTest.TestLshift 2022-11-23T01:08:22.4488739Z [ OK ] LazyOpsTest.TestLshift (1 ms) 2022-11-23T01:08:22.4489296Z [ RUN ] LazyOpsTest.TestLshiftInPlace 2022-11-23T01:08:22.4513163Z [ OK ] LazyOpsTest.TestLshiftInPlace (2 ms) 2022-11-23T01:08:22.4513734Z [ RUN ] LazyOpsTest.TestLshiftScalar 2022-11-23T01:08:22.4527619Z [ OK ] LazyOpsTest.TestLshiftScalar (1 ms) 2022-11-23T01:08:22.4528200Z [ RUN ] LazyOpsTest.TestLshiftScalarInPlace 2022-11-23T01:08:22.4550144Z [ OK ] LazyOpsTest.TestLshiftScalarInPlace (2 ms) 2022-11-23T01:08:22.4550682Z [ RUN ] LazyOpsTest.TestRshift 2022-11-23T01:08:22.4565974Z [ OK ] LazyOpsTest.TestRshift (1 ms) 2022-11-23T01:08:22.4566551Z [ RUN ] LazyOpsTest.TestRshiftInPlace 2022-11-23T01:08:22.4590500Z [ OK ] LazyOpsTest.TestRshiftInPlace (2 ms) 2022-11-23T01:08:22.4591210Z [ RUN ] LazyOpsTest.TestRshiftScalar 2022-11-23T01:08:22.4604976Z [ OK ] LazyOpsTest.TestRshiftScalar (1 ms) 2022-11-23T01:08:22.4605567Z [ RUN ] LazyOpsTest.TestRshiftScalarInPlace 2022-11-23T01:08:22.4627535Z [ OK ] LazyOpsTest.TestRshiftScalarInPlace (2 ms) 2022-11-23T01:08:22.4628090Z [ RUN ] LazyOpsTest.TestMeshgrid 2022-11-23T01:08:22.4629646Z [W TensorShape.cpp:3433] Warning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (function operator()) 2022-11-23T01:08:22.4766076Z [ OK ] LazyOpsTest.TestMeshgrid (13 ms) 2022-11-23T01:08:22.4766589Z [ RUN ] LazyOpsTest.TestConstantPad 2022-11-23T01:08:22.4813990Z [ OK ] LazyOpsTest.TestConstantPad (4 ms) 2022-11-23T01:08:22.4814576Z [ RUN ] LazyOpsTest.TestConstantPadIncomplete 2022-11-23T01:08:22.4855351Z [ OK ] LazyOpsTest.TestConstantPadIncomplete (4 ms) 2022-11-23T01:08:22.4855974Z [ RUN ] LazyOpsTest.TestReflectionPad2dRank3 2022-11-23T01:08:22.4870786Z [ OK ] LazyOpsTest.TestReflectionPad2dRank3 (1 ms) 2022-11-23T01:08:22.4871382Z [ RUN ] LazyOpsTest.TestReflectionPad2dRank4 2022-11-23T01:08:22.4886522Z [ OK ] LazyOpsTest.TestReflectionPad2dRank4 (1 ms) 2022-11-23T01:08:22.4887146Z [ RUN ] LazyOpsTest.TestReflectionPad2dBackward 2022-11-23T01:08:22.4994537Z [ OK ] LazyOpsTest.TestReflectionPad2dBackward (10 ms) 2022-11-23T01:08:22.4995131Z [ RUN ] LazyOpsTest.TestReplicationPad1d 2022-11-23T01:08:22.5007610Z [ OK ] LazyOpsTest.TestReplicationPad1d (1 ms) 2022-11-23T01:08:22.5008223Z [ RUN ] LazyOpsTest.TestReplicationPad1dZeroPad 2022-11-23T01:08:22.5020433Z [ OK ] LazyOpsTest.TestReplicationPad1dZeroPad (1 ms) 2022-11-23T01:08:22.5021061Z [ RUN ] LazyOpsTest.TestReplicationPad1dBackward 2022-11-23T01:08:22.5103727Z [ OK ] LazyOpsTest.TestReplicationPad1dBackward (8 ms) 2022-11-23T01:08:22.5104271Z [ RUN ] LazyOpsTest.TestReplicationPad2d 2022-11-23T01:08:22.5116893Z [ OK ] LazyOpsTest.TestReplicationPad2d (1 ms) 2022-11-23T01:08:22.5117506Z [ RUN ] LazyOpsTest.TestReplicationPad2dZeroPad 2022-11-23T01:08:22.5129749Z [ OK ] LazyOpsTest.TestReplicationPad2dZeroPad (1 ms) 2022-11-23T01:08:22.5130373Z [ RUN ] LazyOpsTest.TestReplicationPad2dBackward 2022-11-23T01:08:22.5237237Z [ OK ] LazyOpsTest.TestReplicationPad2dBackward (10 ms) 2022-11-23T01:08:22.5237630Z [ RUN ] LazyOpsTest.TestAsStrided 2022-11-23T01:08:22.5497326Z [ OK ] LazyOpsTest.TestAsStrided (25 ms) 2022-11-23T01:08:22.5497703Z [ RUN ] LazyOpsTest.TestAsStridedInPlace 2022-11-23T01:08:22.5860288Z [ OK ] LazyOpsTest.TestAsStridedInPlace (36 ms) 2022-11-23T01:08:22.5860718Z [ RUN ] LazyOpsTest.TestAsStridedWithOffset 2022-11-23T01:08:22.5915892Z [ OK ] LazyOpsTest.TestAsStridedWithOffset (5 ms) 2022-11-23T01:08:22.5916471Z [ RUN ] LazyOpsTest.TestAsStridedWithInplaceCopy 2022-11-23T01:08:22.6013786Z [ OK ] LazyOpsTest.TestAsStridedWithInplaceCopy (9 ms) 2022-11-23T01:08:22.6014396Z [ RUN ] LazyOpsTest.TestEmptyStrided 2022-11-23T01:08:22.6015010Z [ OK ] LazyOpsTest.TestEmptyStrided (0 ms) 2022-11-23T01:08:22.6015346Z [ RUN ] LazyOpsTest.TestAvgPool2DBackward 2022-11-23T01:08:22.8021811Z [ OK ] LazyOpsTest.TestAvgPool2DBackward (200 ms) 2022-11-23T01:08:22.8022193Z [ RUN ] LazyOpsTest.TestAvgPool3DBackward 2022-11-23T01:08:22.9197148Z [ OK ] LazyOpsTest.TestAvgPool3DBackward (117 ms) 2022-11-23T01:08:22.9197518Z [ RUN ] LazyOpsTest.TestAvgPool2DNoBatchBackward 2022-11-23T01:08:23.1360805Z [ OK ] LazyOpsTest.TestAvgPool2DNoBatchBackward (216 ms) 2022-11-23T01:08:23.1361480Z [ RUN ] LazyOpsTest.TestAvgPool3DNoBatchBackward 2022-11-23T01:08:23.2547900Z [ OK ] LazyOpsTest.TestAvgPool3DNoBatchBackward (118 ms) 2022-11-23T01:08:23.2548355Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatchBackward 2022-11-23T01:08:23.3217045Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatchBackward (66 ms) 2022-11-23T01:08:23.3217479Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DBackward 2022-11-23T01:08:23.4754970Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DBackward (153 ms) 2022-11-23T01:08:23.4755449Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DBackward 2022-11-23T01:08:23.5114308Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DBackward (35 ms) 2022-11-23T01:08:23.5114768Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatchBackward 2022-11-23T01:08:23.5396509Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatchBackward (28 ms) 2022-11-23T01:08:23.5396911Z [ RUN ] LazyOpsTest.TestConv2D 2022-11-23T01:08:24.5848598Z [ OK ] LazyOpsTest.TestConv2D (1045 ms) 2022-11-23T01:08:24.5848973Z [ RUN ] LazyOpsTest.TestConv2DBackward 2022-11-23T01:08:28.7474223Z [ OK ] LazyOpsTest.TestConv2DBackward (4162 ms) 2022-11-23T01:08:28.7474640Z [ RUN ] LazyOpsTest.TestTransposedConv2DBackward 2022-11-23T01:08:32.0812600Z [ OK ] LazyOpsTest.TestTransposedConv2DBackward (3333 ms) 2022-11-23T01:08:32.0813313Z [ RUN ] LazyOpsTest.TestConv3DBackward 2022-11-23T01:08:35.6572505Z [ OK ] LazyOpsTest.TestConv3DBackward (3575 ms) 2022-11-23T01:08:35.6572922Z [ RUN ] LazyOpsTest.TestTransposedConv3DBackward 2022-11-23T01:08:43.4896705Z [ OK ] LazyOpsTest.TestTransposedConv3DBackward (7832 ms) 2022-11-23T01:08:43.4897366Z [ RUN ] LazyOpsTest.TestMaxPool2DBackward 2022-11-23T01:08:43.6112798Z [ OK ] LazyOpsTest.TestMaxPool2DBackward (121 ms) 2022-11-23T01:08:43.6113435Z [ RUN ] LazyOpsTest.TestMaxPool3DBackward 2022-11-23T01:08:43.6789649Z [ OK ] LazyOpsTest.TestMaxPool3DBackward (67 ms) 2022-11-23T01:08:43.6790370Z [ RUN ] LazyOpsTest.TestMaxPool2DNoBatchBackward 2022-11-23T01:08:43.7985973Z [ OK ] LazyOpsTest.TestMaxPool2DNoBatchBackward (119 ms) 2022-11-23T01:08:43.7986414Z [ RUN ] LazyOpsTest.TestMaxPool3DNoBatchBackward 2022-11-23T01:08:43.8660964Z [ OK ] LazyOpsTest.TestMaxPool3DNoBatchBackward (67 ms) 2022-11-23T01:08:43.8661564Z [ RUN ] LazyOpsTest.TestMaxUnpool2DBackward 2022-11-23T01:08:44.0917127Z [ OK ] LazyOpsTest.TestMaxUnpool2DBackward (225 ms) 2022-11-23T01:08:44.0917828Z [ RUN ] LazyOpsTest.TestMaxUnpool3DBackward 2022-11-23T01:08:44.1621071Z ================== 2022-11-23T01:08:44.1621791Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:44.1622337Z  Write of size 4 at 0x7b400006b404 by main thread: 2022-11-23T01:08:44.1623603Z  #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+0x8685463) 2022-11-23T01:08:44.1660154Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:44.1661092Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:44.1661754Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x8682e25) 2022-11-23T01:08:44.1662447Z #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+0x157ccf7) 2022-11-23T01:08:44.1662988Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:44.1664079Z #6 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:44.1665150Z #7 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:44.1666324Z #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+0x559e1b5) 2022-11-23T01:08:44.1667421Z #9 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:44.1668063Z #10 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_571>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4757ab) 2022-11-23T01:08:44.1668724Z #11 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4be126) 2022-11-23T01:08:44.1669303Z #12 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4750a7) 2022-11-23T01:08:44.1669830Z #13 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:44.1670197Z #14 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32c65b) 2022-11-23T01:08:44.1670633Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1671052Z #16 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1671308Z #17 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1671566Z #18 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1671844Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1672326Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1672766Z #21 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1673000Z #22 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1673116Z 2022-11-23T01:08:44.1673370Z  Previous write of size 4 at 0x7b400006b404 by thread T2: 2022-11-23T01:08:44.1674082Z  #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+0x8685463) 2022-11-23T01:08:44.1674699Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:44.1675259Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:44.1675675Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:44.1676047Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:44.1676417Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:44.1676579Z 2022-11-23T01:08:44.1676793Z  Location is heap block of size 256 at 0x7b400006b400 allocated by main thread: 2022-11-23T01:08:44.1677125Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:44.1677374Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:44.1677673Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:44.1678026Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:44.1678458Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:44.1678860Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:44.1679314Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:44.1680348Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:44.1681319Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:44.1681769Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:44.1682258Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:44.1683336Z #11 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2a4f) 2022-11-23T01:08:44.1684400Z #12 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d287) 2022-11-23T01:08:44.1685569Z #13 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+0x559e1b5) 2022-11-23T01:08:44.1686690Z #14 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:44.1687279Z #15 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_571>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4757ab) 2022-11-23T01:08:44.1687936Z #16 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4be126) 2022-11-23T01:08:44.1688508Z #17 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4750a7) 2022-11-23T01:08:44.1688951Z #18 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:44.1689314Z #19 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32c65b) 2022-11-23T01:08:44.1689793Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1690171Z #21 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1690425Z #22 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1690671Z #23 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1690964Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1691443Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1691882Z #26 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1692100Z #27 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1692227Z 2022-11-23T01:08:44.1692443Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:44.1692777Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:44.1693129Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:44.1693675Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:44.1694167Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:44.1694651Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:44.1695104Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:44.1695466Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:44.1696067Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:44.1696558Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:44.1696999Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:44.1697390Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:44.1698156Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:44.1699030Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:44.1699439Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:44.1700337Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:44.1701253Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:44.1702247Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:44.1703165Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:44.1703497Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:44.1704237Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:44.1704932Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:44.1705248Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:44.1705782Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1706239Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1706485Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1706743Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1707035Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1707512Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1707949Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1708168Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1708297Z 2022-11-23T01:08:44.1709001Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:44.1709467Z ================== 2022-11-23T01:08:44.1714817Z ================== 2022-11-23T01:08:44.1715333Z WARNING: ThreadSanitizer: data race (pid=57) 2022-11-23T01:08:44.1715824Z  Write of size 4 at 0x7b4000097904 by main thread: 2022-11-23T01:08:44.1718499Z  #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+0x8685463) 2022-11-23T01:08:44.1719598Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:44.1720420Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:08:44.1720995Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x8682e25) 2022-11-23T01:08:44.1721595Z #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+0x157ccf7) 2022-11-23T01:08:44.1722087Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:44.1723125Z #6 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2bb1) 2022-11-23T01:08:44.1724325Z #7 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:44.1724905Z #8 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:44.1725697Z #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+0x6562cde) 2022-11-23T01:08:44.1726621Z #10 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:44.1727683Z #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+0xca56e8) 2022-11-23T01:08:44.1729103Z #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+0x281b3a9) 2022-11-23T01:08:44.1730264Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d2dd) 2022-11-23T01:08:44.1732293Z #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+0x559e1b5) 2022-11-23T01:08:44.1733526Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:44.1734115Z #16 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_571>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4757ab) 2022-11-23T01:08:44.1734775Z #17 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4be156) 2022-11-23T01:08:44.1735348Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4750a7) 2022-11-23T01:08:44.1735801Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:44.1736152Z #20 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32c65b) 2022-11-23T01:08:44.1736602Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1736980Z #22 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1737296Z #23 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1737546Z #24 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1737835Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1738322Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1738947Z #27 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1739171Z #28 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1739302Z 2022-11-23T01:08:44.1739522Z  Previous write of size 4 at 0x7b4000097904 by thread T2: 2022-11-23T01:08:44.1740214Z  #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+0x8685463) 2022-11-23T01:08:44.1740859Z #1 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:08:44.1741513Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:08:44.1741927Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:08:44.1742315Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:08:44.1742671Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:08:44.1742840Z 2022-11-23T01:08:44.1743060Z  Location is heap block of size 256 at 0x7b4000097900 allocated by main thread: 2022-11-23T01:08:44.1743389Z  #0 posix_memalign (test_lazy+0x17f261) 2022-11-23T01:08:44.1743654Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4ca7d) 2022-11-23T01:08:44.1743944Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbaf) 2022-11-23T01:08:44.1744295Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17855df) 2022-11-23T01:08:44.1744696Z #4 at::native::resize_impl_cpu_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17860e0) 2022-11-23T01:08:44.1745102Z #5 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17853d1) 2022-11-23T01:08:44.1745546Z #6 at::(anonymous namespace)::(anonymous namespace)::wrapper__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2a27f5f) 2022-11-23T01:08:44.1746595Z #7 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2b356ed) 2022-11-23T01:08:44.1747587Z #8 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x288e0a3) 2022-11-23T01:08:44.1748044Z #9 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x157cb4c) 2022-11-23T01:08:44.1748537Z #10 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x157d80e) 2022-11-23T01:08:44.1749583Z #11 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2bf2bb1) 2022-11-23T01:08:44.1750580Z #12 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x78c73d8) 2022-11-23T01:08:44.1751030Z #13 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x78c59c4) 2022-11-23T01:08:44.1751647Z #14 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6562cde) 2022-11-23T01:08:44.1752259Z #15 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc0ca6e) 2022-11-23T01:08:44.1752925Z #16 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xca56e8) 2022-11-23T01:08:44.1753761Z #17 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+0x281b3a9) 2022-11-23T01:08:44.1754416Z #18 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274d2dd) 2022-11-23T01:08:44.1755630Z #19 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+0x559e1b5) 2022-11-23T01:08:44.1756726Z #20 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x274ce6b) 2022-11-23T01:08:44.1757316Z #21 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_571>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4757ab) 2022-11-23T01:08:44.1757973Z #22 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4be156) 2022-11-23T01:08:44.1758553Z #23 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4750a7) 2022-11-23T01:08:44.1759002Z #24 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bc085) 2022-11-23T01:08:44.1759399Z #25 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32c65b) 2022-11-23T01:08:44.1759836Z #26 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1760218Z #27 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1760472Z #28 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1760733Z #29 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1761011Z #30 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1761497Z #31 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1761937Z #32 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1762169Z #33 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1762296Z 2022-11-23T01:08:44.1762499Z  Thread T2 'PTThreadPool' (tid=60, running) created by main thread at: 2022-11-23T01:08:44.1762937Z  #0 pthread_create (test_lazy+0x17f775) 2022-11-23T01:08:44.1763296Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:08:44.1763844Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:08:44.1764337Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:08:44.1764808Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:08:44.1765264Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:08:44.1765628Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:08:44.1766247Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x197afd8) 2022-11-23T01:08:44.1766771Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x197a7b9) 2022-11-23T01:08:44.1767175Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19654b1) 2022-11-23T01:08:44.1767567Z #10 at::(anonymous namespace)::wrapper_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2a52bb6) 2022-11-23T01:08:44.1768328Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2b855c5) 2022-11-23T01:08:44.1769026Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x271c2d1) 2022-11-23T01:08:44.1769429Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x1222ca6) 2022-11-23T01:08:44.1770355Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c1acb1) 2022-11-23T01:08:44.1771198Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2921553) 2022-11-23T01:08:44.1772189Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x57af889) 2022-11-23T01:08:44.1773102Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x29211ee) 2022-11-23T01:08:44.1773437Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x1223a98) 2022-11-23T01:08:44.1774175Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x318dc14) 2022-11-23T01:08:44.1774879Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x2291f93) 2022-11-23T01:08:44.1775197Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x267fbc) 2022-11-23T01:08:44.1775649Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51241c) 2022-11-23T01:08:44.1776030Z #23 testing::Test::Run() (test_lazy+0x4d744f) 2022-11-23T01:08:44.1776289Z #24 testing::TestInfo::Run() (test_lazy+0x4d913a) 2022-11-23T01:08:44.1776546Z #25 testing::TestSuite::Run() (test_lazy+0x4d9e46) 2022-11-23T01:08:44.1776825Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f358b) 2022-11-23T01:08:44.1777309Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x51376c) 2022-11-23T01:08:44.1777744Z #28 testing::UnitTest::Run() (test_lazy+0x4f2c80) 2022-11-23T01:08:44.1777977Z #29 main (test_lazy+0x20a151) 2022-11-23T01:08:44.1778106Z 2022-11-23T01:08:44.1778895Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8685463) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2022-11-23T01:08:44.1779409Z ================== 2022-11-23T01:08:44.2929431Z [ OK ] LazyOpsTest.TestMaxUnpool3DBackward (201 ms) 2022-11-23T01:08:44.2930056Z [ RUN ] LazyOpsTest.TestTanhBackward 2022-11-23T01:08:44.3043660Z [ OK ] LazyOpsTest.TestTanhBackward (11 ms) 2022-11-23T01:08:44.3044284Z [ RUN ] LazyOpsTest.TestSigmoidBackward 2022-11-23T01:08:44.3155218Z [ OK ] LazyOpsTest.TestSigmoidBackward (11 ms) 2022-11-23T01:08:44.3155884Z [ RUN ] LazyOpsTest.TestLogSigmoidBackward 2022-11-23T01:08:44.3284414Z [ OK ] LazyOpsTest.TestLogSigmoidBackward (12 ms) 2022-11-23T01:08:44.3285101Z [ RUN ] LazyOpsTest.TestLogSoftmaxBackward 2022-11-23T01:08:44.4105197Z [ OK ] LazyOpsTest.TestLogSoftmaxBackward (81 ms) 2022-11-23T01:08:44.4105895Z [ RUN ] LazyOpsTest.TestSoftmaxBackward 2022-11-23T01:08:44.4920539Z [ OK ] LazyOpsTest.TestSoftmaxBackward (81 ms) 2022-11-23T01:08:44.4921200Z [ RUN ] LazyOpsTest.TestSoftplusBackward 2022-11-23T01:08:44.5041451Z [ OK ] LazyOpsTest.TestSoftplusBackward (12 ms) 2022-11-23T01:08:44.5042077Z [ RUN ] LazyOpsTest.TestReluBackward 2022-11-23T01:08:44.5153897Z [ OK ] LazyOpsTest.TestReluBackward (11 ms) 2022-11-23T01:08:44.5154506Z [ RUN ] LazyOpsTest.TestRreluBackward 2022-11-23T01:08:44.5273315Z [ OK ] LazyOpsTest.TestRreluBackward (11 ms) 2022-11-23T01:08:44.5274059Z [ RUN ] LazyOpsTest.TestHardshrinkBackward 2022-11-23T01:08:44.5380716Z [ OK ] LazyOpsTest.TestHardshrinkBackward (10 ms) 2022-11-23T01:08:44.5381470Z [ RUN ] LazyOpsTest.TestSoftshrinkBackward 2022-11-23T01:08:44.5511460Z [ OK ] LazyOpsTest.TestSoftshrinkBackward (13 ms) 2022-11-23T01:08:44.5512222Z [ RUN ] LazyOpsTest.TestHardtanhBackward 2022-11-23T01:08:44.5566431Z [ OK ] LazyOpsTest.TestHardtanhBackward (5 ms) 2022-11-23T01:08:44.5567009Z [ RUN ] LazyOpsTest.TestEluBackward 2022-11-23T01:08:44.5689504Z [ OK ] LazyOpsTest.TestEluBackward (12 ms) 2022-11-23T01:08:44.5690073Z [ RUN ] LazyOpsTest.TestGeluBackward 2022-11-23T01:08:44.5809240Z [ OK ] LazyOpsTest.TestGeluBackward (11 ms) 2022-11-23T01:08:44.5809839Z [ RUN ] LazyOpsTest.TestLeakyReluBackward 2022-11-23T01:08:44.5926808Z [ OK ] LazyOpsTest.TestLeakyReluBackward (11 ms) 2022-11-23T01:08:44.5927451Z [ RUN ] LazyOpsTest.TestTransposeBackward 2022-11-23T01:08:44.6034274Z [ OK ] LazyOpsTest.TestTransposeBackward (10 ms) 2022-11-23T01:08:44.6034945Z [ RUN ] LazyOpsTest.TestAddMatMulBackward 2022-11-23T01:08:44.6912959Z [ OK ] LazyOpsTest.TestAddMatMulBackward (87 ms) 2022-11-23T01:08:44.6913683Z [ RUN ] LazyOpsTest.TestBinaryCrossEntropyBackward 2022-11-23T01:08:44.7715316Z [ OK ] LazyOpsTest.TestBinaryCrossEntropyBackward (80 ms) 2022-11-23T01:08:44.7715785Z [ RUN ] LazyOpsTest.TestNllLossBackward 2022-11-23T01:08:44.7716147Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:10965: Skipped 2022-11-23T01:08:44.7716319Z 2022-11-23T01:08:44.7716518Z [ SKIPPED ] LazyOpsTest.TestNllLossBackward (0 ms) 2022-11-23T01:08:44.7716909Z [ RUN ] LazyOpsTest.TestNllLoss2dBackward 2022-11-23T01:08:45.1052461Z [ OK ] LazyOpsTest.TestNllLoss2dBackward (333 ms) 2022-11-23T01:08:45.1052867Z [ RUN ] LazyOpsTest.TestSmoothL1LossBackward 2022-11-23T01:08:45.1857472Z [ OK ] LazyOpsTest.TestSmoothL1LossBackward (80 ms) 2022-11-23T01:08:45.1857825Z [ RUN ] LazyOpsTest.TestViewBackward 2022-11-23T01:08:45.2049146Z [ OK ] LazyOpsTest.TestViewBackward (19 ms) 2022-11-23T01:08:45.2049716Z [ RUN ] LazyOpsTest.TestBatchNorm2DBackward 2022-11-23T01:08:45.2657141Z [ OK ] LazyOpsTest.TestBatchNorm2DBackward (60 ms) 2022-11-23T01:08:45.2657836Z [ RUN ] LazyOpsTest.TestBatchNorm3DBackward 2022-11-23T01:08:45.3264891Z [ OK ] LazyOpsTest.TestBatchNorm3DBackward (60 ms) 2022-11-23T01:08:45.3265576Z [ RUN ] LazyOpsTest.TestBCEWithLogitsBackward 2022-11-23T01:08:45.7155925Z [ OK ] LazyOpsTest.TestBCEWithLogitsBackward (389 ms) 2022-11-23T01:08:45.7156636Z [ RUN ] LazyOpsTest.TestKlDivBackward 2022-11-23T01:08:45.8164855Z [ OK ] LazyOpsTest.TestKlDivBackward (100 ms) 2022-11-23T01:08:45.8165513Z [ RUN ] LazyOpsTest.TestEmbeddingBackward 2022-11-23T01:08:46.6254976Z [ OK ] LazyOpsTest.TestEmbeddingBackward (808 ms) 2022-11-23T01:08:46.6255710Z [ RUN ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale 2022-11-23T01:08:46.6258757Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:11362: Skipped 2022-11-23T01:08:46.6258973Z 2022-11-23T01:08:46.6259317Z [ SKIPPED ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale (0 ms) 2022-11-23T01:08:46.6259726Z [ RUN ] LazyOpsTest.TestAmpUpdateScale 2022-11-23T01:08:46.6260932Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:11411: Skipped 2022-11-23T01:08:46.6261160Z 2022-11-23T01:08:46.6262090Z [ SKIPPED ] LazyOpsTest.TestAmpUpdateScale (0 ms) 2022-11-23T01:08:46.6262543Z [ RUN ] LazyOpsTest.TestEarlySyncLiveTensors 2022-11-23T01:08:46.6265972Z [ OK ] LazyOpsTest.TestEarlySyncLiveTensors (0 ms) 2022-11-23T01:08:46.6266558Z [ RUN ] LazyOpsTest.TestLerp 2022-11-23T01:08:46.6283828Z [ OK ] LazyOpsTest.TestLerp (1 ms) 2022-11-23T01:08:46.6284470Z [ RUN ] LazyOpsTest.TestLerpScalar 2022-11-23T01:08:46.6300545Z [ OK ] LazyOpsTest.TestLerpScalar (1 ms) 2022-11-23T01:08:46.6301108Z [ RUN ] LazyOpsTest.TestLerpInplace 2022-11-23T01:08:46.6318449Z [ OK ] LazyOpsTest.TestLerpInplace (1 ms) 2022-11-23T01:08:46.6319026Z [ RUN ] LazyOpsTest.TestLerpScalarInplace 2022-11-23T01:08:46.6334572Z [ OK ] LazyOpsTest.TestLerpScalarInplace (1 ms) 2022-11-23T01:08:46.6335113Z [ RUN ] LazyOpsTest.TestLerpOut 2022-11-23T01:08:46.6352803Z [ OK ] LazyOpsTest.TestLerpOut (1 ms) 2022-11-23T01:08:46.6353392Z [ RUN ] LazyOpsTest.TestLerpScalarOut 2022-11-23T01:08:46.6368959Z [ OK ] LazyOpsTest.TestLerpScalarOut (1 ms) 2022-11-23T01:08:46.6369526Z [ RUN ] LazyOpsTest.IsAliasOf 2022-11-23T01:08:46.6377961Z [ OK ] LazyOpsTest.IsAliasOf (0 ms) 2022-11-23T01:08:46.6379815Z [----------] 575 tests from LazyOpsTest (42902 ms total) 2022-11-23T01:08:46.6380118Z 2022-11-23T01:08:46.6380434Z [----------] Global test environment tear-down 2022-11-23T01:08:46.6831476Z [==========] 612 tests from 10 test suites ran. (42936 ms total) 2022-11-23T01:08:46.6831920Z [ PASSED ] 608 tests. 2022-11-23T01:08:46.6832236Z [ SKIPPED ] 4 tests, listed below: 2022-11-23T01:08:46.6833782Z [ SKIPPED ] LazyOpsTest.TestNllLoss 2022-11-23T01:08:46.6834835Z [ SKIPPED ] LazyOpsTest.TestNllLossBackward 2022-11-23T01:08:46.6835425Z [ SKIPPED ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale 2022-11-23T01:08:46.6835889Z [ SKIPPED ] LazyOpsTest.TestAmpUpdateScale 2022-11-23T01:08:47.2323512Z ThreadSanitizer: reported 457 warnings 2022-11-23T01:08:47.2966802Z + [[ linux-focal-py3.7-clang7-tsan != *-tsan* ]] 2022-11-23T01:08:47.2967265Z + wait 2022-11-23T01:08:47.2967527Z + OMP_NUM_THREADS=2 2022-11-23T01:08:47.2968698Z + TORCH_CPP_TEST_MNIST_PATH=test/cpp/api/mnist 2022-11-23T01:08:47.2969405Z + /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 2022-11-23T01:08:50.9537314Z CUDA not available. Disabling CUDA and MultiCUDA tests 2022-11-23T01:08:50.9608427Z Note: Google Test filter = -IMethodTest.*:*_CUDA:*_MultiCUDA 2022-11-23T01:08:50.9608880Z [==========] Running 992 tests from 48 test suites. 2022-11-23T01:08:50.9609442Z [----------] Global test environment set-up. 2022-11-23T01:08:50.9609830Z [----------] 9 tests from AutogradAPITests 2022-11-23T01:08:50.9610167Z [ RUN ] AutogradAPITests.BackwardSimpleTest 2022-11-23T01:08:50.9824618Z [ OK ] AutogradAPITests.BackwardSimpleTest (21 ms) 2022-11-23T01:08:50.9825133Z [ RUN ] AutogradAPITests.BackwardTest 2022-11-23T01:08:50.9829187Z [W engine.cpp:1127] 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()) 2022-11-23T01:08:50.9861615Z [ OK ] AutogradAPITests.BackwardTest (3 ms) 2022-11-23T01:08:50.9862175Z [ RUN ] AutogradAPITests.GradSimpleTest 2022-11-23T01:08:50.9885827Z [ OK ] AutogradAPITests.GradSimpleTest (2 ms) 2022-11-23T01:08:50.9886392Z [ RUN ] AutogradAPITests.GradTest 2022-11-23T01:08:50.9934260Z [ OK ] AutogradAPITests.GradTest (4 ms) 2022-11-23T01:08:50.9934831Z [ RUN ] AutogradAPITests.GradNonLeafTest 2022-11-23T01:08:50.9963145Z [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) 2022-11-23T01:08:50.9976915Z [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) 2022-11-23T01:08:50.9990950Z [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) 2022-11-23T01:08:51.0004482Z [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) 2022-11-23T01:08:51.0032015Z [ OK ] AutogradAPITests.GradNonLeafTest (9 ms) 2022-11-23T01:08:51.0032390Z [ RUN ] AutogradAPITests.GradUnreachableTest 2022-11-23T01:08:51.0088763Z [ OK ] AutogradAPITests.GradUnreachableTest (5 ms) 2022-11-23T01:08:51.0089504Z [ RUN ] AutogradAPITests.EmptyInput 2022-11-23T01:08:51.0120323Z [ OK ] AutogradAPITests.EmptyInput (3 ms) 2022-11-23T01:08:51.0120645Z [ RUN ] AutogradAPITests.RetainGrad 2022-11-23T01:08:51.0163242Z [ OK ] AutogradAPITests.RetainGrad (4 ms) 2022-11-23T01:08:51.0163831Z [ RUN ] AutogradAPITests.AnomalyMode 2022-11-23T01:08:51.0164277Z [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()) 2022-11-23T01:08:51.1906487Z [ OK ] AutogradAPITests.AnomalyMode (174 ms) 2022-11-23T01:08:51.1907025Z [----------] 9 tests from AutogradAPITests (229 ms total) 2022-11-23T01:08:51.1907191Z 2022-11-23T01:08:51.1907369Z [----------] 33 tests from CustomAutogradTest 2022-11-23T01:08:51.1907736Z [ RUN ] CustomAutogradTest.GradUnreachableDiscoveryTest 2022-11-23T01:08:51.1912011Z [ OK ] CustomAutogradTest.GradUnreachableDiscoveryTest (0 ms) 2022-11-23T01:08:51.1912611Z [ RUN ] CustomAutogradTest.CustomFunction 2022-11-23T01:08:51.1939380Z [ OK ] CustomAutogradTest.CustomFunction (2 ms) 2022-11-23T01:08:51.1940042Z [ RUN ] CustomAutogradTest.CustomFunctionWithTensorList 2022-11-23T01:08:51.1963678Z [ OK ] CustomAutogradTest.CustomFunctionWithTensorList (2 ms) 2022-11-23T01:08:51.1964284Z [ RUN ] CustomAutogradTest.GraphTaskTrimEdges 2022-11-23T01:08:51.2012487Z [ OK ] CustomAutogradTest.GraphTaskTrimEdges (4 ms) 2022-11-23T01:08:51.2013097Z [ RUN ] CustomAutogradTest.FunctionReturnsInput 2022-11-23T01:08:51.2023409Z [ OK ] CustomAutogradTest.FunctionReturnsInput (1 ms) 2022-11-23T01:08:51.2024046Z [ RUN ] CustomAutogradTest.FunctionReturnsUndefined 2022-11-23T01:08:51.2040219Z [ OK ] CustomAutogradTest.FunctionReturnsUndefined (1 ms) 2022-11-23T01:08:51.2040830Z [ RUN ] CustomAutogradTest.MaterializeGrads 2022-11-23T01:08:51.2051900Z [ OK ] CustomAutogradTest.MaterializeGrads (1 ms) 2022-11-23T01:08:51.2052538Z [ RUN ] CustomAutogradTest.DontMaterializeGrads 2022-11-23T01:08:51.2057004Z [ OK ] CustomAutogradTest.DontMaterializeGrads (0 ms) 2022-11-23T01:08:51.2057624Z [ RUN ] CustomAutogradTest.NoGradCustomFunction 2022-11-23T01:08:51.2059443Z [ OK ] CustomAutogradTest.NoGradCustomFunction (0 ms) 2022-11-23T01:08:51.2060058Z [ RUN ] CustomAutogradTest.MarkDirty 2022-11-23T01:08:51.2066936Z [ OK ] CustomAutogradTest.MarkDirty (0 ms) 2022-11-23T01:08:51.2067504Z [ RUN ] CustomAutogradTest.MarkNonDifferentiable 2022-11-23T01:08:51.2075824Z [ OK ] CustomAutogradTest.MarkNonDifferentiable (0 ms) 2022-11-23T01:08:51.2076358Z [ RUN ] CustomAutogradTest.MarkNonDifferentiableMixed 2022-11-23T01:08:51.2101255Z [ OK ] CustomAutogradTest.MarkNonDifferentiableMixed (2 ms) 2022-11-23T01:08:51.2101878Z [ RUN ] CustomAutogradTest.MarkNonDifferentiableNone 2022-11-23T01:08:51.2109413Z [ OK ] CustomAutogradTest.MarkNonDifferentiableNone (0 ms) 2022-11-23T01:08:51.2110082Z [ RUN ] CustomAutogradTest.ReturnLeafInplace 2022-11-23T01:08:51.2123740Z [ OK ] CustomAutogradTest.ReturnLeafInplace (1 ms) 2022-11-23T01:08:51.2124344Z [ RUN ] CustomAutogradTest.ReturnDuplicateInplace 2022-11-23T01:08:51.2154752Z [ OK ] CustomAutogradTest.ReturnDuplicateInplace (3 ms) 2022-11-23T01:08:51.2155245Z [ RUN ] CustomAutogradTest.ReturnDuplicate 2022-11-23T01:08:51.2157107Z [ OK ] CustomAutogradTest.ReturnDuplicate (0 ms) 2022-11-23T01:08:51.2157717Z [ RUN ] CustomAutogradTest.SaveEmptyForBackward 2022-11-23T01:08:51.2171268Z [ OK ] CustomAutogradTest.SaveEmptyForBackward (1 ms) 2022-11-23T01:08:51.2171985Z [ RUN ] CustomAutogradTest.InvalidGradients 2022-11-23T01:08:51.2236746Z [ OK ] CustomAutogradTest.InvalidGradients (6 ms) 2022-11-23T01:08:51.2237329Z [ RUN ] CustomAutogradTest.NoGradInput 2022-11-23T01:08:51.2237924Z [ OK ] CustomAutogradTest.NoGradInput (0 ms) 2022-11-23T01:08:51.2238539Z [ RUN ] CustomAutogradTest.TooManyGrads 2022-11-23T01:08:51.2238949Z [ OK ] CustomAutogradTest.TooManyGrads (0 ms) 2022-11-23T01:08:51.2239268Z [ RUN ] CustomAutogradTest.DepNoGrad 2022-11-23T01:08:51.2251757Z [ OK ] CustomAutogradTest.DepNoGrad (1 ms) 2022-11-23T01:08:51.2252064Z [ RUN ] CustomAutogradTest.Reentrant 2022-11-23T01:08:51.2271905Z [ OK ] CustomAutogradTest.Reentrant (1 ms) 2022-11-23T01:08:51.2272552Z [ RUN ] CustomAutogradTest.DeepReentrant 2022-11-23T01:08:59.4061182Z [ OK ] CustomAutogradTest.DeepReentrant (8178 ms) 2022-11-23T01:08:59.4061608Z [ RUN ] CustomAutogradTest.ReentrantPriority 2022-11-23T01:08:59.4149772Z [ OK ] CustomAutogradTest.ReentrantPriority (8 ms) 2022-11-23T01:08:59.4150135Z [ RUN ] CustomAutogradTest.Hooks 2022-11-23T01:08:59.4253533Z [ OK ] CustomAutogradTest.Hooks (10 ms) 2022-11-23T01:08:59.4253872Z [ RUN ] CustomAutogradTest.HooksInplace 2022-11-23T01:08:59.4277714Z [ OK ] CustomAutogradTest.HooksInplace (2 ms) 2022-11-23T01:08:59.4278180Z [ RUN ] CustomAutogradTest.HooksInplaceWithRetainsGrad 2022-11-23T01:08:59.4314729Z [ OK ] CustomAutogradTest.HooksInplaceWithRetainsGrad (3 ms) 2022-11-23T01:08:59.4315224Z [ RUN ] CustomAutogradTest.HooksInplaceTwiceWithRetainsGrad 2022-11-23T01:08:59.4354027Z [ OK ] CustomAutogradTest.HooksInplaceTwiceWithRetainsGrad (3 ms) 2022-11-23T01:08:59.4354408Z [ RUN ] CustomAutogradTest.HookNone 2022-11-23T01:08:59.4365149Z [ OK ] CustomAutogradTest.HookNone (1 ms) 2022-11-23T01:08:59.4365558Z [ RUN ] CustomAutogradTest.BackwardWithInputs 2022-11-23T01:08:59.4386199Z [ OK ] CustomAutogradTest.BackwardWithInputs (2 ms) 2022-11-23T01:08:59.4386684Z [ RUN ] CustomAutogradTest.BackwardWithEmptyInputs 2022-11-23T01:08:59.4410598Z [ OK ] CustomAutogradTest.BackwardWithEmptyInputs (2 ms) 2022-11-23T01:08:59.4411018Z [ RUN ] CustomAutogradTest.BackwardWithNonLeafInputs 2022-11-23T01:08:59.4437150Z [ OK ] CustomAutogradTest.BackwardWithNonLeafInputs (2 ms) 2022-11-23T01:08:59.4437828Z [ RUN ] CustomAutogradTest.BackwardWithCreateGraphWarns 2022-11-23T01:08:59.4448761Z [ OK ] CustomAutogradTest.BackwardWithCreateGraphWarns (1 ms) 2022-11-23T01:08:59.4449213Z [----------] 33 tests from CustomAutogradTest (8254 ms total) 2022-11-23T01:08:59.4449378Z 2022-11-23T01:08:59.4449592Z [----------] 13 tests from TestAutogradNotImplementedFallback 2022-11-23T01:08:59.4450024Z [ RUN ] TestAutogradNotImplementedFallback.RetSingleNonTensor 2022-11-23T01:08:59.4470832Z [ OK ] TestAutogradNotImplementedFallback.RetSingleNonTensor (2 ms) 2022-11-23T01:08:59.4471305Z [ RUN ] TestAutogradNotImplementedFallback.InplaceOp 2022-11-23T01:08:59.4576202Z [ OK ] TestAutogradNotImplementedFallback.InplaceOp (10 ms) 2022-11-23T01:08:59.4576675Z [ RUN ] TestAutogradNotImplementedFallback.DoubleInplaceOp 2022-11-23T01:08:59.4663833Z [ OK ] TestAutogradNotImplementedFallback.DoubleInplaceOp (8 ms) 2022-11-23T01:08:59.4664261Z [ RUN ] TestAutogradNotImplementedFallback.OptOp 2022-11-23T01:08:59.4694501Z [ OK ] TestAutogradNotImplementedFallback.OptOp (3 ms) 2022-11-23T01:08:59.4695157Z [ RUN ] TestAutogradNotImplementedFallback.OutOfPlaceAddition 2022-11-23T01:08:59.4748385Z [ OK ] TestAutogradNotImplementedFallback.OutOfPlaceAddition (5 ms) 2022-11-23T01:08:59.4748980Z [ RUN ] TestAutogradNotImplementedFallback.RetTupleNonTensor 2022-11-23T01:08:59.4802136Z [ OK ] TestAutogradNotImplementedFallback.RetTupleNonTensor (5 ms) 2022-11-23T01:08:59.4802586Z [ RUN ] TestAutogradNotImplementedFallback.ViewOp 2022-11-23T01:08:59.4905457Z [ OK ] TestAutogradNotImplementedFallback.ViewOp (10 ms) 2022-11-23T01:08:59.4905922Z [ RUN ] TestAutogradNotImplementedFallback.ViewOpWithExtraArg 2022-11-23T01:08:59.4960294Z [ OK ] TestAutogradNotImplementedFallback.ViewOpWithExtraArg (5 ms) 2022-11-23T01:08:59.4960859Z [ RUN ] TestAutogradNotImplementedFallback.RetTensorVectorView 2022-11-23T01:08:59.4976669Z [ OK ] TestAutogradNotImplementedFallback.RetTensorVectorView (1 ms) 2022-11-23T01:08:59.4977143Z [ RUN ] TestAutogradNotImplementedFallback.DoubleViewOP 2022-11-23T01:08:59.5019701Z [ OK ] TestAutogradNotImplementedFallback.DoubleViewOP (4 ms) 2022-11-23T01:08:59.5020152Z [ RUN ] TestAutogradNotImplementedFallback.NonFirstViewOP 2022-11-23T01:08:59.5072364Z [ OK ] TestAutogradNotImplementedFallback.NonFirstViewOP (5 ms) 2022-11-23T01:08:59.5072831Z [ RUN ] TestAutogradNotImplementedFallback.RetTensorVector 2022-11-23T01:08:59.5125206Z [ OK ] TestAutogradNotImplementedFallback.RetTensorVector (5 ms) 2022-11-23T01:08:59.5125661Z [ RUN ] TestAutogradNotImplementedFallback.TensorlistOp 2022-11-23T01:08:59.5177595Z [ OK ] TestAutogradNotImplementedFallback.TensorlistOp (5 ms) 2022-11-23T01:08:59.5178394Z [----------] 13 tests from TestAutogradNotImplementedFallback (72 ms total) 2022-11-23T01:08:59.5178862Z 2022-11-23T01:08:59.5179142Z [----------] 18 tests from AnyModuleTest 2022-11-23T01:08:59.5179701Z [ RUN ] AnyModuleTest.SimpleReturnType 2022-11-23T01:08:59.5180268Z [ OK ] AnyModuleTest.SimpleReturnType (0 ms) 2022-11-23T01:08:59.5180927Z [ RUN ] AnyModuleTest.SimpleReturnTypeAndSingleArgument 2022-11-23T01:08:59.5181735Z [ OK ] AnyModuleTest.SimpleReturnTypeAndSingleArgument (0 ms) 2022-11-23T01:08:59.5182524Z [ RUN ] AnyModuleTest.StringLiteralReturnTypeAndArgument 2022-11-23T01:08:59.5182980Z [ OK ] AnyModuleTest.StringLiteralReturnTypeAndArgument (0 ms) 2022-11-23T01:08:59.5183417Z [ RUN ] AnyModuleTest.StringReturnTypeWithConstArgument 2022-11-23T01:08:59.5184091Z [ OK ] AnyModuleTest.StringReturnTypeWithConstArgument (0 ms) 2022-11-23T01:08:59.5184796Z [ RUN ] AnyModuleTest.TensorReturnTypeAndStringArgumentsWithFunkyQualifications 2022-11-23T01:08:59.5185637Z [ OK ] AnyModuleTest.TensorReturnTypeAndStringArgumentsWithFunkyQualifications (0 ms) 2022-11-23T01:08:59.5186099Z [ RUN ] AnyModuleTest.WrongArgumentType 2022-11-23T01:08:59.5203034Z [ OK ] AnyModuleTest.WrongArgumentType (1 ms) 2022-11-23T01:08:59.5203665Z [ RUN ] AnyModuleTest.WrongNumberOfArguments 2022-11-23T01:08:59.5254568Z [ OK ] AnyModuleTest.WrongNumberOfArguments (5 ms) 2022-11-23T01:08:59.5255322Z [ RUN ] AnyModuleTest.PassingArgumentsToModuleWithDefaultArgumentsInForwardMethod 2022-11-23T01:08:59.5357034Z [ OK ] AnyModuleTest.PassingArgumentsToModuleWithDefaultArgumentsInForwardMethod (10 ms) 2022-11-23T01:08:59.5357663Z [ RUN ] AnyModuleTest.GetWithCorrectTypeSucceeds 2022-11-23T01:08:59.5358072Z [ OK ] AnyModuleTest.GetWithCorrectTypeSucceeds (0 ms) 2022-11-23T01:08:59.5358461Z [ RUN ] AnyModuleTest.GetWithIncorrectTypeThrows 2022-11-23T01:08:59.5373286Z [ OK ] AnyModuleTest.GetWithIncorrectTypeThrows (1 ms) 2022-11-23T01:08:59.5373960Z [ RUN ] AnyModuleTest.PtrWithBaseClassSucceeds 2022-11-23T01:08:59.5374550Z [ OK ] AnyModuleTest.PtrWithBaseClassSucceeds (0 ms) 2022-11-23T01:08:59.5375265Z [ RUN ] AnyModuleTest.PtrWithGoodDowncastSuccceeds 2022-11-23T01:08:59.5375708Z [ OK ] AnyModuleTest.PtrWithGoodDowncastSuccceeds (0 ms) 2022-11-23T01:08:59.5376093Z [ RUN ] AnyModuleTest.PtrWithBadDowncastThrows 2022-11-23T01:08:59.5391299Z [ OK ] AnyModuleTest.PtrWithBadDowncastThrows (1 ms) 2022-11-23T01:08:59.5391662Z [ RUN ] AnyModuleTest.DefaultStateIsEmpty 2022-11-23T01:08:59.5392014Z [ OK ] AnyModuleTest.DefaultStateIsEmpty (0 ms) 2022-11-23T01:08:59.5392407Z [ RUN ] AnyModuleTest.AllMethodsThrowForEmptyAnyModule 2022-11-23T01:08:59.5464708Z [ OK ] AnyModuleTest.AllMethodsThrowForEmptyAnyModule (7 ms) 2022-11-23T01:08:59.5465306Z [ RUN ] AnyModuleTest.CanMoveAssignDifferentModules 2022-11-23T01:08:59.5465725Z [ OK ] AnyModuleTest.CanMoveAssignDifferentModules (0 ms) 2022-11-23T01:08:59.5466120Z [ RUN ] AnyModuleTest.ConstructsFromModuleHolder 2022-11-23T01:08:59.5468427Z [ OK ] AnyModuleTest.ConstructsFromModuleHolder (0 ms) 2022-11-23T01:08:59.5468846Z [ RUN ] AnyModuleTest.ConvertsVariableToTensorCorrectly 2022-11-23T01:08:59.5471743Z [ OK ] AnyModuleTest.ConvertsVariableToTensorCorrectly (0 ms) 2022-11-23T01:08:59.5472317Z [----------] 18 tests from AnyModuleTest (29 ms total) 2022-11-23T01:08:59.5472554Z 2022-11-23T01:08:59.5472776Z [----------] 12 tests from AnyValueTest 2022-11-23T01:08:59.5473310Z [ RUN ] AnyValueTest.CorrectlyAccessesIntWhenCorrectType 2022-11-23T01:08:59.5473957Z [ OK ] AnyValueTest.CorrectlyAccessesIntWhenCorrectType (0 ms) 2022-11-23T01:08:59.5474809Z [ RUN ] AnyValueTest.CorrectlyAccessesStringLiteralWhenCorrectType 2022-11-23T01:08:59.5475739Z [ OK ] AnyValueTest.CorrectlyAccessesStringLiteralWhenCorrectType (0 ms) 2022-11-23T01:08:59.5476407Z [ RUN ] AnyValueTest.CorrectlyAccessesStringWhenCorrectType 2022-11-23T01:08:59.5476872Z [ OK ] AnyValueTest.CorrectlyAccessesStringWhenCorrectType (0 ms) 2022-11-23T01:08:59.5477320Z [ RUN ] AnyValueTest.CorrectlyAccessesPointersWhenCorrectType 2022-11-23T01:08:59.5477787Z [ OK ] AnyValueTest.CorrectlyAccessesPointersWhenCorrectType (0 ms) 2022-11-23T01:08:59.5478255Z [ RUN ] AnyValueTest.CorrectlyAccessesReferencesWhenCorrectType 2022-11-23T01:08:59.5478884Z [ OK ] AnyValueTest.CorrectlyAccessesReferencesWhenCorrectType (0 ms) 2022-11-23T01:08:59.5479331Z [ RUN ] AnyValueTest.TryGetReturnsNullptrForTheWrongType 2022-11-23T01:08:59.5479775Z [ OK ] AnyValueTest.TryGetReturnsNullptrForTheWrongType (0 ms) 2022-11-23T01:08:59.5480181Z [ RUN ] AnyValueTest.GetThrowsForTheWrongType 2022-11-23T01:08:59.5508659Z [ OK ] AnyValueTest.GetThrowsForTheWrongType (3 ms) 2022-11-23T01:08:59.5509258Z [ RUN ] AnyValueTest.MoveConstructionIsAllowed 2022-11-23T01:08:59.5510074Z [ OK ] AnyValueTest.MoveConstructionIsAllowed (0 ms) 2022-11-23T01:08:59.5510706Z [ RUN ] AnyValueTest.MoveAssignmentIsAllowed 2022-11-23T01:08:59.5511453Z [ OK ] AnyValueTest.MoveAssignmentIsAllowed (0 ms) 2022-11-23T01:08:59.5511965Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForInt 2022-11-23T01:08:59.5512421Z [ OK ] AnyValueTest.TypeInfoIsCorrectForInt (0 ms) 2022-11-23T01:08:59.5512872Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForStringLiteral 2022-11-23T01:08:59.5513302Z [ OK ] AnyValueTest.TypeInfoIsCorrectForStringLiteral (0 ms) 2022-11-23T01:08:59.5513701Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForString 2022-11-23T01:08:59.5514194Z [ OK ] AnyValueTest.TypeInfoIsCorrectForString (0 ms) 2022-11-23T01:08:59.5514545Z [----------] 12 tests from AnyValueTest (3 ms total) 2022-11-23T01:08:59.5514699Z 2022-11-23T01:08:59.5514838Z [----------] 50 tests from DataTest 2022-11-23T01:08:59.5515145Z [ RUN ] DataTest.DatasetCallsGetCorrectly 2022-11-23T01:08:59.5515480Z [ OK ] DataTest.DatasetCallsGetCorrectly (0 ms) 2022-11-23T01:08:59.5515846Z [ RUN ] DataTest.TransformCallsGetApplyCorrectly 2022-11-23T01:08:59.5516235Z [ OK ] DataTest.TransformCallsGetApplyCorrectly (0 ms) 2022-11-23T01:08:59.5516636Z [ RUN ] DataTest.ChunkDataSetWithInvalidInitParameter 2022-11-23T01:08:59.5584171Z [ OK ] DataTest.ChunkDataSetWithInvalidInitParameter (7 ms) 2022-11-23T01:08:59.5584625Z [ RUN ] DataTest.InfiniteStreamDataset 2022-11-23T01:08:59.5585273Z [ OK ] DataTest.InfiniteStreamDataset (0 ms) 2022-11-23T01:08:59.5585797Z [ RUN ] DataTest.NoSequencerIsIdentity 2022-11-23T01:08:59.5586315Z [ OK ] DataTest.NoSequencerIsIdentity (0 ms) 2022-11-23T01:08:59.5586827Z [ RUN ] DataTest.OrderedSequencerIsSetUpWell 2022-11-23T01:08:59.5587406Z [ OK ] DataTest.OrderedSequencerIsSetUpWell (0 ms) 2022-11-23T01:08:59.5587958Z [ RUN ] DataTest.OrderedSequencerReOrdersValues 2022-11-23T01:08:59.5588535Z [ OK ] DataTest.OrderedSequencerReOrdersValues (0 ms) 2022-11-23T01:08:59.5589037Z [ RUN ] DataTest.BatchLambdaAppliesFunctionToBatch 2022-11-23T01:08:59.5589441Z [ OK ] DataTest.BatchLambdaAppliesFunctionToBatch (0 ms) 2022-11-23T01:08:59.5589898Z [ RUN ] DataTest.LambdaAppliesFunctionToExample 2022-11-23T01:08:59.5590291Z [ OK ] DataTest.LambdaAppliesFunctionToExample (0 ms) 2022-11-23T01:08:59.5590842Z [ RUN ] DataTest.CollateReducesBatch 2022-11-23T01:08:59.5591430Z [ OK ] DataTest.CollateReducesBatch (0 ms) 2022-11-23T01:08:59.5591759Z [ RUN ] DataTest.CollationReducesBatch 2022-11-23T01:08:59.5592091Z [ OK ] DataTest.CollationReducesBatch (0 ms) 2022-11-23T01:08:59.5592464Z [ RUN ] DataTest.SequentialSamplerReturnsIndicesInOrder 2022-11-23T01:08:59.5592893Z [ OK ] DataTest.SequentialSamplerReturnsIndicesInOrder (0 ms) 2022-11-23T01:08:59.5593354Z [ RUN ] DataTest.SequentialSamplerReturnsLessValuesForLastBatch 2022-11-23T01:08:59.5594009Z [ OK ] DataTest.SequentialSamplerReturnsLessValuesForLastBatch (0 ms) 2022-11-23T01:08:59.5594786Z [ RUN ] DataTest.SequentialSamplerResetsWell 2022-11-23T01:08:59.5595412Z [ OK ] DataTest.SequentialSamplerResetsWell (0 ms) 2022-11-23T01:08:59.5595812Z [ RUN ] DataTest.SequentialSamplerResetsWithNewSizeWell 2022-11-23T01:08:59.5596233Z [ OK ] DataTest.SequentialSamplerResetsWithNewSizeWell (0 ms) 2022-11-23T01:08:59.5596636Z [ RUN ] DataTest.CanSaveAndLoadSequentialSampler 2022-11-23T01:08:59.7294532Z [ OK ] DataTest.CanSaveAndLoadSequentialSampler (170 ms) 2022-11-23T01:08:59.7295265Z [ RUN ] DataTest.RandomSamplerReturnsIndicesInCorrectRange 2022-11-23T01:08:59.7296612Z [ OK ] DataTest.RandomSamplerReturnsIndicesInCorrectRange (0 ms) 2022-11-23T01:08:59.7297403Z [ RUN ] DataTest.RandomSamplerReturnsLessValuesForLastBatch 2022-11-23T01:08:59.7298757Z [ OK ] DataTest.RandomSamplerReturnsLessValuesForLastBatch (0 ms) 2022-11-23T01:08:59.7299448Z [ RUN ] DataTest.RandomSamplerResetsWell 2022-11-23T01:08:59.7301325Z [ OK ] DataTest.RandomSamplerResetsWell (0 ms) 2022-11-23T01:08:59.7301980Z [ RUN ] DataTest.RandomSamplerResetsWithNewSizeWell 2022-11-23T01:08:59.7304732Z [ OK ] DataTest.RandomSamplerResetsWithNewSizeWell (0 ms) 2022-11-23T01:08:59.7305528Z [ RUN ] DataTest.SavingAndLoadingRandomSamplerYieldsSameSequence 2022-11-23T01:08:59.7352427Z [ OK ] DataTest.SavingAndLoadingRandomSamplerYieldsSameSequence (4 ms) 2022-11-23T01:08:59.7353235Z [ RUN ] DataTest.StreamSamplerReturnsTheBatchSizeAndThenRemainder 2022-11-23T01:08:59.7353753Z [ OK ] DataTest.StreamSamplerReturnsTheBatchSizeAndThenRemainder (0 ms) 2022-11-23T01:08:59.7354151Z [ RUN ] DataTest.StreamSamplerResetsWell 2022-11-23T01:08:59.7354499Z [ OK ] DataTest.StreamSamplerResetsWell (0 ms) 2022-11-23T01:08:59.7354869Z [ RUN ] DataTest.StreamSamplerResetsWithNewSizeWell 2022-11-23T01:08:59.7355266Z [ OK ] DataTest.StreamSamplerResetsWithNewSizeWell (0 ms) 2022-11-23T01:08:59.7355686Z [ RUN ] DataTest.TensorDatasetConstructsFromSingleTensor 2022-11-23T01:08:59.7362930Z [ OK ] DataTest.TensorDatasetConstructsFromSingleTensor (0 ms) 2022-11-23T01:08:59.7363418Z [ RUN ] DataTest.TensorDatasetConstructsFromInitializerListOfTensors 2022-11-23T01:08:59.7374705Z [ OK ] DataTest.TensorDatasetConstructsFromInitializerListOfTensors (1 ms) 2022-11-23T01:08:59.7375151Z [ RUN ] DataTest.StackTransformWorksForExample 2022-11-23T01:08:59.7409523Z [ OK ] DataTest.StackTransformWorksForExample (3 ms) 2022-11-23T01:08:59.7409913Z [ RUN ] DataTest.StackTransformWorksForTensorExample 2022-11-23T01:08:59.7425352Z [ OK ] DataTest.StackTransformWorksForTensorExample (1 ms) 2022-11-23T01:08:59.7425789Z [ RUN ] DataTest.TensorTransformWorksForAnyTargetType 2022-11-23T01:08:59.7438999Z [ OK ] DataTest.TensorTransformWorksForAnyTargetType (1 ms) 2022-11-23T01:08:59.7439396Z [ RUN ] DataTest.TensorLambdaWorksforAnyTargetType 2022-11-23T01:08:59.7452243Z [ OK ] DataTest.TensorLambdaWorksforAnyTargetType (1 ms) 2022-11-23T01:08:59.7452619Z [ RUN ] DataTest.NormalizeTransform 2022-11-23T01:08:59.7523992Z [ OK ] DataTest.NormalizeTransform (7 ms) 2022-11-23T01:08:59.7524565Z [ RUN ] DataTest.MapDoesNotCopy 2022-11-23T01:08:59.7527826Z [ OK ] DataTest.MapDoesNotCopy (0 ms) 2022-11-23T01:08:59.7528481Z [ RUN ] DataTest.QueuePushAndPopFromSameThread 2022-11-23T01:08:59.7528964Z [ OK ] DataTest.QueuePushAndPopFromSameThread (0 ms) 2022-11-23T01:08:59.7529367Z [ RUN ] DataTest.QueuePopWithTimeoutThrowsUponTimeout 2022-11-23T01:08:59.7646741Z [ OK ] DataTest.QueuePopWithTimeoutThrowsUponTimeout (11 ms) 2022-11-23T01:08:59.7647522Z [ RUN ] DataTest.QueuePushAndPopFromDifferentThreads 2022-11-23T01:08:59.7864140Z [ OK ] DataTest.QueuePushAndPopFromDifferentThreads (21 ms) 2022-11-23T01:08:59.7864576Z [ RUN ] DataTest.QueueClearEmptiesTheQueue 2022-11-23T01:08:59.7891105Z [ OK ] DataTest.QueueClearEmptiesTheQueue (2 ms) 2022-11-23T01:08:59.7891637Z [ RUN ] DataTest.DataShuttleCanPushAndPopJob 2022-11-23T01:08:59.7892078Z [ OK ] DataTest.DataShuttleCanPushAndPopJob (0 ms) 2022-11-23T01:08:59.7892456Z [ RUN ] DataTest.DataShuttleCanPushAndPopResult 2022-11-23T01:08:59.7892839Z [ OK ] DataTest.DataShuttleCanPushAndPopResult (0 ms) 2022-11-23T01:08:59.7893301Z [ RUN ] DataTest.DataShuttlePopResultReturnsNulloptWhenNoJobsInFlight 2022-11-23T01:08:59.7893835Z [ OK ] DataTest.DataShuttlePopResultReturnsNulloptWhenNoJobsInFlight (0 ms) 2022-11-23T01:08:59.7894347Z [ RUN ] DataTest.DataShuttleDrainMeansPopResultReturnsNullopt 2022-11-23T01:08:59.7894822Z [ OK ] DataTest.DataShuttleDrainMeansPopResultReturnsNullopt (0 ms) 2022-11-23T01:08:59.7895388Z [ RUN ] DataTest.DataShuttlePopResultTimesOut 2022-11-23T01:08:59.8009460Z [ OK ] DataTest.DataShuttlePopResultTimesOut (11 ms) 2022-11-23T01:08:59.8009849Z [ RUN ] DataTest.SharedBatchDatasetReallyIsShared 2022-11-23T01:08:59.8060748Z [ OK ] DataTest.SharedBatchDatasetReallyIsShared (5 ms) 2022-11-23T01:08:59.8061451Z [ RUN ] DataTest.SharedBatchDatasetDoesNotIncurCopyWhenPassedDatasetObject 2022-11-23T01:08:59.8062208Z [ OK ] DataTest.SharedBatchDatasetDoesNotIncurCopyWhenPassedDatasetObject (0 ms) 2022-11-23T01:08:59.8062669Z [ RUN ] DataTest.CanUseCustomTypeAsIndexType 2022-11-23T01:08:59.8063027Z [ OK ] DataTest.CanUseCustomTypeAsIndexType (0 ms) 2022-11-23T01:08:59.8063510Z [ RUN ] DataTest.DistributedRandomSamplerSingleReplicaProduceCorrectSamples 2022-11-23T01:08:59.8064096Z [ OK ] DataTest.DistributedRandomSamplerSingleReplicaProduceCorrectSamples (0 ms) 2022-11-23T01:08:59.8064665Z [ RUN ] DataTest.DistributedRandomSamplerMultiReplicaProduceCorrectSamples 2022-11-23T01:08:59.8067697Z [ OK ] DataTest.DistributedRandomSamplerMultiReplicaProduceCorrectSamples (0 ms) 2022-11-23T01:08:59.8068192Z [ RUN ] DataTest.CanSaveAndLoadDistributedRandomSampler 2022-11-23T01:08:59.8133921Z [ OK ] DataTest.CanSaveAndLoadDistributedRandomSampler (6 ms) 2022-11-23T01:08:59.8134593Z [ RUN ] DataTest.DistributedSequentialSamplerSingleReplicaProduceCorrectSamples 2022-11-23T01:08:59.8135301Z [ OK ] DataTest.DistributedSequentialSamplerSingleReplicaProduceCorrectSamples (0 ms) 2022-11-23T01:08:59.8135910Z [ RUN ] DataTest.DistributedSequentialSamplerMultiReplicaProduceCorrectSamples 2022-11-23T01:08:59.8136505Z [ OK ] DataTest.DistributedSequentialSamplerMultiReplicaProduceCorrectSamples (0 ms) 2022-11-23T01:08:59.8137014Z [ RUN ] DataTest.CanSaveAndLoadDistributedSequentialSampler 2022-11-23T01:08:59.8169964Z [ OK ] DataTest.CanSaveAndLoadDistributedSequentialSampler (3 ms) 2022-11-23T01:08:59.8170405Z [----------] 50 tests from DataTest (265 ms total) 2022-11-23T01:08:59.8170576Z 2022-11-23T01:08:59.8170746Z [----------] 37 tests from DataLoaderTest 2022-11-23T01:08:59.8171237Z [ RUN ] DataLoaderTest.DataLoaderOptionsDefaultAsExpected 2022-11-23T01:08:59.8171732Z [ OK ] DataLoaderTest.DataLoaderOptionsDefaultAsExpected (0 ms) 2022-11-23T01:08:59.8172249Z [ RUN ] DataLoaderTest.DataLoaderOptionsCoalesceOptionalValues 2022-11-23T01:08:59.8172729Z [ OK ] DataLoaderTest.DataLoaderOptionsCoalesceOptionalValues (0 ms) 2022-11-23T01:08:59.8173392Z [ RUN ] DataLoaderTest.MakeDataLoaderDefaultsAsExpected 2022-11-23T01:08:59.8173842Z [ OK ] DataLoaderTest.MakeDataLoaderDefaultsAsExpected (0 ms) 2022-11-23T01:08:59.8174392Z [ RUN ] DataLoaderTest.MakeDataLoaderThrowsWhenConstructingSamplerWithUnsizedDataset 2022-11-23T01:08:59.8187423Z [ OK ] DataLoaderTest.MakeDataLoaderThrowsWhenConstructingSamplerWithUnsizedDataset (1 ms) 2022-11-23T01:08:59.8187972Z [ RUN ] DataLoaderTest.IteratorsCompareEqualToThemselves 2022-11-23T01:08:59.8189073Z [ OK ] DataLoaderTest.IteratorsCompareEqualToThemselves (0 ms) 2022-11-23T01:08:59.8189604Z [ RUN ] DataLoaderTest.ValidIteratorsCompareUnequalToEachOther 2022-11-23T01:08:59.8192249Z [ OK ] DataLoaderTest.ValidIteratorsCompareUnequalToEachOther (0 ms) 2022-11-23T01:08:59.8192895Z [ RUN ] DataLoaderTest.SentinelIteratorsCompareEqualToEachOther 2022-11-23T01:08:59.8193474Z [ OK ] DataLoaderTest.SentinelIteratorsCompareEqualToEachOther (0 ms) 2022-11-23T01:08:59.8194016Z [ RUN ] DataLoaderTest.IteratorsCompareEqualToSentinelWhenExhausted 2022-11-23T01:08:59.8196529Z [ OK ] DataLoaderTest.IteratorsCompareEqualToSentinelWhenExhausted (0 ms) 2022-11-23T01:08:59.8197007Z [ RUN ] DataLoaderTest.IteratorsShareState 2022-11-23T01:08:59.8199397Z [ OK ] DataLoaderTest.IteratorsShareState (0 ms) 2022-11-23T01:08:59.8200160Z [ RUN ] DataLoaderTest.CanDereferenceIteratorMultipleTimes 2022-11-23T01:08:59.8200877Z [ OK ] DataLoaderTest.CanDereferenceIteratorMultipleTimes (0 ms) 2022-11-23T01:08:59.8201293Z [ RUN ] DataLoaderTest.CanUseIteratorAlgorithms 2022-11-23T01:08:59.8201680Z [ OK ] DataLoaderTest.CanUseIteratorAlgorithms (0 ms) 2022-11-23T01:08:59.8202138Z [ RUN ] DataLoaderTest.CallingBeginWhileOtherIteratorIsInFlightThrows 2022-11-23T01:08:59.8230862Z [ OK ] DataLoaderTest.CallingBeginWhileOtherIteratorIsInFlightThrows (2 ms) 2022-11-23T01:08:59.8231464Z [ RUN ] DataLoaderTest.IncrementingExhaustedValidIteratorThrows 2022-11-23T01:08:59.8248372Z [ OK ] DataLoaderTest.IncrementingExhaustedValidIteratorThrows (1 ms) 2022-11-23T01:08:59.8249017Z [ RUN ] DataLoaderTest.DereferencingExhaustedValidIteratorThrows 2022-11-23T01:08:59.8266575Z [ OK ] DataLoaderTest.DereferencingExhaustedValidIteratorThrows (1 ms) 2022-11-23T01:08:59.8267187Z [ RUN ] DataLoaderTest.IncrementingSentinelIteratorThrows 2022-11-23T01:08:59.8283388Z [ OK ] DataLoaderTest.IncrementingSentinelIteratorThrows (1 ms) 2022-11-23T01:08:59.8283996Z [ RUN ] DataLoaderTest.DereferencingSentinelIteratorThrows 2022-11-23T01:08:59.8300312Z [ OK ] DataLoaderTest.DereferencingSentinelIteratorThrows (1 ms) 2022-11-23T01:08:59.8300884Z [ RUN ] DataLoaderTest.YieldsCorrectBatchSize 2022-11-23T01:08:59.8303127Z [ OK ] DataLoaderTest.YieldsCorrectBatchSize (0 ms) 2022-11-23T01:08:59.8303838Z [ RUN ] DataLoaderTest.ReturnsLastBatchWhenSmallerThanBatchSizeWhenDropLastIsFalse 2022-11-23T01:08:59.8306476Z [ OK ] DataLoaderTest.ReturnsLastBatchWhenSmallerThanBatchSizeWhenDropLastIsFalse (0 ms) 2022-11-23T01:08:59.8307212Z [ RUN ] DataLoaderTest.DoesNotReturnLastBatchWhenSmallerThanBatchSizeWhenDropLastIsTrue 2022-11-23T01:08:59.8309244Z [ OK ] DataLoaderTest.DoesNotReturnLastBatchWhenSmallerThanBatchSizeWhenDropLastIsTrue (0 ms) 2022-11-23T01:08:59.8309857Z [ RUN ] DataLoaderTest.RespectsTimeout 2022-11-23T01:08:59.8440946Z [ OK ] DataLoaderTest.RespectsTimeout (13 ms) 2022-11-23T01:08:59.8441580Z [ RUN ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured 2022-11-23T01:08:59.8516059Z [ OK ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured (7 ms) 2022-11-23T01:08:59.8516496Z [ RUN ] DataLoaderTest.Reset 2022-11-23T01:08:59.8520246Z [ OK ] DataLoaderTest.Reset (0 ms) 2022-11-23T01:08:59.8520651Z [ RUN ] DataLoaderTest.TestExceptionsArePropagatedFromWorkers 2022-11-23T01:08:59.8530088Z [ OK ] DataLoaderTest.TestExceptionsArePropagatedFromWorkers (0 ms) 2022-11-23T01:08:59.8530680Z [ RUN ] DataLoaderTest.StatefulDatasetWithNoWorkers 2022-11-23T01:08:59.8531927Z [ OK ] DataLoaderTest.StatefulDatasetWithNoWorkers (0 ms) 2022-11-23T01:08:59.8533049Z [ RUN ] DataLoaderTest.StatefulDatasetWithManyWorkers 2022-11-23T01:08:59.8586118Z [ OK ] DataLoaderTest.StatefulDatasetWithManyWorkers (5 ms) 2022-11-23T01:08:59.8586643Z [ RUN ] DataLoaderTest.StatefulDatasetWithMap 2022-11-23T01:08:59.8596080Z [ OK ] DataLoaderTest.StatefulDatasetWithMap (1 ms) 2022-11-23T01:08:59.8596691Z [ RUN ] DataLoaderTest.StatefulDatasetWithCollate 2022-11-23T01:08:59.8610689Z [ OK ] DataLoaderTest.StatefulDatasetWithCollate (1 ms) 2022-11-23T01:08:59.8611392Z [ RUN ] DataLoaderTest.ChunkDataSetGetBatch 2022-11-23T01:08:59.8939661Z [ OK ] DataLoaderTest.ChunkDataSetGetBatch (32 ms) 2022-11-23T01:08:59.8940126Z [ RUN ] DataLoaderTest.ChunkDataSetWithBatchSizeMismatch 2022-11-23T01:08:59.8963874Z [ OK ] DataLoaderTest.ChunkDataSetWithBatchSizeMismatch (2 ms) 2022-11-23T01:08:59.8964461Z [ RUN ] DataLoaderTest.ChunkDataSetWithEmptyBatch 2022-11-23T01:08:59.8968422Z [ OK ] DataLoaderTest.ChunkDataSetWithEmptyBatch (0 ms) 2022-11-23T01:08:59.8968937Z [ RUN ] DataLoaderTest.ChunkDataSetGetBatchWithUnevenBatchSize 2022-11-23T01:08:59.8977580Z [ OK ] DataLoaderTest.ChunkDataSetGetBatchWithUnevenBatchSize (0 ms) 2022-11-23T01:08:59.8978302Z [ RUN ] DataLoaderTest.CanAccessChunkSamplerWithChunkDataSet 2022-11-23T01:08:59.8984227Z [ OK ] DataLoaderTest.CanAccessChunkSamplerWithChunkDataSet (0 ms) 2022-11-23T01:08:59.8984688Z [ RUN ] DataLoaderTest.ChunkDatasetDoesNotHang 2022-11-23T01:08:59.8991226Z [ OK ] DataLoaderTest.ChunkDatasetDoesNotHang (0 ms) 2022-11-23T01:08:59.8991729Z [ RUN ] DataLoaderTest.ChunkDatasetSave 2022-11-23T01:08:59.9376169Z [ OK ] DataLoaderTest.ChunkDatasetSave (38 ms) 2022-11-23T01:08:59.9376544Z [ RUN ] DataLoaderTest.ChunkDatasetLoad 2022-11-23T01:08:59.9414960Z [ OK ] DataLoaderTest.ChunkDatasetLoad (3 ms) 2022-11-23T01:08:59.9415410Z [ RUN ] DataLoaderTest.ChunkDatasetCrossChunkShuffle 2022-11-23T01:08:59.9439126Z [ OK ] DataLoaderTest.ChunkDatasetCrossChunkShuffle (2 ms) 2022-11-23T01:08:59.9439723Z [ RUN ] DataLoaderTest.CustomPreprocessPolicy 2022-11-23T01:08:59.9452946Z [ OK ] DataLoaderTest.CustomPreprocessPolicy (1 ms) 2022-11-23T01:08:59.9453646Z [----------] 37 tests from DataLoaderTest (128 ms total) 2022-11-23T01:08:59.9453909Z 2022-11-23T01:08:59.9454129Z [----------] 1 test from EnumTest 2022-11-23T01:08:59.9454512Z [ RUN ] EnumTest.AllEnums 2022-11-23T01:08:59.9454932Z [ OK ] EnumTest.AllEnums (0 ms) 2022-11-23T01:08:59.9455454Z [----------] 1 test from EnumTest (0 ms total) 2022-11-23T01:08:59.9455725Z 2022-11-23T01:08:59.9456021Z [----------] 6 tests from ExpandingArrayTest 2022-11-23T01:08:59.9456693Z [ RUN ] ExpandingArrayTest.CanConstructFromInitializerList 2022-11-23T01:08:59.9457267Z [ OK ] ExpandingArrayTest.CanConstructFromInitializerList (0 ms) 2022-11-23T01:08:59.9457685Z [ RUN ] ExpandingArrayTest.CanConstructFromVector 2022-11-23T01:08:59.9458228Z [ OK ] ExpandingArrayTest.CanConstructFromVector (0 ms) 2022-11-23T01:08:59.9458734Z [ RUN ] ExpandingArrayTest.CanConstructFromArray 2022-11-23T01:08:59.9459127Z [ OK ] ExpandingArrayTest.CanConstructFromArray (0 ms) 2022-11-23T01:08:59.9459532Z [ RUN ] ExpandingArrayTest.CanConstructFromSingleValue 2022-11-23T01:08:59.9459943Z [ OK ] ExpandingArrayTest.CanConstructFromSingleValue (0 ms) 2022-11-23T01:08:59.9460539Z [ RUN ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInInitializerList 2022-11-23T01:08:59.9473147Z [ OK ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInInitializerList (1 ms) 2022-11-23T01:08:59.9473883Z [ RUN ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInVector 2022-11-23T01:08:59.9488019Z [ OK ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInVector (1 ms) 2022-11-23T01:08:59.9488682Z [----------] 6 tests from ExpandingArrayTest (3 ms total) 2022-11-23T01:08:59.9488854Z 2022-11-23T01:08:59.9488994Z [----------] 10 tests from FFTTest 2022-11-23T01:08:59.9489236Z [ RUN ] FFTTest.fft 2022-11-23T01:08:59.9721434Z [ OK ] FFTTest.fft (23 ms) 2022-11-23T01:08:59.9721738Z [ RUN ] FFTTest.fft_real 2022-11-23T01:08:59.9735013Z [ OK ] FFTTest.fft_real (1 ms) 2022-11-23T01:08:59.9735381Z [ RUN ] FFTTest.fft_pad 2022-11-23T01:08:59.9760187Z [ OK ] FFTTest.fft_pad (2 ms) 2022-11-23T01:08:59.9760516Z [ RUN ] FFTTest.fft_norm 2022-11-23T01:08:59.9781774Z [ OK ] FFTTest.fft_norm (2 ms) 2022-11-23T01:08:59.9782057Z [ RUN ] FFTTest.ifft 2022-11-23T01:08:59.9799890Z [ OK ] FFTTest.ifft (1 ms) 2022-11-23T01:08:59.9800193Z [ RUN ] FFTTest.fft_ifft 2022-11-23T01:08:59.9812887Z [ OK ] FFTTest.fft_ifft (1 ms) 2022-11-23T01:08:59.9813353Z [ RUN ] FFTTest.rfft 2022-11-23T01:08:59.9827784Z [ OK ] FFTTest.rfft (1 ms) 2022-11-23T01:08:59.9828262Z [ RUN ] FFTTest.rfft_irfft 2022-11-23T01:08:59.9837599Z [ OK ] FFTTest.rfft_irfft (0 ms) 2022-11-23T01:08:59.9838078Z [ RUN ] FFTTest.ihfft 2022-11-23T01:08:59.9852531Z [ OK ] FFTTest.ihfft (1 ms) 2022-11-23T01:08:59.9853002Z [ RUN ] FFTTest.hfft_ihfft 2022-11-23T01:08:59.9866873Z [ OK ] FFTTest.hfft_ihfft (1 ms) 2022-11-23T01:08:59.9867263Z [----------] 10 tests from FFTTest (37 ms total) 2022-11-23T01:08:59.9867417Z 2022-11-23T01:08:59.9867561Z [----------] 132 tests from FunctionalTest 2022-11-23T01:08:59.9867843Z [ RUN ] FunctionalTest.Conv1d 2022-11-23T01:08:59.9902110Z [ OK ] FunctionalTest.Conv1d (3 ms) 2022-11-23T01:08:59.9902414Z [ RUN ] FunctionalTest.Conv2dEven 2022-11-23T01:08:59.9928963Z [ OK ] FunctionalTest.Conv2dEven (2 ms) 2022-11-23T01:08:59.9929285Z [ RUN ] FunctionalTest.Conv2dUneven 2022-11-23T01:08:59.9955693Z [ OK ] FunctionalTest.Conv2dUneven (2 ms) 2022-11-23T01:08:59.9955983Z [ RUN ] FunctionalTest.Conv3d 2022-11-23T01:08:59.9994188Z [ OK ] FunctionalTest.Conv3d (3 ms) 2022-11-23T01:08:59.9994572Z [ RUN ] FunctionalTest.MaxPool1d 2022-11-23T01:09:00.0000936Z [ OK ] FunctionalTest.MaxPool1d (0 ms) 2022-11-23T01:09:00.0001488Z [ RUN ] FunctionalTest.MaxPool2d 2022-11-23T01:09:00.0009404Z [ OK ] FunctionalTest.MaxPool2d (0 ms) 2022-11-23T01:09:00.0010009Z [ RUN ] FunctionalTest.MaxPool2dBackward 2022-11-23T01:09:00.0019078Z [ OK ] FunctionalTest.MaxPool2dBackward (0 ms) 2022-11-23T01:09:00.0019610Z [ RUN ] FunctionalTest.MaxPool3d 2022-11-23T01:09:00.0028026Z [ OK ] FunctionalTest.MaxPool3d (0 ms) 2022-11-23T01:09:00.0028451Z [ RUN ] FunctionalTest.AvgPool1d 2022-11-23T01:09:00.0037221Z [ OK ] FunctionalTest.AvgPool1d (0 ms) 2022-11-23T01:09:00.0037780Z [ RUN ] FunctionalTest.AvgPool2d 2022-11-23T01:09:00.0045006Z [ OK ] FunctionalTest.AvgPool2d (0 ms) 2022-11-23T01:09:00.0045626Z [ RUN ] FunctionalTest.AvgPool3d 2022-11-23T01:09:00.0053234Z [ OK ] FunctionalTest.AvgPool3d (0 ms) 2022-11-23T01:09:00.0053839Z [ RUN ] FunctionalTest.FractionalMaxPool2d 2022-11-23T01:09:00.0095059Z [ OK ] FunctionalTest.FractionalMaxPool2d (4 ms) 2022-11-23T01:09:00.0095625Z [ RUN ] FunctionalTest.FractionalMaxPool3d 2022-11-23T01:09:00.0118382Z [ OK ] FunctionalTest.FractionalMaxPool3d (2 ms) 2022-11-23T01:09:00.0118982Z [ RUN ] FunctionalTest.LPPool1d 2022-11-23T01:09:00.0134229Z [ OK ] FunctionalTest.LPPool1d (1 ms) 2022-11-23T01:09:00.0134790Z [ RUN ] FunctionalTest.LPPool2d 2022-11-23T01:09:00.0148817Z [ OK ] FunctionalTest.LPPool2d (1 ms) 2022-11-23T01:09:00.0149402Z [ RUN ] FunctionalTest.CosineSimilarity 2022-11-23T01:09:00.0165878Z [ OK ] FunctionalTest.CosineSimilarity (1 ms) 2022-11-23T01:09:00.0166483Z [ RUN ] FunctionalTest.SmoothL1LossDefaultOptions 2022-11-23T01:09:00.0182733Z [ OK ] FunctionalTest.SmoothL1LossDefaultOptions (1 ms) 2022-11-23T01:09:00.0183258Z [ RUN ] FunctionalTest.SmoothL1LossBeta 2022-11-23T01:09:00.0197618Z [ OK ] FunctionalTest.SmoothL1LossBeta (1 ms) 2022-11-23T01:09:00.0198227Z [ RUN ] FunctionalTest.SmoothL1LossNoReduction 2022-11-23T01:09:00.0211712Z [ OK ] FunctionalTest.SmoothL1LossNoReduction (1 ms) 2022-11-23T01:09:00.0212313Z [ RUN ] FunctionalTest.HuberLossDefaultOptions 2022-11-23T01:09:00.0227101Z [ OK ] FunctionalTest.HuberLossDefaultOptions (1 ms) 2022-11-23T01:09:00.0227671Z [ RUN ] FunctionalTest.HuberLossDelta 2022-11-23T01:09:00.0241577Z [ OK ] FunctionalTest.HuberLossDelta (1 ms) 2022-11-23T01:09:00.0242174Z [ RUN ] FunctionalTest.HuberLossNoReduction 2022-11-23T01:09:00.0255805Z [ OK ] FunctionalTest.HuberLossNoReduction (1 ms) 2022-11-23T01:09:00.0256461Z [ RUN ] FunctionalTest.SoftMarginLossDefaultOptions 2022-11-23T01:09:00.0279233Z [ OK ] FunctionalTest.SoftMarginLossDefaultOptions (2 ms) 2022-11-23T01:09:00.0279854Z [ RUN ] FunctionalTest.MultiLabelSoftMarginLossDefaultOptions 2022-11-23T01:09:00.1065694Z error: decoding address ranges: invalid range list offset 0x1490 2022-11-23T01:09:00.1066424Z error: decoding address ranges: invalid range list offset 0x15bc 2022-11-23T01:09:00.1067113Z error: decoding address ranges: invalid range list offset 0x15f4 2022-11-23T01:09:00.1068066Z error: decoding address ranges: invalid range list offset 0x1629 2022-11-23T01:09:00.1069603Z error: decoding address ranges: invalid range list offset 0x1640 2022-11-23T01:09:00.1071096Z error: decoding address ranges: invalid range list offset 0x1661 2022-11-23T01:09:00.1072602Z error: decoding address ranges: invalid range list offset 0x168c 2022-11-23T01:09:00.1073981Z error: decoding address ranges: invalid range list offset 0x1760 2022-11-23T01:09:00.1075859Z error: decoding address ranges: invalid range list offset 0x1796 2022-11-23T01:09:00.1076729Z error: decoding address ranges: invalid range list offset 0x1801 2022-11-23T01:09:00.1077739Z error: decoding address ranges: invalid range list offset 0x1836 2022-11-23T01:09:00.1078754Z error: decoding address ranges: invalid range list offset 0x1857 2022-11-23T01:09:00.1080215Z error: decoding address ranges: invalid range list offset 0x18a2 2022-11-23T01:09:00.1081086Z error: decoding address ranges: invalid range list offset 0x18d8 2022-11-23T01:09:00.1081885Z error: decoding address ranges: invalid range list offset 0x18f9 2022-11-23T01:09:00.1082913Z error: decoding address ranges: invalid range list offset 0x1925 2022-11-23T01:09:00.1083911Z error: decoding address ranges: invalid range list offset 0x198f 2022-11-23T01:09:00.1085667Z error: decoding address ranges: invalid range list offset 0x19c5 2022-11-23T01:09:00.1086268Z error: decoding address ranges: invalid range list offset 0x19e6 2022-11-23T01:09:00.1086733Z error: decoding address ranges: invalid range list offset 0x1a12 2022-11-23T01:09:00.1087989Z error: decoding address ranges: invalid range list offset 0x1a33 2022-11-23T01:09:00.1088652Z error: decoding address ranges: invalid range list offset 0x1a4a 2022-11-23T01:09:00.1089663Z error: decoding address ranges: invalid range list offset 0x1a61 2022-11-23T01:09:00.1090690Z error: decoding address ranges: invalid range list offset 0x1a78 2022-11-23T01:09:00.1091556Z error: decoding address ranges: invalid range list offset 0x1a8f 2022-11-23T01:09:00.1092222Z error: decoding address ranges: invalid range list offset 0x1aa6 2022-11-23T01:09:00.1093266Z error: decoding address ranges: invalid range list offset 0x1b25 2022-11-23T01:09:00.1094556Z error: decoding address ranges: invalid range list offset 0x1b7b 2022-11-23T01:09:00.1095635Z error: decoding address ranges: invalid range list offset 0x1bb6 2022-11-23T01:09:00.1097742Z error: decoding address ranges: invalid range list offset 0x1bec 2022-11-23T01:09:00.1098156Z error: decoding address ranges: invalid range list offset 0x1c26 2022-11-23T01:09:00.1100215Z error: decoding address ranges: invalid range list offset 0x1c76 2022-11-23T01:09:00.1100615Z error: decoding address ranges: invalid range list offset 0x1e7d 2022-11-23T01:09:00.1102163Z error: decoding address ranges: invalid range list offset 0x21b3 2022-11-23T01:09:00.1103606Z error: decoding address ranges: invalid range list offset 0x226e 2022-11-23T01:09:00.1104993Z error: decoding address ranges: invalid range list offset 0x3e69 2022-11-23T01:09:00.1109675Z error: decoding address ranges: invalid range list offset 0x4c18 2022-11-23T01:09:00.1113038Z error: decoding address ranges: invalid range list offset 0x527f 2022-11-23T01:09:00.1115228Z error: decoding address ranges: invalid range list offset 0x5f80 2022-11-23T01:09:00.1117863Z error: decoding address ranges: invalid range list offset 0x6288 2022-11-23T01:09:00.1120401Z error: decoding address ranges: invalid range list offset 0x7ee1 2022-11-23T01:09:00.1126390Z error: decoding address ranges: invalid range list offset 0x8084 2022-11-23T01:09:00.1129047Z error: decoding address ranges: invalid range list offset 0x82d4 2022-11-23T01:09:00.1131898Z error: decoding address ranges: invalid range list offset 0x87df 2022-11-23T01:09:00.1134819Z error: decoding address ranges: invalid range list offset 0x882c 2022-11-23T01:09:00.1136940Z error: decoding address ranges: invalid range list offset 0x88a1 2022-11-23T01:09:00.1137708Z error: decoding address ranges: invalid range list offset 0x8921 2022-11-23T01:09:00.1138743Z error: decoding address ranges: invalid range list offset 0x8981 2022-11-23T01:09:00.1139681Z error: decoding address ranges: invalid range list offset 0x89f6 2022-11-23T01:09:00.1140399Z error: decoding address ranges: invalid range list offset 0x8a56 2022-11-23T01:09:00.1142215Z error: decoding address ranges: invalid range list offset 0x9643 2022-11-23T01:09:00.1146229Z error: decoding address ranges: invalid range list offset 0xa031 2022-11-23T01:09:00.1151278Z error: decoding address ranges: invalid range list offset 0xa140 2022-11-23T01:09:00.1153311Z error: decoding address ranges: invalid range list offset 0xaf07 2022-11-23T01:09:00.1158650Z error: decoding address ranges: invalid range list offset 0xb159 2022-11-23T01:09:00.1160838Z error: decoding address ranges: invalid range list offset 0xbbdd 2022-11-23T01:09:00.1163993Z error: decoding address ranges: invalid range list offset 0xc162 2022-11-23T01:09:00.1165372Z error: decoding address ranges: invalid range list offset 0xca72 2022-11-23T01:09:00.1168629Z error: decoding address ranges: invalid range list offset 0xd23f 2022-11-23T01:09:00.1171609Z error: decoding address ranges: invalid range list offset 0xd496 2022-11-23T01:09:00.1172876Z error: decoding address ranges: invalid range list offset 0xd669 2022-11-23T01:09:00.1175271Z error: decoding address ranges: invalid range list offset 0xdc22 2022-11-23T01:09:00.1177988Z error: decoding address ranges: invalid range list offset 0xdc71 2022-11-23T01:09:00.1183533Z error: decoding address ranges: invalid range list offset 0xe056 2022-11-23T01:09:00.1187345Z error: decoding address ranges: invalid range list offset 0xe429 2022-11-23T01:09:00.1190813Z error: decoding address ranges: invalid range list offset 0xe709 2022-11-23T01:09:00.1193416Z error: decoding address ranges: invalid range list offset 0xe840 2022-11-23T01:09:00.1194812Z error: decoding address ranges: invalid range list offset 0xe882 2022-11-23T01:09:00.1196570Z error: decoding address ranges: invalid range list offset 0xebba 2022-11-23T01:09:00.1200486Z error: decoding address ranges: invalid range list offset 0xef24 2022-11-23T01:09:00.1203708Z error: decoding address ranges: invalid range list offset 0xf15c 2022-11-23T01:09:00.1206245Z error: decoding address ranges: invalid range list offset 0xf203 2022-11-23T01:09:00.1208588Z error: decoding address ranges: invalid range list offset 0xf2bb 2022-11-23T01:09:00.1210898Z error: decoding address ranges: invalid range list offset 0xf76b 2022-11-23T01:09:00.1214309Z error: decoding address ranges: invalid range list offset 0xf872 2022-11-23T01:09:00.1215800Z error: decoding address ranges: invalid range list offset 0xf8bb 2022-11-23T01:09:00.1219422Z error: decoding address ranges: invalid range list offset 0xf9e4 2022-11-23T01:09:00.1221981Z error: decoding address ranges: invalid range list offset 0x10301 2022-11-23T01:09:00.1224655Z error: decoding address ranges: invalid range list offset 0x10426 2022-11-23T01:09:00.1225835Z error: decoding address ranges: invalid range list offset 0x104b2 2022-11-23T01:09:00.1227740Z error: decoding address ranges: invalid range list offset 0x11586 2022-11-23T01:09:00.1233196Z error: decoding address ranges: invalid range list offset 0x11a21 2022-11-23T01:09:00.1235501Z error: decoding address ranges: invalid range list offset 0x121ff 2022-11-23T01:09:00.1239531Z error: decoding address ranges: invalid range list offset 0x12607 2022-11-23T01:09:00.1242537Z error: decoding address ranges: invalid range list offset 0x1302f 2022-11-23T01:09:00.1245735Z error: decoding address ranges: invalid range list offset 0x13301 2022-11-23T01:09:00.1247283Z error: decoding address ranges: invalid range list offset 0x133af 2022-11-23T01:09:00.1248601Z error: decoding address ranges: invalid range list offset 0x13488 2022-11-23T01:09:00.1250858Z error: decoding address ranges: invalid range list offset 0x13974 2022-11-23T01:09:00.1255146Z error: decoding address ranges: invalid range list offset 0x13a57 2022-11-23T01:09:00.1255872Z error: decoding address ranges: invalid range list offset 0x13ab9 2022-11-23T01:09:00.1257188Z error: decoding address ranges: invalid range list offset 0x13c1a 2022-11-23T01:09:00.1260556Z error: decoding address ranges: invalid range list offset 0x13c99 2022-11-23T01:09:00.1262302Z error: decoding address ranges: invalid range list offset 0x13ef0 2022-11-23T01:09:00.1264863Z error: decoding address ranges: invalid range list offset 0x13f83 2022-11-23T01:09:00.1266302Z error: decoding address ranges: invalid range list offset 0x140f3 2022-11-23T01:09:00.1268092Z error: decoding address ranges: invalid range list offset 0x141e1 2022-11-23T01:09:00.1269996Z error: decoding address ranges: invalid range list offset 0x1442e 2022-11-23T01:09:00.1273276Z error: decoding address ranges: invalid range list offset 0x14aa8 2022-11-23T01:09:00.1277319Z error: decoding address ranges: invalid range list offset 0x15673 2022-11-23T01:09:00.1281998Z error: decoding address ranges: invalid range list offset 0x18bf6 2022-11-23T01:09:00.1291652Z error: decoding address ranges: invalid range list offset 0x19009 2022-11-23T01:09:00.1294662Z error: decoding address ranges: invalid range list offset 0x194ee 2022-11-23T01:09:00.1298683Z error: decoding address ranges: invalid range list offset 0x1c9ef 2022-11-23T01:09:00.1308265Z error: decoding address ranges: invalid range list offset 0x1ce3f 2022-11-23T01:09:00.1310585Z error: decoding address ranges: invalid range list offset 0x1cf18 2022-11-23T01:09:00.1313029Z error: decoding address ranges: invalid range list offset 0x1d103 2022-11-23T01:09:00.1316036Z error: decoding address ranges: invalid range list offset 0x1da2f 2022-11-23T01:09:00.1319753Z error: decoding address ranges: invalid range list offset 0x2312d 2022-11-23T01:09:00.1332097Z error: decoding address ranges: invalid range list offset 0x2508a 2022-11-23T01:09:00.1338063Z error: decoding address ranges: invalid range list offset 0x257f6 2022-11-23T01:09:00.1340444Z error: decoding address ranges: invalid range list offset 0x272cb 2022-11-23T01:09:00.1346937Z error: decoding address ranges: invalid range list offset 0x27ae8 2022-11-23T01:09:00.1350238Z error: decoding address ranges: invalid range list offset 0x30283 2022-11-23T01:09:00.1364250Z error: decoding address ranges: invalid range list offset 0x389b2 2022-11-23T01:09:00.1378359Z error: decoding address ranges: invalid range list offset 0x394a0 2022-11-23T01:09:00.1381571Z error: decoding address ranges: invalid range list offset 0x39903 2022-11-23T01:09:00.1385249Z error: decoding address ranges: invalid range list offset 0x3d5d9 2022-11-23T01:09:00.1394400Z error: decoding address ranges: invalid range list offset 0x3e1c7 2022-11-23T01:09:00.1397650Z error: decoding address ranges: invalid range list offset 0x3e9d0 2022-11-23T01:09:00.1401076Z error: decoding address ranges: invalid range list offset 0x40b5a 2022-11-23T01:09:00.1410358Z error: decoding address ranges: invalid range list offset 0x47c6b 2022-11-23T01:09:00.1425675Z error: decoding address ranges: invalid range list offset 0x4a364 2022-11-23T01:09:00.1433106Z error: decoding address ranges: invalid range list offset 0x50490 2022-11-23T01:09:00.1445205Z error: decoding address ranges: invalid range list offset 0x50fe7 2022-11-23T01:09:00.1448184Z error: decoding address ranges: invalid range list offset 0x5362f 2022-11-23T01:09:00.1454796Z error: decoding address ranges: invalid range list offset 0x53d79 2022-11-23T01:09:00.1456899Z error: decoding address ranges: invalid range list offset 0x5b070 2022-11-23T01:09:00.1473533Z error: decoding address ranges: invalid range list offset 0x5dd4d 2022-11-23T01:09:00.1480061Z error: decoding address ranges: invalid range list offset 0x5e5ad 2022-11-23T01:09:00.1483320Z error: decoding address ranges: invalid range list offset 0x5f058 2022-11-23T01:09:00.1487338Z error: decoding address ranges: invalid range list offset 0x61d90 2022-11-23T01:09:00.1494397Z error: decoding address ranges: invalid range list offset 0x64b74 2022-11-23T01:09:00.1508765Z error: decoding address ranges: invalid range list offset 0x6d03f 2022-11-23T01:09:00.1531461Z error: decoding address ranges: invalid range list offset 0x7466e 2022-11-23T01:09:00.1550918Z error: decoding address ranges: invalid range list offset 0x76491 2022-11-23T01:09:00.1557434Z error: decoding address ranges: invalid range list offset 0x79c86 2022-11-23T01:09:00.1571591Z error: decoding address ranges: invalid range list offset 0x81ad6 2022-11-23T01:09:00.1591963Z error: decoding address ranges: invalid range list offset 0x89601 2022-11-23T01:09:00.1609268Z error: decoding address ranges: invalid range list offset 0x89a15 2022-11-23T01:09:00.1610832Z error: decoding address ranges: invalid range list offset 0x89bba 2022-11-23T01:09:00.1613629Z error: decoding address ranges: invalid range list offset 0x89d86 2022-11-23T01:09:00.1616420Z error: decoding address ranges: invalid range list offset 0x8e6cd 2022-11-23T01:09:00.1625640Z error: decoding address ranges: invalid range list offset 0x8ea4c 2022-11-23T01:09:00.2970026Z ================== 2022-11-23T01:09:00.2970547Z WARNING: ThreadSanitizer: data race (pid=63) 2022-11-23T01:09:00.2971040Z  Read of size 8 at 0x7f61e1767520 by thread T136: 2022-11-23T01:09:00.2971541Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xaf50261) 2022-11-23T01:09:00.2972810Z #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+0x8cada77) 2022-11-23T01:09:00.2974089Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.2975080Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:09:00.2975723Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:09:00.2976222Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:09:00.2976734Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:09:00.2976981Z 2022-11-23T01:09:00.2977290Z  Previous write of size 8 at 0x7f61e1767520 by main thread: 2022-11-23T01:09:00.2977780Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xaf55a50) 2022-11-23T01:09:00.2978190Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xaf5026c) 2022-11-23T01:09:00.2979408Z #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+0x8cada77) 2022-11-23T01:09:00.2980660Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.2981449Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:09:00.2981978Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:09:00.2982378Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:09:00.2983136Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:09:00.2983967Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:09:00.2984831Z #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+0x511a718) 2022-11-23T01:09:00.2985631Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:09:00.2985955Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:09:00.2986630Z #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+0x3198f8e) 2022-11-23T01:09:00.2987278Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:09:00.2987737Z #14 torch::nn::functional::detail::multilabel_soft_margin_loss(at::Tensor const&, at::Tensor const&, at::Tensor const&, c10::variant) (test_api+0x77cf73) 2022-11-23T01:09:00.2988238Z #15 FunctionalTest_MultiLabelSoftMarginLossDefaultOptions_Test::TestBody() (test_api+0x5ee01d) 2022-11-23T01:09:00.2988700Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.2989082Z #17 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.2989373Z #18 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.2989711Z #19 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.2989992Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.2990516Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.2990960Z #22 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.2991195Z #23 main (test_api+0x35eb01) 2022-11-23T01:09:00.2991324Z 2022-11-23T01:09:00.2991595Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7f61e1767520 (libtorch_cpu.so+0x00000d6b5520) 2022-11-23T01:09:00.2991789Z 2022-11-23T01:09:00.2992013Z  Thread T136 'PTThreadPool' (tid=343, running) created by main thread at: 2022-11-23T01:09:00.2992357Z  #0 pthread_create (test_api+0x2d4125) 2022-11-23T01:09:00.2992717Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:09:00.2993265Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:09:00.2993745Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:09:00.2994234Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:09:00.2994728Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:09:00.2995092Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:09:00.2995534Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1347616) 2022-11-23T01:09:00.2996042Z #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+0x1341dcb) 2022-11-23T01:09:00.2996569Z #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+0x1349d83) 2022-11-23T01:09:00.2997825Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2c0cb87) 2022-11-23T01:09:00.2999145Z #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+0x2006e90) 2022-11-23T01:09:00.2999651Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x134d88d) 2022-11-23T01:09:00.3000914Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x319f277) 2022-11-23T01:09:00.3002866Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2005d40) 2022-11-23T01:09:00.3003681Z #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+0x1311698) 2022-11-23T01:09:00.3004618Z #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+0x1314327) 2022-11-23T01:09:00.3007013Z #17 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___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+0x2e12e89) 2022-11-23T01:09:00.3009578Z #18 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+0x1f50f40) 2022-11-23T01:09:00.3010525Z #19 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+0x132c083) 2022-11-23T01:09:00.3011492Z #20 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+0x130bd20) 2022-11-23T01:09:00.3014124Z #21 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e0e1c6) 2022-11-23T01:09:00.3017322Z #22 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+0x20a0e41) 2022-11-23T01:09:00.3018332Z #23 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+0x1f50032) 2022-11-23T01:09:00.3019145Z #24 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+0x4e73d88) 2022-11-23T01:09:00.3020716Z #25 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+0x4e72153) 2022-11-23T01:09:00.3022324Z #26 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+0x1f4f7ae) 2022-11-23T01:09:00.3022883Z #27 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe6d620) 2022-11-23T01:09:00.3023410Z #28 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x12f809a) 2022-11-23T01:09:00.3024650Z #29 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x31236a8) 2022-11-23T01:09:00.3026009Z #30 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x26c0472) 2022-11-23T01:09:00.3027000Z #31 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+0x776c83) 2022-11-23T01:09:00.3027583Z #32 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c698f) 2022-11-23T01:09:00.3027991Z #33 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.3028375Z #34 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.3028638Z #35 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.3028888Z #36 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.3029181Z #37 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.3029732Z #38 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.3030185Z #39 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.3030422Z #40 main (test_api+0x35eb01) 2022-11-23T01:09:00.3030539Z 2022-11-23T01:09:00.3030871Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf50261) in Sleef_expf8_u10 2022-11-23T01:09:00.3031172Z ================== 2022-11-23T01:09:00.3031388Z ================== 2022-11-23T01:09:00.3031654Z WARNING: ThreadSanitizer: data race (pid=63) 2022-11-23T01:09:00.3031965Z  Read of size 8 at 0x7f61e1767668 by thread T136: 2022-11-23T01:09:00.3032290Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f31) 2022-11-23T01:09:00.3033006Z #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+0x8cada88) 2022-11-23T01:09:00.3033623Z #2 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.3034184Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:09:00.3034584Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:09:00.3034975Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:09:00.3035346Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:09:00.3035511Z 2022-11-23T01:09:00.3035698Z  Previous write of size 8 at 0x7f61e1767668 by main thread: 2022-11-23T01:09:00.3036048Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xaf59050) 2022-11-23T01:09:00.3036316Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xaf50f3c) 2022-11-23T01:09:00.3036959Z #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+0x8cada88) 2022-11-23T01:09:00.3037579Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.3038067Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:09:00.3038492Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8ca1a63) 2022-11-23T01:09:00.3038877Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11c5c60) 2022-11-23T01:09:00.3039634Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2be16ee) 2022-11-23T01:09:00.3040387Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x22c2182) 2022-11-23T01:09:00.3041247Z #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+0x511a718) 2022-11-23T01:09:00.3042031Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x22c1e71) 2022-11-23T01:09:00.3042385Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11c68a3) 2022-11-23T01:09:00.3043061Z #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+0x3198f8e) 2022-11-23T01:09:00.3043706Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x2744f51) 2022-11-23T01:09:00.3044162Z #14 torch::nn::functional::detail::multilabel_soft_margin_loss(at::Tensor const&, at::Tensor const&, at::Tensor const&, c10::variant) (test_api+0x77cf73) 2022-11-23T01:09:00.3044650Z #15 FunctionalTest_MultiLabelSoftMarginLossDefaultOptions_Test::TestBody() (test_api+0x5ee01d) 2022-11-23T01:09:00.3045125Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.3045505Z #17 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.3045791Z #18 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.3046041Z #19 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.3046330Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.3046813Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.3047255Z #22 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.3047477Z #23 main (test_api+0x35eb01) 2022-11-23T01:09:00.3047606Z 2022-11-23T01:09:00.3047870Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f61e1767668 (libtorch_cpu.so+0x00000d6b5668) 2022-11-23T01:09:00.3048060Z 2022-11-23T01:09:00.3048281Z  Thread T136 'PTThreadPool' (tid=343, running) created by main thread at: 2022-11-23T01:09:00.3048621Z  #0 pthread_create (test_api+0x2d4125) 2022-11-23T01:09:00.3048968Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:09:00.3049516Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:09:00.3050010Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:09:00.3050493Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:09:00.3050942Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:09:00.3051305Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:09:00.3051738Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1347616) 2022-11-23T01:09:00.3062474Z #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+0x1341dcb) 2022-11-23T01:09:00.3063284Z #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+0x1349d83) 2022-11-23T01:09:00.3064596Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2c0cb87) 2022-11-23T01:09:00.3065968Z #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+0x2006e90) 2022-11-23T01:09:00.3066476Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x134d88d) 2022-11-23T01:09:00.3067687Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x319f277) 2022-11-23T01:09:00.3068976Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2005d40) 2022-11-23T01:09:00.3069551Z #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+0x1311698) 2022-11-23T01:09:00.3070116Z #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+0x1314327) 2022-11-23T01:09:00.3071695Z #17 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___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+0x2e12e89) 2022-11-23T01:09:00.3073290Z #18 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+0x1f50f40) 2022-11-23T01:09:00.3073883Z #19 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+0x132c083) 2022-11-23T01:09:00.3074475Z #20 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+0x130bd20) 2022-11-23T01:09:00.3075904Z #21 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e0e1c6) 2022-11-23T01:09:00.3077790Z #22 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+0x20a0e41) 2022-11-23T01:09:00.3078745Z #23 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+0x1f50032) 2022-11-23T01:09:00.3079442Z #24 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+0x4e73d88) 2022-11-23T01:09:00.3081017Z #25 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+0x4e72153) 2022-11-23T01:09:00.3082604Z #26 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+0x1f4f7ae) 2022-11-23T01:09:00.3083161Z #27 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe6d620) 2022-11-23T01:09:00.3083682Z #28 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x12f809a) 2022-11-23T01:09:00.3084922Z #29 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x31236a8) 2022-11-23T01:09:00.3086221Z #30 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x26c0472) 2022-11-23T01:09:00.3087239Z #31 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+0x776c83) 2022-11-23T01:09:00.3087814Z #32 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c698f) 2022-11-23T01:09:00.3088240Z #33 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.3088710Z #34 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.3088986Z #35 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.3089233Z #36 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.3089580Z #37 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.3090070Z #38 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.3090511Z #39 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.3090734Z #40 main (test_api+0x35eb01) 2022-11-23T01:09:00.3090864Z 2022-11-23T01:09:00.3091243Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf50f31) in Sleef_log1pf8_u10 2022-11-23T01:09:00.3091540Z ================== 2022-11-23T01:09:00.3091909Z [ OK ] FunctionalTest.MultiLabelSoftMarginLossDefaultOptions (278 ms) 2022-11-23T01:09:00.3092335Z [ RUN ] FunctionalTest.SoftMarginLossNoReduction 2022-11-23T01:09:00.3092722Z [ OK ] FunctionalTest.SoftMarginLossNoReduction (2 ms) 2022-11-23T01:09:00.3093167Z [ RUN ] FunctionalTest.MultiLabelSoftMarginLossWeightedNoReduction 2022-11-23T01:09:00.3127975Z [ OK ] FunctionalTest.MultiLabelSoftMarginLossWeightedNoReduction (3 ms) 2022-11-23T01:09:00.3128394Z [ RUN ] FunctionalTest.PairwiseDistance 2022-11-23T01:09:00.3142687Z [ OK ] FunctionalTest.PairwiseDistance (1 ms) 2022-11-23T01:09:00.3143006Z [ RUN ] FunctionalTest.PDist 2022-11-23T01:09:00.3163417Z [ OK ] FunctionalTest.PDist (2 ms) 2022-11-23T01:09:00.3163815Z [ RUN ] FunctionalTest.AdaptiveMaxPool1d 2022-11-23T01:09:00.3172980Z [ OK ] FunctionalTest.AdaptiveMaxPool1d (0 ms) 2022-11-23T01:09:00.3173373Z [ RUN ] FunctionalTest.AdaptiveMaxPool2d 2022-11-23T01:09:00.3181929Z [ OK ] FunctionalTest.AdaptiveMaxPool2d (0 ms) 2022-11-23T01:09:00.3182337Z [ RUN ] FunctionalTest.AdaptiveMaxPool3d 2022-11-23T01:09:00.3191461Z [ OK ] FunctionalTest.AdaptiveMaxPool3d (0 ms) 2022-11-23T01:09:00.3191869Z [ RUN ] FunctionalTest.AdaptiveAvgPool1d 2022-11-23T01:09:00.3200797Z [ OK ] FunctionalTest.AdaptiveAvgPool1d (0 ms) 2022-11-23T01:09:00.3201292Z [ RUN ] FunctionalTest.AdaptiveAvgPool2d 2022-11-23T01:09:00.3210760Z [ OK ] FunctionalTest.AdaptiveAvgPool2d (0 ms) 2022-11-23T01:09:00.3211385Z [ RUN ] FunctionalTest.AdaptiveAvgPool3d 2022-11-23T01:09:00.3221077Z [ OK ] FunctionalTest.AdaptiveAvgPool3d (0 ms) 2022-11-23T01:09:00.3221634Z [ RUN ] FunctionalTest.L1Loss 2022-11-23T01:09:00.3237349Z [ OK ] FunctionalTest.L1Loss (1 ms) 2022-11-23T01:09:00.3237873Z [ RUN ] FunctionalTest.MSELoss 2022-11-23T01:09:00.3249370Z [ OK ] FunctionalTest.MSELoss (1 ms) 2022-11-23T01:09:00.3249882Z [ RUN ] FunctionalTest.BCELoss 2022-11-23T01:09:00.3263428Z [ OK ] FunctionalTest.BCELoss (1 ms) 2022-11-23T01:09:00.3263777Z [ RUN ] FunctionalTest.KLDivLoss 2022-11-23T01:09:00.3266464Z [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) 2022-11-23T01:09:00.3278206Z [ OK ] FunctionalTest.KLDivLoss (1 ms) 2022-11-23T01:09:00.3278607Z [ RUN ] FunctionalTest.HingeEmbeddingLoss 2022-11-23T01:09:00.3294876Z [ OK ] FunctionalTest.HingeEmbeddingLoss (1 ms) 2022-11-23T01:09:00.3295305Z [ RUN ] FunctionalTest.GridSample 2022-11-23T01:09:00.3322403Z [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) 2022-11-23T01:09:00.3357311Z [ OK ] FunctionalTest.GridSample (6 ms) 2022-11-23T01:09:00.3357882Z [ RUN ] FunctionalTest.AffineGrid 2022-11-23T01:09:00.3637516Z [ OK ] FunctionalTest.AffineGrid (27 ms) 2022-11-23T01:09:00.3638066Z [ RUN ] FunctionalTest.MultiMarginLoss 2022-11-23T01:09:00.3648967Z [ OK ] FunctionalTest.MultiMarginLoss (1 ms) 2022-11-23T01:09:00.3649583Z [ RUN ] FunctionalTest.CosineEmbeddingLoss 2022-11-23T01:09:00.3672587Z [ OK ] FunctionalTest.CosineEmbeddingLoss (2 ms) 2022-11-23T01:09:00.3673178Z [ RUN ] FunctionalTest.MultiLabelMarginLossDefaultOptions 2022-11-23T01:09:00.3689344Z [ OK ] FunctionalTest.MultiLabelMarginLossDefaultOptions (1 ms) 2022-11-23T01:09:00.3689983Z [ RUN ] FunctionalTest.MultiLabelMarginLossNoReduction 2022-11-23T01:09:00.3705512Z [ OK ] FunctionalTest.MultiLabelMarginLossNoReduction (1 ms) 2022-11-23T01:09:00.3705931Z [ RUN ] FunctionalTest.TripletMarginLoss 2022-11-23T01:09:00.3721023Z [ OK ] FunctionalTest.TripletMarginLoss (1 ms) 2022-11-23T01:09:00.3721737Z [ RUN ] FunctionalTest.TripletMarginWithDistanceLossDefaultParity 2022-11-23T01:09:00.5065702Z [ OK ] FunctionalTest.TripletMarginWithDistanceLossDefaultParity (134 ms) 2022-11-23T01:09:00.5066113Z [ RUN ] FunctionalTest.NLLLoss 2022-11-23T01:09:00.5081274Z [ OK ] FunctionalTest.NLLLoss (1 ms) 2022-11-23T01:09:00.5081589Z [ RUN ] FunctionalTest.CrossEntropy 2022-11-23T01:09:00.5122588Z [ OK ] FunctionalTest.CrossEntropy (4 ms) 2022-11-23T01:09:00.5122912Z [ RUN ] FunctionalTest.MaxUnpool1d 2022-11-23T01:09:00.5164665Z [ OK ] FunctionalTest.MaxUnpool1d (4 ms) 2022-11-23T01:09:00.5165004Z [ RUN ] FunctionalTest.MaxUnpool2d 2022-11-23T01:09:00.5195057Z [ OK ] FunctionalTest.MaxUnpool2d (2 ms) 2022-11-23T01:09:00.5195417Z [ RUN ] FunctionalTest.MaxUnpool3d 2022-11-23T01:09:00.5213239Z [ OK ] FunctionalTest.MaxUnpool3d (1 ms) 2022-11-23T01:09:00.5213591Z [ RUN ] FunctionalTest.ELU 2022-11-23T01:09:00.5427883Z [ OK ] FunctionalTest.ELU (21 ms) 2022-11-23T01:09:00.5428192Z [ RUN ] FunctionalTest.SELU 2022-11-23T01:09:00.5480884Z [ OK ] FunctionalTest.SELU (5 ms) 2022-11-23T01:09:00.5481158Z [ RUN ] FunctionalTest.GLU 2022-11-23T01:09:00.5498079Z [ OK ] FunctionalTest.GLU (1 ms) 2022-11-23T01:09:00.5498388Z [ RUN ] FunctionalTest.GELU 2022-11-23T01:09:00.5510133Z [ OK ] FunctionalTest.GELU (1 ms) 2022-11-23T01:09:00.5510425Z [ RUN ] FunctionalTest.TanhGELU 2022-11-23T01:09:00.5522658Z [ OK ] FunctionalTest.TanhGELU (1 ms) 2022-11-23T01:09:00.5522972Z [ RUN ] FunctionalTest.Hardshrink 2022-11-23T01:09:00.5625025Z [ OK ] FunctionalTest.Hardshrink (10 ms) 2022-11-23T01:09:00.5625319Z [ RUN ] FunctionalTest.OneHot 2022-11-23T01:09:00.5668080Z [ OK ] FunctionalTest.OneHot (4 ms) 2022-11-23T01:09:00.5668704Z [ RUN ] FunctionalTest.Hardtanh 2022-11-23T01:09:00.6135003Z [ OK ] FunctionalTest.Hardtanh (46 ms) 2022-11-23T01:09:00.6135324Z [ RUN ] FunctionalTest.LeakyReLU 2022-11-23T01:09:00.6283266Z [ OK ] FunctionalTest.LeakyReLU (14 ms) 2022-11-23T01:09:00.6283623Z [ RUN ] FunctionalTest.LogSigmoid 2022-11-23T01:09:00.6294373Z [ OK ] FunctionalTest.LogSigmoid (1 ms) 2022-11-23T01:09:00.6294773Z [ RUN ] FunctionalTest.GumbelSoftmax 2022-11-23T01:09:00.6786096Z [ OK ] FunctionalTest.GumbelSoftmax (49 ms) 2022-11-23T01:09:00.6786430Z [ RUN ] FunctionalTest.Softmax 2022-11-23T01:09:00.6803082Z [ OK ] FunctionalTest.Softmax (1 ms) 2022-11-23T01:09:00.6803497Z [ RUN ] FunctionalTest.Softmin 2022-11-23T01:09:00.6821640Z [ OK ] FunctionalTest.Softmin (1 ms) 2022-11-23T01:09:00.6822014Z [ RUN ] FunctionalTest.LogSoftmax 2022-11-23T01:09:00.6839757Z [ OK ] FunctionalTest.LogSoftmax (1 ms) 2022-11-23T01:09:00.6840048Z [ RUN ] FunctionalTest.PReLU 2022-11-23T01:09:00.6862399Z [ OK ] FunctionalTest.PReLU (2 ms) 2022-11-23T01:09:00.6862872Z [ RUN ] FunctionalTest.LayerNorm 2022-11-23T01:09:00.6871300Z [ OK ] FunctionalTest.LayerNorm (0 ms) 2022-11-23T01:09:00.6871593Z [ RUN ] FunctionalTest.GroupNorm 2022-11-23T01:09:00.6881098Z [ OK ] FunctionalTest.GroupNorm (0 ms) 2022-11-23T01:09:00.6881421Z [ RUN ] FunctionalTest.LocalResponseNorm 2022-11-23T01:09:00.6901077Z [ OK ] FunctionalTest.LocalResponseNorm (1 ms) 2022-11-23T01:09:00.6901396Z [ RUN ] FunctionalTest.Linear 2022-11-23T01:09:00.6935825Z [ OK ] FunctionalTest.Linear (3 ms) 2022-11-23T01:09:00.6936107Z [ RUN ] FunctionalTest.Embedding 2022-11-23T01:09:00.6947786Z [ OK ] FunctionalTest.Embedding (1 ms) 2022-11-23T01:09:00.6948092Z [ RUN ] FunctionalTest.EmbeddingBag 2022-11-23T01:09:00.6990577Z [ OK ] FunctionalTest.EmbeddingBag (4 ms) 2022-11-23T01:09:00.6990873Z [ RUN ] FunctionalTest.Bilinear 2022-11-23T01:09:00.7025346Z [ OK ] FunctionalTest.Bilinear (3 ms) 2022-11-23T01:09:00.7025645Z [ RUN ] FunctionalTest.Normalize 2022-11-23T01:09:00.7075466Z [ OK ] FunctionalTest.Normalize (4 ms) 2022-11-23T01:09:00.7075766Z [ RUN ] FunctionalTest.ReLU 2022-11-23T01:09:00.7118926Z [ OK ] FunctionalTest.ReLU (4 ms) 2022-11-23T01:09:00.7119251Z [ RUN ] FunctionalTest.ReLUDefaultOptions 2022-11-23T01:09:00.7129821Z [ OK ] FunctionalTest.ReLUDefaultOptions (1 ms) 2022-11-23T01:09:00.7130138Z [ RUN ] FunctionalTest.ReLU6 2022-11-23T01:09:00.7180127Z [ OK ] FunctionalTest.ReLU6 (4 ms) 2022-11-23T01:09:00.7180461Z [ RUN ] FunctionalTest.ReLU6DefaultOptions 2022-11-23T01:09:00.7194363Z [ OK ] FunctionalTest.ReLU6DefaultOptions (1 ms) 2022-11-23T01:09:00.7194700Z [ RUN ] FunctionalTest.RReLU 2022-11-23T01:09:00.7763336Z [ OK ] FunctionalTest.RReLU (56 ms) 2022-11-23T01:09:00.7763691Z [ RUN ] FunctionalTest.RReLUDefaultOptions 2022-11-23T01:09:00.7791945Z [ OK ] FunctionalTest.RReLUDefaultOptions (2 ms) 2022-11-23T01:09:00.7792551Z [ RUN ] FunctionalTest.CELU 2022-11-23T01:09:00.7969120Z [ OK ] FunctionalTest.CELU (17 ms) 2022-11-23T01:09:00.7969491Z [ RUN ] FunctionalTest.CELUDefaultOptions 2022-11-23T01:09:00.7987576Z [ OK ] FunctionalTest.CELUDefaultOptions (1 ms) 2022-11-23T01:09:00.7988013Z [ RUN ] FunctionalTest.PixelShuffle 2022-11-23T01:09:00.8005627Z [ OK ] FunctionalTest.PixelShuffle (1 ms) 2022-11-23T01:09:00.8006158Z [ RUN ] FunctionalTest.PixelUnshuffle 2022-11-23T01:09:00.8023550Z [ OK ] FunctionalTest.PixelUnshuffle (1 ms) 2022-11-23T01:09:00.8024127Z [ RUN ] FunctionalTest.Softplus 2022-11-23T01:09:00.8138055Z [ OK ] FunctionalTest.Softplus (11 ms) 2022-11-23T01:09:00.8138397Z [ RUN ] FunctionalTest.SoftplusDefaultOptions 2022-11-23T01:09:00.8152827Z [ OK ] FunctionalTest.SoftplusDefaultOptions (1 ms) 2022-11-23T01:09:00.8153156Z [ RUN ] FunctionalTest.Fold 2022-11-23T01:09:00.8165382Z [ OK ] FunctionalTest.Fold (1 ms) 2022-11-23T01:09:00.8165696Z [ RUN ] FunctionalTest.Unfold 2022-11-23T01:09:00.8182100Z [ OK ] FunctionalTest.Unfold (1 ms) 2022-11-23T01:09:00.8182414Z [ RUN ] FunctionalTest.Softshrink 2022-11-23T01:09:00.8271095Z [ OK ] FunctionalTest.Softshrink (8 ms) 2022-11-23T01:09:00.8271460Z [ RUN ] FunctionalTest.SoftshrinkDefaultOptions 2022-11-23T01:09:00.8283600Z [ OK ] FunctionalTest.SoftshrinkDefaultOptions (1 ms) 2022-11-23T01:09:00.8283947Z [ RUN ] FunctionalTest.Softsign 2022-11-23T01:09:00.8295415Z [ OK ] FunctionalTest.Softsign (1 ms) 2022-11-23T01:09:00.8295745Z [ RUN ] FunctionalTest.Mish 2022-11-23T01:09:00.8306921Z [ OK ] FunctionalTest.Mish (1 ms) 2022-11-23T01:09:00.8307462Z [ RUN ] FunctionalTest.Tanhshrink 2022-11-23T01:09:00.8317316Z [ OK ] FunctionalTest.Tanhshrink (0 ms) 2022-11-23T01:09:00.8317870Z [ RUN ] FunctionalTest.Threshold 2022-11-23T01:09:00.8525114Z [ OK ] FunctionalTest.Threshold (20 ms) 2022-11-23T01:09:00.8525595Z [ RUN ] FunctionalTest.BatchNorm1d 2022-11-23T01:09:00.8538883Z [ OK ] FunctionalTest.BatchNorm1d (1 ms) 2022-11-23T01:09:00.8539300Z [ RUN ] FunctionalTest.BatchNorm1dDefaultOptions 2022-11-23T01:09:00.8550405Z [ OK ] FunctionalTest.BatchNorm1dDefaultOptions (1 ms) 2022-11-23T01:09:00.8550763Z [ RUN ] FunctionalTest.BatchNorm2d 2022-11-23T01:09:00.8564728Z [ OK ] FunctionalTest.BatchNorm2d (1 ms) 2022-11-23T01:09:00.8565108Z [ RUN ] FunctionalTest.BatchNorm2dDefaultOptions 2022-11-23T01:09:00.8578233Z [ OK ] FunctionalTest.BatchNorm2dDefaultOptions (1 ms) 2022-11-23T01:09:00.8578749Z [ RUN ] FunctionalTest.BatchNorm3d 2022-11-23T01:09:00.8593810Z [ OK ] FunctionalTest.BatchNorm3d (1 ms) 2022-11-23T01:09:00.8594154Z [ RUN ] FunctionalTest.BatchNorm3dDefaultOptions 2022-11-23T01:09:00.8607096Z [ OK ] FunctionalTest.BatchNorm3dDefaultOptions (1 ms) 2022-11-23T01:09:00.8607454Z [ RUN ] FunctionalTest.InstanceNorm1d 2022-11-23T01:09:00.8636488Z [ OK ] FunctionalTest.InstanceNorm1d (2 ms) 2022-11-23T01:09:00.8636852Z [ RUN ] FunctionalTest.InstanceNorm1dDefaultOptions 2022-11-23T01:09:00.8656206Z [ OK ] FunctionalTest.InstanceNorm1dDefaultOptions (1 ms) 2022-11-23T01:09:00.8656571Z [ RUN ] FunctionalTest.InstanceNorm2d 2022-11-23T01:09:00.8688070Z [ OK ] FunctionalTest.InstanceNorm2d (3 ms) 2022-11-23T01:09:00.8688446Z [ RUN ] FunctionalTest.InstanceNorm2dDefaultOptions 2022-11-23T01:09:00.8711659Z [ OK ] FunctionalTest.InstanceNorm2dDefaultOptions (2 ms) 2022-11-23T01:09:00.8712025Z [ RUN ] FunctionalTest.InstanceNorm3d 2022-11-23T01:09:00.8757128Z [ OK ] FunctionalTest.InstanceNorm3d (4 ms) 2022-11-23T01:09:00.8757495Z [ RUN ] FunctionalTest.InstanceNorm3dDefaultOptions 2022-11-23T01:09:00.8794166Z [ OK ] FunctionalTest.InstanceNorm3dDefaultOptions (3 ms) 2022-11-23T01:09:00.8794508Z [ RUN ] FunctionalTest.Interpolate 2022-11-23T01:09:00.8803792Z [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) 2022-11-23T01:09:00.8811028Z [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) 2022-11-23T01:09:00.8824139Z [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) 2022-11-23T01:09:00.8830497Z [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) 2022-11-23T01:09:00.8843329Z [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) 2022-11-23T01:09:00.8850464Z [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) 2022-11-23T01:09:00.8863312Z [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) 2022-11-23T01:09:00.8869236Z [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) 2022-11-23T01:09:00.9054339Z [ OK ] FunctionalTest.Interpolate (25 ms) 2022-11-23T01:09:00.9054649Z [ RUN ] FunctionalTest.Pad1 2022-11-23T01:09:00.9066816Z [ OK ] FunctionalTest.Pad1 (1 ms) 2022-11-23T01:09:00.9067090Z [ RUN ] FunctionalTest.Pad2 2022-11-23T01:09:00.9089821Z [ OK ] FunctionalTest.Pad2 (2 ms) 2022-11-23T01:09:00.9090098Z [ RUN ] FunctionalTest.Pad3 2022-11-23T01:09:00.9154039Z [ OK ] FunctionalTest.Pad3 (6 ms) 2022-11-23T01:09:00.9154322Z [ RUN ] FunctionalTest.Pad4 2022-11-23T01:09:00.9176830Z [ OK ] FunctionalTest.Pad4 (2 ms) 2022-11-23T01:09:00.9177246Z [ RUN ] FunctionalTest.Pad5 2022-11-23T01:09:00.9215997Z [ OK ] FunctionalTest.Pad5 (3 ms) 2022-11-23T01:09:00.9216275Z [ RUN ] FunctionalTest.Pad6 2022-11-23T01:09:00.9243353Z [ OK ] FunctionalTest.Pad6 (2 ms) 2022-11-23T01:09:00.9243631Z [ RUN ] FunctionalTest.Pad7 2022-11-23T01:09:00.9247080Z [ OK ] FunctionalTest.Pad7 (0 ms) 2022-11-23T01:09:00.9247361Z [ RUN ] FunctionalTest.Pad8 2022-11-23T01:09:00.9250626Z [ OK ] FunctionalTest.Pad8 (0 ms) 2022-11-23T01:09:00.9250928Z [ RUN ] FunctionalTest.CTCLoss 2022-11-23T01:09:00.9403018Z ================== 2022-11-23T01:09:00.9403694Z WARNING: ThreadSanitizer: data race (pid=63) 2022-11-23T01:09:00.9404271Z  Read of size 8 at 0x7f61e17674f8 by thread T136: 2022-11-23T01:09:00.9404889Z  #0 Sleef_logd4_u10 (libtorch_cpu.so+0xaf500d1) 2022-11-23T01:09:00.9405766Z #1 void at::native::(anonymous namespace)::_vec_log_softmax_lastdim(double*, double*, long, long)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x84683fd) 2022-11-23T01:09:00.9406974Z #2 std::_Function_handler(double*, double*, long, long)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8468896) 2022-11-23T01:09:00.9408325Z #3 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.9409284Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcc5662) 2022-11-23T01:09:00.9410049Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x4e244) 2022-11-23T01:09:00.9410737Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x4e916) 2022-11-23T01:09:00.9411412Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2022-11-23T01:09:00.9411692Z 2022-11-23T01:09:00.9412040Z  Previous write of size 8 at 0x7f61e17674f8 by main thread: 2022-11-23T01:09:00.9412651Z  #0 disp_logd4_u10 (libtorch_cpu.so+0xaf553c0) 2022-11-23T01:09:00.9413115Z #1 Sleef_logd4_u10 (libtorch_cpu.so+0xaf500dc) 2022-11-23T01:09:00.9414083Z #2 void at::native::(anonymous namespace)::_vec_log_softmax_lastdim(double*, double*, long, long)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x84683fd) 2022-11-23T01:09:00.9415473Z #3 std::_Function_handler(double*, double*, long, long)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8468896) 2022-11-23T01:09:00.9416579Z #4 std::_Function_handler const&)::$_1>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcc594c) 2022-11-23T01:09:00.9417506Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc44f5) 2022-11-23T01:09:00.9418256Z #6 at::native::(anonymous namespace)::log_softmax_lastdim_kernel_impl(at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x845e53b) 2022-11-23T01:09:00.9419089Z #7 at::native::structured_log_softmax_cpu_out::impl(at::Tensor const&, long, bool, at::Tensor const&) (libtorch_cpu.so+0x17b1cf2) 2022-11-23T01:09:00.9419949Z #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+0x2b48936) 2022-11-23T01:09:00.9420673Z #9 at::_ops::_log_softmax::redispatch(c10::DispatchKeySet, at::Tensor const&, long, bool) (libtorch_cpu.so+0x1f730ca) 2022-11-23T01:09:00.9421517Z #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+0x4e15439) 2022-11-23T01:09:00.9422281Z #11 at::_ops::_log_softmax::call(at::Tensor const&, long, bool) (libtorch_cpu.so+0x1f72d7b) 2022-11-23T01:09:00.9422695Z #12 at::native::log_softmax(at::Tensor const&, long, c10::optional) (libtorch_cpu.so+0x17b4a6b) 2022-11-23T01:09:00.9423555Z #13 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_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+0x313f0cd) 2022-11-23T01:09:00.9424392Z #14 at::_ops::log_softmax_int::call(at::Tensor const&, long, c10::optional) (libtorch_cpu.so+0x2499219) 2022-11-23T01:09:00.9424738Z #15 FunctionalTest_CTCLoss_Test::TestBody() (test_api+0x707a78) 2022-11-23T01:09:00.9425160Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.9425525Z #17 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.9425782Z #18 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.9426043Z #19 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.9426322Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.9426809Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.9427248Z #22 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.9427481Z #23 main (test_api+0x35eb01) 2022-11-23T01:09:00.9427611Z 2022-11-23T01:09:00.9427869Z  Location is global 'pnt_logd4_u10' of size 8 at 0x7f61e17674f8 (libtorch_cpu.so+0x00000d6b54f8) 2022-11-23T01:09:00.9428059Z 2022-11-23T01:09:00.9428283Z  Thread T136 'PTThreadPool' (tid=343, running) created by main thread at: 2022-11-23T01:09:00.9428621Z  #0 pthread_create (test_api+0x2d4125) 2022-11-23T01:09:00.9428984Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2022-11-23T01:09:00.9429642Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xcd1574) 2022-11-23T01:09:00.9430129Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xcd0385) 2022-11-23T01:09:00.9430611Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xcd18a0) 2022-11-23T01:09:00.9431060Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcc4bde) 2022-11-23T01:09:00.9431420Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcc4374) 2022-11-23T01:09:00.9431864Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1347616) 2022-11-23T01:09:00.9432382Z #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+0x1341dcb) 2022-11-23T01:09:00.9432933Z #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+0x1349d83) 2022-11-23T01:09:00.9434189Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper___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+0x2c0cb87) 2022-11-23T01:09:00.9435508Z #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+0x2006e90) 2022-11-23T01:09:00.9436011Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x134d88d) 2022-11-23T01:09:00.9437349Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x319f277) 2022-11-23T01:09:00.9439464Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2005d40) 2022-11-23T01:09:00.9440323Z #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+0x1311698) 2022-11-23T01:09:00.9441274Z #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+0x1314327) 2022-11-23T01:09:00.9443894Z #17 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___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+0x2e12e89) 2022-11-23T01:09:00.9446726Z #18 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+0x1f50f40) 2022-11-23T01:09:00.9447790Z #19 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+0x132c083) 2022-11-23T01:09:00.9448777Z #20 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+0x130bd20) 2022-11-23T01:09:00.9451348Z #21 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x2e0e1c6) 2022-11-23T01:09:00.9454656Z #22 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+0x20a0e41) 2022-11-23T01:09:00.9456476Z #23 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+0x1f50032) 2022-11-23T01:09:00.9457816Z #24 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+0x4e73d88) 2022-11-23T01:09:00.9460832Z #25 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+0x4e72153) 2022-11-23T01:09:00.9463961Z #26 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+0x1f4f7ae) 2022-11-23T01:09:00.9465153Z #27 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe6d620) 2022-11-23T01:09:00.9466172Z #28 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x12f809a) 2022-11-23T01:09:00.9468795Z #29 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper__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+0x31236a8) 2022-11-23T01:09:00.9471587Z #30 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x26c0472) 2022-11-23T01:09:00.9473613Z #31 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+0x776c83) 2022-11-23T01:09:00.9474879Z #32 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c698f) 2022-11-23T01:09:00.9475825Z #33 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x131511c) 2022-11-23T01:09:00.9476468Z #34 testing::Test::Run() (test_api+0x12da42f) 2022-11-23T01:09:00.9476913Z #35 testing::TestInfo::Run() (test_api+0x12dc11a) 2022-11-23T01:09:00.9477366Z #36 testing::TestSuite::Run() (test_api+0x12dce26) 2022-11-23T01:09:00.9477857Z #37 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12f656b) 2022-11-23T01:09:00.9478706Z #38 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x131646c) 2022-11-23T01:09:00.9479484Z #39 testing::UnitTest::Run() (test_api+0x12f5c60) 2022-11-23T01:09:00.9479883Z #40 main (test_api+0x35eb01) 2022-11-23T01:09:00.9480106Z 2022-11-23T01:09:00.9480677Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xaf500d1) in Sleef_logd4_u10 2022-11-23T01:09:00.9481167Z ================== 2022-11-23T01:09:00.9483664Z [ OK ] FunctionalTest.CTCLoss (23 ms) 2022-11-23T01:09:00.9484223Z [ RUN ] FunctionalTest.PoissonNLLLoss 2022-11-23T01:09:00.9522143Z [ OK ] FunctionalTest.PoissonNLLLoss (3 ms) 2022-11-23T01:09:00.9522767Z [ RUN ] FunctionalTest.MarginRankingLoss 2022-11-23T01:09:00.9563195Z [ OK ] FunctionalTest.MarginRankingLoss (4 ms) 2022-11-23T01:09:00.9563802Z [ RUN ] FunctionalTest.ConvTranspose1d 2022-11-23T01:09:00.9593130Z [ OK ] FunctionalTest.ConvTranspose1d (2 ms) 2022-11-23T01:09:00.9593744Z [ RUN ] FunctionalTest.ConvTranspose2dEven 2022-11-23T01:09:00.9641711Z [ OK ] FunctionalTest.ConvTranspose2dEven (4 ms) 2022-11-23T01:09:00.9642359Z [ RUN ] FunctionalTest.ConvTranspose2dUneven 2022-11-23T01:09:00.9683086Z [ OK ] FunctionalTest.ConvTranspose2dUneven (4 ms) 2022-11-23T01:09:00.9683707Z [ RUN ] FunctionalTest.ConvTranspose3d 2022-11-23T01:09:00.9717122Z [ OK ] FunctionalTest.ConvTranspose3d (3 ms) 2022-11-23T01:09:00.9717724Z [ RUN ] FunctionalTest.AlphaDropout 2022-11-23T01:09:00.9879727Z [ OK ] FunctionalTest.AlphaDropout (16 ms) 2022-11-23T01:09:00.9880390Z [ RUN ] FunctionalTest.FeatureAlphaDropout 2022-11-23T01:09:01.0038718Z [ OK ] FunctionalTest.FeatureAlphaDropout (15 ms) 2022-11-23T01:09:01.0039062Z [ RUN ] FunctionalTest.Dropout 2022-11-23T01:09:01.0100828Z [ OK ] FunctionalTest.Dropout (6 ms) 2022-11-23T01:09:01.0101146Z [ RUN ] FunctionalTest.Dropout2d 2022-11-23T01:09:01.0166593Z [ OK ] FunctionalTest.Dropout2d (6 ms) 2022-11-23T01:09:01.0166914Z [ RUN ] FunctionalTest.Dropout3d 2022-11-23T01:09:01.0228355Z [ OK ] FunctionalTest.Dropout3d (6 ms) 2022-11-23T01:09:01.0228684Z [ RUN ] FunctionalTest.isfinite 2022-11-23T01:09:01.0309707Z [ OK ] FunctionalTest.isfinite (8 ms) 2022-11-23T01:09:01.0310149Z [ RUN ] FunctionalTest.isinf 2022-11-23T01:09:01.0377430Z [ OK ] FunctionalTest.isinf (6 ms) 2022-11-23T01:09:01.0377715Z [ RUN ] FunctionalTest.AllClose 2022-11-23T01:09:01.1666733Z [ OK ] FunctionalTest.AllClose (128 ms) 2022-11-23T01:09:01.1667151Z [ RUN ] FunctionalTest.BCEWithLogitsLoss 2022-11-23T01:09:01.1911010Z [ OK ] FunctionalTest.BCEWithLogitsLoss (24 ms) 2022-11-23T01:09:01.1911589Z [----------] 132 tests from FunctionalTest (1204 ms total) 2022-11-23T01:09:01.1911758Z 2022-11-23T01:09:01.1911924Z [----------] 1 test from IntegrationTest 2022-11-23T01:09:01.1912267Z [ RUN ] IntegrationTest.CartPole 2022-11-23T01:12:40.5354348Z [ OK ] IntegrationTest.CartPole (219344 ms) 2022-11-23T01:12:40.5354724Z [----------] 1 test from IntegrationTest (219344 ms total) 2022-11-23T01:12:40.5356135Z 2022-11-23T01:12:40.5356594Z [----------] 9 tests from InitTest 2022-11-23T01:12:40.5358852Z [ RUN ] InitTest.ProducesPyTorchValues_XavierUniform 2022-11-23T01:12:40.5571489Z [ OK ] InitTest.ProducesPyTorchValues_XavierUniform (21 ms) 2022-11-23T01:12:40.5572030Z [ RUN ] InitTest.ProducesPyTorchValues_XavierNormal 2022-11-23T01:12:40.5787091Z [ OK ] InitTest.ProducesPyTorchValues_XavierNormal (21 ms) 2022-11-23T01:12:40.5787487Z [ RUN ] InitTest.ProducesPyTorchValues_KaimingNormal 2022-11-23T01:12:40.6002238Z [ OK ] InitTest.ProducesPyTorchValues_KaimingNormal (21 ms) 2022-11-23T01:12:40.6002652Z [ RUN ] InitTest.ProducesPyTorchValues_KaimingUniform 2022-11-23T01:12:40.6216078Z [ OK ] InitTest.ProducesPyTorchValues_KaimingUniform (21 ms) 2022-11-23T01:12:40.6216482Z [ RUN ] InitTest.CanInitializeTensorThatRequiresGrad 2022-11-23T01:12:40.6247171Z [ OK ] InitTest.CanInitializeTensorThatRequiresGrad (3 ms) 2022-11-23T01:12:40.6247812Z [ RUN ] InitTest.CalculateGainWithTanh 2022-11-23T01:12:40.6248461Z [ OK ] InitTest.CalculateGainWithTanh (0 ms) 2022-11-23T01:12:40.6249463Z [ RUN ] InitTest.CalculateGainWithRelu 2022-11-23T01:12:40.6250094Z [ OK ] InitTest.CalculateGainWithRelu (0 ms) 2022-11-23T01:12:40.6250759Z [ RUN ] InitTest.CalculateGainWithLeakyRelu 2022-11-23T01:12:40.6251127Z [ OK ] InitTest.CalculateGainWithLeakyRelu (0 ms) 2022-11-23T01:12:40.6251502Z [ RUN ] InitTest.CanInitializeCnnWithOrthogonal 2022-11-23T01:12:40.6262913Z [ OK ] InitTest.CanInitializeCnnWithOrthogonal (1 ms) 2022-11-23T01:12:40.6263544Z [----------] 9 tests from InitTest (90 ms total) 2022-11-23T01:12:40.6263703Z 2022-11-23T01:12:40.6263869Z [----------] 6 tests from TorchScriptTest 2022-11-23T01:12:40.6264208Z [ RUN ] TorchScriptTest.CanCompileMultipleFunctions 2022-11-23T01:12:41.2569105Z [ OK ] TorchScriptTest.CanCompileMultipleFunctions (630 ms) 2022-11-23T01:12:41.2569765Z [ RUN ] TorchScriptTest.TestNestedIValueModuleArgMatching 2022-11-23T01:12:41.2700496Z [ OK ] TorchScriptTest.TestNestedIValueModuleArgMatching (13 ms) 2022-11-23T01:12:41.2700913Z [ RUN ] TorchScriptTest.TestDictArgMatching 2022-11-23T01:12:41.2741368Z [ OK ] TorchScriptTest.TestDictArgMatching (4 ms) 2022-11-23T01:12:41.2741746Z [ RUN ] TorchScriptTest.TestTupleArgMatching 2022-11-23T01:12:41.2764259Z [ OK ] TorchScriptTest.TestTupleArgMatching (2 ms) 2022-11-23T01:12:41.2764624Z [ RUN ] TorchScriptTest.TestOptionalArgMatching 2022-11-23T01:12:41.2835378Z [ OK ] TorchScriptTest.TestOptionalArgMatching (6 ms) 2022-11-23T01:12:41.2835918Z [ RUN ] TorchScriptTest.TestPickle 2022-11-23T01:12:41.2836406Z [ OK ] TorchScriptTest.TestPickle (0 ms) 2022-11-23T01:12:41.2836900Z [----------] 6 tests from TorchScriptTest (657 ms total) 2022-11-23T01:12:41.2837069Z 2022-11-23T01:12:41.2837294Z [----------] 3 tests from MakeUniqueTest 2022-11-23T01:12:41.2837921Z [ RUN ] MakeUniqueTest.ForwardRvaluesCorrectly 2022-11-23T01:12:41.2838659Z [ OK ] MakeUniqueTest.ForwardRvaluesCorrectly (0 ms) 2022-11-23T01:12:41.2839665Z [ RUN ] MakeUniqueTest.ForwardLvaluesCorrectly 2022-11-23T01:12:41.2840902Z [ OK ] MakeUniqueTest.ForwardLvaluesCorrectly (0 ms) 2022-11-23T01:12:41.2841644Z [ RUN ] MakeUniqueTest.CanConstructUniquePtrOfArray 2022-11-23T01:12:41.2842348Z [ OK ] MakeUniqueTest.CanConstructUniquePtrOfArray (0 ms) 2022-11-23T01:12:41.2842934Z [----------] 3 tests from MakeUniqueTest (0 ms total) 2022-11-23T01:12:41.2843209Z 2022-11-23T01:12:41.2843465Z [----------] 2 tests from MetaTensorTest 2022-11-23T01:12:41.2843892Z [ RUN ] MetaTensorTest.MetaDeviceApi 2022-11-23T01:12:41.2844228Z [ OK ] MetaTensorTest.MetaDeviceApi (0 ms) 2022-11-23T01:12:41.2844795Z [ RUN ] MetaTensorTest.MetaNamespaceApi 2022-11-23T01:12:41.2845418Z [ OK ] MetaTensorTest.MetaNamespaceApi (0 ms) 2022-11-23T01:12:41.2845793Z [----------] 2 tests from MetaTensorTest (0 ms total) 2022-11-23T01:12:41.2845949Z 2022-11-23T01:12:41.2846089Z [----------] 2 tests from UtilsTest 2022-11-23T01:12:41.2846336Z [ RUN ] UtilsTest.WarnOnce 2022-11-23T01:12:41.2859542Z [ OK ] UtilsTest.WarnOnce (0 ms) 2022-11-23T01:12:41.2860188Z [ RUN ] UtilsTest.AmbiguousOperatorDefaults 2022-11-23T01:12:41.2860608Z [ OK ] UtilsTest.AmbiguousOperatorDefaults (0 ms) 2022-11-23T01:12:41.2860962Z [----------] 2 tests from UtilsTest (0 ms total) 2022-11-23T01:12:41.2861115Z 2022-11-23T01:12:41.2861245Z [----------] 1 test from NoGradTest 2022-11-23T01:12:41.2861549Z [ RUN ] NoGradTest.SetsGradModeCorrectly 2022-11-23T01:12:41.2885761Z [ OK ] NoGradTest.SetsGradModeCorrectly (4 ms) 2022-11-23T01:12:41.2886373Z [----------] 1 test from NoGradTest (4 ms total) 2022-11-23T01:12:41.2886533Z 2022-11-23T01:12:41.2886690Z [----------] 3 tests from AutogradTest 2022-11-23T01:12:41.2886992Z [ RUN ] AutogradTest.CanTakeDerivatives 2022-11-23T01:12:41.2898196Z [ OK ] AutogradTest.CanTakeDerivatives (1 ms) 2022-11-23T01:12:41.2898990Z [ RUN ] AutogradTest.CanTakeDerivativesOfZeroDimTensors 2022-11-23T01:12:41.2911633Z [ OK ] AutogradTest.CanTakeDerivativesOfZeroDimTensors (1 ms) 2022-11-23T01:12:41.2912271Z [ RUN ] AutogradTest.CanPassCustomGradientInputs 2022-11-23T01:12:41.2926100Z [ OK ] AutogradTest.CanPassCustomGradientInputs (1 ms) 2022-11-23T01:12:41.2926777Z [----------] 3 tests from AutogradTest (4 ms total) 2022-11-23T01:12:41.2927036Z 2022-11-23T01:12:41.2927542Z [----------] 1 test from OptionalArrayRefTest 2022-11-23T01:12:41.2928036Z [ RUN ] OptionalArrayRefTest.DanglingPointerFix 2022-11-23T01:12:41.2928463Z [ OK ] OptionalArrayRefTest.DanglingPointerFix (0 ms) 2022-11-23T01:12:41.2929013Z [----------] 1 test from OptionalArrayRefTest (0 ms total) 2022-11-23T01:12:41.2929184Z 2022-11-23T01:12:41.2929374Z [----------] 52 tests from ModuleTest 2022-11-23T01:12:41.2929951Z [ RUN ] ModuleTest.CanEnableAndDisableTrainingMode 2022-11-23T01:12:41.2930531Z [ OK ] ModuleTest.CanEnableAndDisableTrainingMode (0 ms) 2022-11-23T01:12:41.2930860Z [ RUN ] ModuleTest.ZeroGrad 2022-11-23T01:12:41.2947658Z [ OK ] ModuleTest.ZeroGrad (1 ms) 2022-11-23T01:12:41.2948234Z [ RUN ] ModuleTest.ZeroGradWithUndefined 2022-11-23T01:12:41.2956595Z [ OK ] ModuleTest.ZeroGradWithUndefined (0 ms) 2022-11-23T01:12:41.2957229Z [ RUN ] ModuleTest.RegisterModuleThrowsForEmptyOrDottedName 2022-11-23T01:12:41.2994548Z [ OK ] ModuleTest.RegisterModuleThrowsForEmptyOrDottedName (3 ms) 2022-11-23T01:12:41.2995172Z [ RUN ] ModuleTest.RegisterModuleThrowsForDuplicateModuleName 2022-11-23T01:12:41.3016184Z [ OK ] ModuleTest.RegisterModuleThrowsForDuplicateModuleName (2 ms) 2022-11-23T01:12:41.3016796Z [ RUN ] ModuleTest.ReplaceModuleThrowsForUnknownModuleName 2022-11-23T01:12:41.3036527Z [ OK ] ModuleTest.ReplaceModuleThrowsForUnknownModuleName (2 ms) 2022-11-23T01:12:41.3036888Z [ RUN ] ModuleTest.ReplaceModule 2022-11-23T01:12:41.3039796Z [ OK ] ModuleTest.ReplaceModule (0 ms) 2022-11-23T01:12:41.3040108Z [ RUN ] ModuleTest.UnregisterModule 2022-11-23T01:12:41.3062141Z [ OK ] ModuleTest.UnregisterModule (2 ms) 2022-11-23T01:12:41.3062553Z [ RUN ] ModuleTest.RegisterParameterThrowsForEmptyOrDottedName 2022-11-23T01:12:41.3103481Z [ OK ] ModuleTest.RegisterParameterThrowsForEmptyOrDottedName (4 ms) 2022-11-23T01:12:41.3103972Z [ RUN ] ModuleTest.RegisterParameterThrowsForDuplicateModuleName 2022-11-23T01:12:41.3130179Z [ OK ] ModuleTest.RegisterParameterThrowsForDuplicateModuleName (2 ms) 2022-11-23T01:12:41.3130725Z [ RUN ] ModuleTest.RegisterParameterUndefinedTensor 2022-11-23T01:12:41.3131249Z [ OK ] ModuleTest.RegisterParameterUndefinedTensor (0 ms) 2022-11-23T01:12:41.3131682Z [ RUN ] ModuleTest.RegisterBufferThrowsForEmptyOrDottedName 2022-11-23T01:12:41.3172725Z [ OK ] ModuleTest.RegisterBufferThrowsForEmptyOrDottedName (4 ms) 2022-11-23T01:12:41.3173195Z [ RUN ] ModuleTest.RegisterBufferThrowsForDuplicateModuleName 2022-11-23T01:12:41.3199632Z [ OK ] ModuleTest.RegisterBufferThrowsForDuplicateModuleName (2 ms) 2022-11-23T01:12:41.3200095Z [ RUN ] ModuleTest.CanGetName 2022-11-23T01:12:41.3200396Z [ OK ] ModuleTest.CanGetName (0 ms) 2022-11-23T01:12:41.3200715Z [ RUN ] ModuleTest.AsCastsModulesCorrectly 2022-11-23T01:12:41.3202096Z [ OK ] ModuleTest.AsCastsModulesCorrectly (0 ms) 2022-11-23T01:12:41.3202519Z [ RUN ] ModuleTest.DeviceOrDtypeConversionSkipsUndefinedTensor 2022-11-23T01:12:41.3207671Z [ OK ] ModuleTest.DeviceOrDtypeConversionSkipsUndefinedTensor (0 ms) 2022-11-23T01:12:41.3208181Z [ RUN ] ModuleTest.ParametersAndBuffersAccessorSkipsUndefinedTensor 2022-11-23T01:12:41.3211806Z [ OK ] ModuleTest.ParametersAndBuffersAccessorSkipsUndefinedTensor (0 ms) 2022-11-23T01:12:41.3212322Z [ RUN ] ModuleTest.CallingCloneOnModuleThatDoesNotOverrideCloneThrows 2022-11-23T01:12:41.3233033Z [ OK ] ModuleTest.CallingCloneOnModuleThatDoesNotOverrideCloneThrows (2 ms) 2022-11-23T01:12:41.3233725Z [ RUN ] ModuleTest.CallingCloneOnModuleThatDoesOverrideCloneDoesNotThrow 2022-11-23T01:12:41.3234293Z [ OK ] ModuleTest.CallingCloneOnModuleThatDoesOverrideCloneDoesNotThrow (0 ms) 2022-11-23T01:12:41.3234746Z [ RUN ] ModuleTest.CloneCreatesDistinctParameters 2022-11-23T01:12:41.3331897Z [ OK ] ModuleTest.CloneCreatesDistinctParameters (9 ms) 2022-11-23T01:12:41.3332314Z [ RUN ] ModuleTest.ClonePreservesExternalReferences 2022-11-23T01:12:41.3352717Z [ OK ] ModuleTest.ClonePreservesExternalReferences (2 ms) 2022-11-23T01:12:41.3353215Z [ RUN ] ModuleTest.CloneCopiesTheValuesOfVariablesOfSubmodules 2022-11-23T01:12:41.3367537Z [ OK ] ModuleTest.CloneCopiesTheValuesOfVariablesOfSubmodules (1 ms) 2022-11-23T01:12:41.3368042Z [ RUN ] ModuleTest.HasCorrectNumberOfParameters 2022-11-23T01:12:41.3370471Z [ OK ] ModuleTest.HasCorrectNumberOfParameters (0 ms) 2022-11-23T01:12:41.3370941Z [ RUN ] ModuleTest.ContainsParametersWithTheCorrectName 2022-11-23T01:12:41.3373318Z [ OK ] ModuleTest.ContainsParametersWithTheCorrectName (0 ms) 2022-11-23T01:12:41.3373726Z [ RUN ] ModuleTest.HasCorrectNumberOfBuffers 2022-11-23T01:12:41.3376042Z [ OK ] ModuleTest.HasCorrectNumberOfBuffers (0 ms) 2022-11-23T01:12:41.3376440Z [ RUN ] ModuleTest.ContainsBuffersWithTheCorrectName 2022-11-23T01:12:41.3378893Z [ OK ] ModuleTest.ContainsBuffersWithTheCorrectName (0 ms) 2022-11-23T01:12:41.3379789Z [ RUN ] ModuleTest.DefaultConstructorOfModuleHolderCallsDefaultConstructorOfImpl 2022-11-23T01:12:41.3380848Z [ OK ] ModuleTest.DefaultConstructorOfModuleHolderCallsDefaultConstructorOfImpl (0 ms) 2022-11-23T01:12:41.3381521Z [ RUN ] ModuleTest.ValueConstructorOfModuleHolderCallsCorrectConstructorInImpl 2022-11-23T01:12:41.3382132Z [ OK ] ModuleTest.ValueConstructorOfModuleHolderCallsCorrectConstructorInImpl (0 ms) 2022-11-23T01:12:41.3382684Z [ RUN ] ModuleTest.NullptrConstructorLeavesTheModuleHolderInEmptyState 2022-11-23T01:12:41.3395256Z [ OK ] ModuleTest.NullptrConstructorLeavesTheModuleHolderInEmptyState (1 ms) 2022-11-23T01:12:41.3395981Z [ RUN ] ModuleTest.ModulesReturnsExpectedSubmodulesForFlatModel 2022-11-23T01:12:41.3401088Z [ OK ] ModuleTest.ModulesReturnsExpectedSubmodulesForFlatModel (0 ms) 2022-11-23T01:12:41.3401751Z [ RUN ] ModuleTest.ModulesExcludesSelfWhenIncludeSelfSetToFalse 2022-11-23T01:12:41.3406636Z [ OK ] ModuleTest.ModulesExcludesSelfWhenIncludeSelfSetToFalse (0 ms) 2022-11-23T01:12:41.3407349Z [ RUN ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForFlatModel 2022-11-23T01:12:41.3412121Z [ OK ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForFlatModel (0 ms) 2022-11-23T01:12:41.3412810Z [ RUN ] ModuleTest.NamedModulesExcludesSelfWhenIncludeSelfSetToFalse 2022-11-23T01:12:41.3417540Z [ OK ] ModuleTest.NamedModulesExcludesSelfWhenIncludeSelfSetToFalse (0 ms) 2022-11-23T01:12:41.3418214Z [ RUN ] ModuleTest.ChildrenReturnsExpectedSubmodulesForFlatModel 2022-11-23T01:12:41.3423070Z [ OK ] ModuleTest.ChildrenReturnsExpectedSubmodulesForFlatModel (0 ms) 2022-11-23T01:12:41.3423761Z [ RUN ] ModuleTest.NamedChildrenReturnsExpectedNamedSubmodulesForFlatModel 2022-11-23T01:12:41.3428390Z [ OK ] ModuleTest.NamedChildrenReturnsExpectedNamedSubmodulesForFlatModel (0 ms) 2022-11-23T01:12:41.3429111Z [ RUN ] ModuleTest.ParametersReturnsExpectedTensorsForFlatModel 2022-11-23T01:12:41.3430604Z [ OK ] ModuleTest.ParametersReturnsExpectedTensorsForFlatModel (0 ms) 2022-11-23T01:12:41.3431305Z [ RUN ] ModuleTest.NamedParametersReturnsExpectedTensorsForFlatModel 2022-11-23T01:12:41.3433218Z [ OK ] ModuleTest.NamedParametersReturnsExpectedTensorsForFlatModel (0 ms) 2022-11-23T01:12:41.3433865Z [ RUN ] ModuleTest.BuffersReturnsExpectedTensorsForFlatModel 2022-11-23T01:12:41.3434973Z [ OK ] ModuleTest.BuffersReturnsExpectedTensorsForFlatModel (0 ms) 2022-11-23T01:12:41.3435667Z [ RUN ] ModuleTest.NamedBuffersReturnsExpectedTensorsForFlatModel 2022-11-23T01:12:41.3437308Z [ OK ] ModuleTest.NamedBuffersReturnsExpectedTensorsForFlatModel (0 ms) 2022-11-23T01:12:41.3437988Z [ RUN ] ModuleTest.ModulesReturnsExpectedSubmodulesForDeepModel 2022-11-23T01:12:41.3441398Z [ OK ] ModuleTest.ModulesReturnsExpectedSubmodulesForDeepModel (0 ms) 2022-11-23T01:12:41.3442113Z [ RUN ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForDeepModel 2022-11-23T01:12:41.3445935Z [ OK ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForDeepModel (0 ms) 2022-11-23T01:12:41.3446625Z [ RUN ] ModuleTest.ChildrensReturnsExpectedSubmodulesForDeepModel 2022-11-23T01:12:41.3449425Z [ OK ] ModuleTest.ChildrensReturnsExpectedSubmodulesForDeepModel (0 ms) 2022-11-23T01:12:41.3450219Z [ RUN ] ModuleTest.NamedChildrensReturnsExpectedNamedSubmodulesForDeepModel 2022-11-23T01:12:41.3453088Z [ OK ] ModuleTest.NamedChildrensReturnsExpectedNamedSubmodulesForDeepModel (0 ms) 2022-11-23T01:12:41.3453709Z [ RUN ] ModuleTest.ModuleApplyIteratesCorreclty 2022-11-23T01:12:41.3456599Z [ OK ] ModuleTest.ModuleApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3457241Z [ RUN ] ModuleTest.ConstModuleApplyIteratesCorreclty 2022-11-23T01:12:41.3460357Z [ OK ] ModuleTest.ConstModuleApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3460983Z [ RUN ] ModuleTest.NamedModuleApplyIteratesCorreclty 2022-11-23T01:12:41.3464195Z [ OK ] ModuleTest.NamedModuleApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3464858Z [ RUN ] ModuleTest.ConstNamedModuleApplyIteratesCorreclty 2022-11-23T01:12:41.3468094Z [ OK ] ModuleTest.ConstNamedModuleApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3468729Z [ RUN ] ModuleTest.ModulePointerApplyIteratesCorreclty 2022-11-23T01:12:41.3471899Z [ OK ] ModuleTest.ModulePointerApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3472571Z [ RUN ] ModuleTest.NamedModulePointerApplyIteratesCorreclty 2022-11-23T01:12:41.3475866Z [ OK ] ModuleTest.NamedModulePointerApplyIteratesCorreclty (0 ms) 2022-11-23T01:12:41.3476556Z [ RUN ] ModuleTest.ThrowsWhenAttemptingtoGetTopLevelModuleAsSharedPtr 2022-11-23T01:12:41.3511657Z [ OK ] ModuleTest.ThrowsWhenAttemptingtoGetTopLevelModuleAsSharedPtr (3 ms) 2022-11-23T01:12:41.3512223Z [ RUN ] ModuleTest.PrettyPrint 2022-11-23T01:12:41.3512785Z [ OK ] ModuleTest.PrettyPrint (0 ms) 2022-11-23T01:12:41.3513416Z [ RUN ] ModuleTest.CanCallForwardOnNonTensorForwardThroughPimpl 2022-11-23T01:12:41.3514014Z [ OK ] ModuleTest.CanCallForwardOnNonTensorForwardThroughPimpl (0 ms) 2022-11-23T01:12:41.3514581Z [----------] 52 tests from ModuleTest (58 ms total) 2022-11-23T01:12:41.3514785Z 2022-11-23T01:12:41.3515024Z [----------] 11 tests from ModuleDictTest 2022-11-23T01:12:41.3515448Z [ RUN ] ModuleDictTest.ConstructsFromList 2022-11-23T01:12:41.3515887Z [ OK ] ModuleDictTest.ConstructsFromList (0 ms) 2022-11-23T01:12:41.3516404Z [ RUN ] ModuleDictTest.ConstructsFromordereddict 2022-11-23T01:12:41.3516784Z [ OK ] ModuleDictTest.ConstructsFromordereddict (0 ms) 2022-11-23T01:12:41.3517161Z [ RUN ] ModuleDictTest.UpdatePopClearContains 2022-11-23T01:12:41.3533956Z [ OK ] ModuleDictTest.UpdatePopClearContains (1 ms) 2022-11-23T01:12:41.3534407Z [ RUN ] ModuleDictTest.UpdateExist 2022-11-23T01:12:41.3536114Z [ OK ] ModuleDictTest.UpdateExist (0 ms) 2022-11-23T01:12:41.3536406Z [ RUN ] ModuleDictTest.Keys 2022-11-23T01:12:41.3560211Z [ OK ] ModuleDictTest.Keys (2 ms) 2022-11-23T01:12:41.3560572Z [ RUN ] ModuleDictTest.Values 2022-11-23T01:12:41.3560950Z [ OK ] ModuleDictTest.Values (0 ms) 2022-11-23T01:12:41.3561326Z [ RUN ] ModuleDictTest.SanityCheckForHoldingStandardModules 2022-11-23T01:12:41.3576604Z [ OK ] ModuleDictTest.SanityCheckForHoldingStandardModules (1 ms) 2022-11-23T01:12:41.3577041Z [ RUN ] ModuleDictTest.HasReferenceSemantics 2022-11-23T01:12:41.3580992Z [ OK ] ModuleDictTest.HasReferenceSemantics (0 ms) 2022-11-23T01:12:41.3581330Z [ RUN ] ModuleDictTest.IsCloneable 2022-11-23T01:12:41.3635243Z [ OK ] ModuleDictTest.IsCloneable (5 ms) 2022-11-23T01:12:41.3635629Z [ RUN ] ModuleDictTest.RegistersElementsAsSubmodules 2022-11-23T01:12:41.3649192Z [ OK ] ModuleDictTest.RegistersElementsAsSubmodules (1 ms) 2022-11-23T01:12:41.3649580Z [ RUN ] ModuleDictTest.PrettyPrintModuleDict 2022-11-23T01:12:41.3665677Z [ OK ] ModuleDictTest.PrettyPrintModuleDict (1 ms) 2022-11-23T01:12:41.3666192Z [----------] 11 tests from ModuleDictTest (15 ms total) 2022-11-23T01:12:41.3666437Z 2022-11-23T01:12:41.3666635Z [----------] 15 tests from ModuleListTest 2022-11-23T01:12:41.3666969Z [ RUN ] ModuleListTest.ConstructsFromSharedPointer 2022-11-23T01:12:41.3667487Z [ OK ] ModuleListTest.ConstructsFromSharedPointer (0 ms) 2022-11-23T01:12:41.3667948Z [ RUN ] ModuleListTest.ConstructsFromConcreteType 2022-11-23T01:12:41.3668447Z [ OK ] ModuleListTest.ConstructsFromConcreteType (0 ms) 2022-11-23T01:12:41.3668886Z [ RUN ] ModuleListTest.ConstructsFromModuleHolder 2022-11-23T01:12:41.3669987Z [ OK ] ModuleListTest.ConstructsFromModuleHolder (0 ms) 2022-11-23T01:12:41.3670692Z [ RUN ] ModuleListTest.PushBackAddsAnElement 2022-11-23T01:12:41.3673081Z [ OK ] ModuleListTest.PushBackAddsAnElement (0 ms) 2022-11-23T01:12:41.3673668Z [ RUN ] ModuleListTest.Insertion 2022-11-23T01:12:41.3674580Z [ OK ] ModuleListTest.Insertion (0 ms) 2022-11-23T01:12:41.3675130Z [ RUN ] ModuleListTest.AccessWithAt 2022-11-23T01:12:41.3705740Z [ OK ] ModuleListTest.AccessWithAt (3 ms) 2022-11-23T01:12:41.3706329Z [ RUN ] ModuleListTest.AccessWithPtr 2022-11-23T01:12:41.3735877Z [ OK ] ModuleListTest.AccessWithPtr (2 ms) 2022-11-23T01:12:41.3736573Z [ RUN ] ModuleListTest.SanityCheckForHoldingStandardModules 2022-11-23T01:12:41.3752045Z [ OK ] ModuleListTest.SanityCheckForHoldingStandardModules (1 ms) 2022-11-23T01:12:41.3752892Z [ RUN ] ModuleListTest.ExtendPushesModulesFromOtherModuleList 2022-11-23T01:12:41.3753731Z [ OK ] ModuleListTest.ExtendPushesModulesFromOtherModuleList (0 ms) 2022-11-23T01:12:41.3754469Z [ RUN ] ModuleListTest.HasReferenceSemantics 2022-11-23T01:12:41.3758390Z [ OK ] ModuleListTest.HasReferenceSemantics (0 ms) 2022-11-23T01:12:41.3758955Z [ RUN ] ModuleListTest.IsCloneable 2022-11-23T01:12:41.3811823Z [ OK ] ModuleListTest.IsCloneable (5 ms) 2022-11-23T01:12:41.3812475Z [ RUN ] ModuleListTest.RegistersElementsAsSubmodules 2022-11-23T01:12:41.3817933Z [ OK ] ModuleListTest.RegistersElementsAsSubmodules (0 ms) 2022-11-23T01:12:41.3818729Z [ RUN ] ModuleListTest.NestingIsPossible 2022-11-23T01:12:41.3819371Z [ OK ] ModuleListTest.NestingIsPossible (0 ms) 2022-11-23T01:12:41.3820134Z [ RUN ] ModuleListTest.PrettyPrintModuleList 2022-11-23T01:12:41.3834739Z [ OK ] ModuleListTest.PrettyPrintModuleList (1 ms) 2022-11-23T01:12:41.3835353Z [ RUN ] ModuleListTest.RangeBasedForLoop 2022-11-23T01:12:41.3839482Z [ OK ] ModuleListTest.RangeBasedForLoop (0 ms) 2022-11-23T01:12:41.3840106Z [----------] 15 tests from ModuleListTest (17 ms total) 2022-11-23T01:12:41.3840372Z 2022-11-23T01:12:41.3840939Z [----------] 256 tests from ModulesTest 2022-11-23T01:12:41.3841374Z [ RUN ] ModulesTest.Conv1d 2022-11-23T01:12:41.3874356Z [ OK ] ModulesTest.Conv1d (3 ms) 2022-11-23T01:12:41.3874908Z [ RUN ] ModulesTest.Conv1dSameStrided 2022-11-23T01:12:41.3915295Z [ OK ] ModulesTest.Conv1dSameStrided (4 ms) 2022-11-23T01:12:41.3915764Z [ RUN ] ModulesTest.Conv2dEven 2022-11-23T01:12:41.3946064Z [ OK ] ModulesTest.Conv2dEven (3 ms) 2022-11-23T01:12:41.3946635Z [ RUN ] ModulesTest.Conv2dUneven 2022-11-23T01:12:41.3975629Z [ OK ] ModulesTest.Conv2dUneven (2 ms) 2022-11-23T01:12:41.3976219Z [ RUN ] ModulesTest.Conv2dSameStrided 2022-11-23T01:12:41.4050712Z [ OK ] ModulesTest.Conv2dSameStrided (7 ms) 2022-11-23T01:12:41.4051019Z [ RUN ] ModulesTest.Conv3d 2022-11-23T01:12:41.4092406Z [ OK ] ModulesTest.Conv3d (4 ms) 2022-11-23T01:12:41.4092717Z [ RUN ] ModulesTest.Conv3dSameStrided 2022-11-23T01:12:41.4167420Z [ OK ] ModulesTest.Conv3dSameStrided (7 ms) 2022-11-23T01:12:41.4167737Z [ RUN ] ModulesTest.ConvTranspose1d 2022-11-23T01:12:41.4198551Z [ OK ] ModulesTest.ConvTranspose1d (3 ms) 2022-11-23T01:12:41.4198886Z [ RUN ] ModulesTest.ConvTranspose2dEven 2022-11-23T01:12:41.4248376Z [ OK ] ModulesTest.ConvTranspose2dEven (4 ms) 2022-11-23T01:12:41.4248740Z [ RUN ] ModulesTest.ConvTranspose2dUneven 2022-11-23T01:12:41.4290873Z [ OK ] ModulesTest.ConvTranspose2dUneven (4 ms) 2022-11-23T01:12:41.4291195Z [ RUN ] ModulesTest.ConvTranspose3d 2022-11-23T01:12:41.4325229Z [ OK ] ModulesTest.ConvTranspose3d (3 ms) 2022-11-23T01:12:41.4325629Z [ RUN ] ModulesTest.MaxPool1d 2022-11-23T01:12:41.4342516Z [ OK ] ModulesTest.MaxPool1d (1 ms) 2022-11-23T01:12:41.4342900Z [ RUN ] ModulesTest.MaxPool1dReturnIndices 2022-11-23T01:12:41.4360310Z [ OK ] ModulesTest.MaxPool1dReturnIndices (1 ms) 2022-11-23T01:12:41.4360683Z [ RUN ] ModulesTest.MaxPool2dEven 2022-11-23T01:12:41.4374760Z [ OK ] ModulesTest.MaxPool2dEven (1 ms) 2022-11-23T01:12:41.4375115Z [ RUN ] ModulesTest.MaxPool2dUneven 2022-11-23T01:12:41.4389268Z [ OK ] ModulesTest.MaxPool2dUneven (1 ms) 2022-11-23T01:12:41.4389608Z [ RUN ] ModulesTest.MaxPool2dReturnIndices 2022-11-23T01:12:41.4407554Z [ OK ] ModulesTest.MaxPool2dReturnIndices (1 ms) 2022-11-23T01:12:41.4407878Z [ RUN ] ModulesTest.MaxPool3d 2022-11-23T01:12:41.4422889Z [ OK ] ModulesTest.MaxPool3d (1 ms) 2022-11-23T01:12:41.4423227Z [ RUN ] ModulesTest.MaxPool3dReturnIndices 2022-11-23T01:12:41.4444448Z [ OK ] ModulesTest.MaxPool3dReturnIndices (2 ms) 2022-11-23T01:12:41.4444772Z [ RUN ] ModulesTest.AvgPool1d 2022-11-23T01:12:41.4460566Z [ OK ] ModulesTest.AvgPool1d (1 ms) 2022-11-23T01:12:41.4460855Z [ RUN ] ModulesTest.AvgPool2dEven 2022-11-23T01:12:41.4474940Z [ OK ] ModulesTest.AvgPool2dEven (1 ms) 2022-11-23T01:12:41.4475259Z [ RUN ] ModulesTest.AvgPool2dUneven 2022-11-23T01:12:41.4488972Z [ OK ] ModulesTest.AvgPool2dUneven (1 ms) 2022-11-23T01:12:41.4489262Z [ RUN ] ModulesTest.AvgPool3d 2022-11-23T01:12:41.4504049Z [ OK ] ModulesTest.AvgPool3d (1 ms) 2022-11-23T01:12:41.4504369Z [ RUN ] ModulesTest.FractionalMaxPool2d 2022-11-23T01:12:41.4519698Z [ OK ] ModulesTest.FractionalMaxPool2d (1 ms) 2022-11-23T01:12:41.4520095Z [ RUN ] ModulesTest.FractionalMaxPool2dReturnIndices 2022-11-23T01:12:41.4539280Z [ OK ] ModulesTest.FractionalMaxPool2dReturnIndices (1 ms) 2022-11-23T01:12:41.4539662Z [ RUN ] ModulesTest.FractionalMaxPool3d 2022-11-23T01:12:41.4554771Z [ OK ] ModulesTest.FractionalMaxPool3d (1 ms) 2022-11-23T01:12:41.4555209Z [ RUN ] ModulesTest.FractionalMaxPool3dReturnIndices 2022-11-23T01:12:41.4576781Z [ OK ] ModulesTest.FractionalMaxPool3dReturnIndices (2 ms) 2022-11-23T01:12:41.4577190Z [ RUN ] ModulesTest.LPPool1d 2022-11-23T01:12:41.4592076Z [ OK ] ModulesTest.LPPool1d (1 ms) 2022-11-23T01:12:41.4592438Z [ RUN ] ModulesTest.LPPool2d 2022-11-23T01:12:41.4607599Z [ OK ] ModulesTest.LPPool2d (1 ms) 2022-11-23T01:12:41.4607934Z [ RUN ] ModulesTest.Identity 2022-11-23T01:12:41.4616835Z [ OK ] ModulesTest.Identity (0 ms) 2022-11-23T01:12:41.4617536Z [ RUN ] ModulesTest.Flatten 2022-11-23T01:12:41.4641827Z [ OK ] ModulesTest.Flatten (2 ms) 2022-11-23T01:12:41.4642363Z [ RUN ] ModulesTest.Unflatten 2022-11-23T01:12:41.4648413Z [W TensorImpl.h:1787] 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()) 2022-11-23T01:12:41.4651935Z [ OK ] ModulesTest.Unflatten (0 ms) 2022-11-23T01:12:41.4652501Z [ RUN ] ModulesTest.AdaptiveMaxPool1d 2022-11-23T01:12:41.4670464Z [ OK ] ModulesTest.AdaptiveMaxPool1d (1 ms) 2022-11-23T01:12:41.4671080Z [ RUN ] ModulesTest.AdaptiveMaxPool1dReturnIndices 2022-11-23T01:12:41.4689822Z [ OK ] ModulesTest.AdaptiveMaxPool1dReturnIndices (1 ms) 2022-11-23T01:12:41.4690388Z [ RUN ] ModulesTest.AdaptiveMaxPool2dEven 2022-11-23T01:12:41.4709020Z [ OK ] ModulesTest.AdaptiveMaxPool2dEven (1 ms) 2022-11-23T01:12:41.4709646Z [ RUN ] ModulesTest.AdaptiveMaxPool2dUneven 2022-11-23T01:12:41.4728457Z [ OK ] ModulesTest.AdaptiveMaxPool2dUneven (1 ms) 2022-11-23T01:12:41.4729059Z [ RUN ] ModulesTest.AdaptiveMaxPool2dReturnIndicesEven 2022-11-23T01:12:41.4759578Z [ OK ] ModulesTest.AdaptiveMaxPool2dReturnIndicesEven (3 ms) 2022-11-23T01:12:41.4760144Z [ RUN ] ModulesTest.AdaptiveMaxPool2dReturnIndicesUneven 2022-11-23T01:12:41.4788093Z [ OK ] ModulesTest.AdaptiveMaxPool2dReturnIndicesUneven (2 ms) 2022-11-23T01:12:41.4788707Z [ RUN ] ModulesTest.AdaptiveMaxPool3d 2022-11-23T01:12:41.4808562Z [ OK ] ModulesTest.AdaptiveMaxPool3d (2 ms) 2022-11-23T01:12:41.4809219Z [ RUN ] ModulesTest.AdaptiveMaxPool3dReturnIndices 2022-11-23T01:12:41.4843506Z [ OK ] ModulesTest.AdaptiveMaxPool3dReturnIndices (3 ms) 2022-11-23T01:12:41.4844086Z [ RUN ] ModulesTest.AdaptiveAvgPool1d 2022-11-23T01:12:41.4861144Z [ OK ] ModulesTest.AdaptiveAvgPool1d (1 ms) 2022-11-23T01:12:41.4861729Z [ RUN ] ModulesTest.AdaptiveAvgPool2dEven 2022-11-23T01:12:41.4880164Z [ OK ] ModulesTest.AdaptiveAvgPool2dEven (1 ms) 2022-11-23T01:12:41.4880745Z [ RUN ] ModulesTest.AdaptiveAvgPool2dUneven 2022-11-23T01:12:41.4897943Z [ OK ] ModulesTest.AdaptiveAvgPool2dUneven (1 ms) 2022-11-23T01:12:41.4898661Z [ RUN ] ModulesTest.AdaptiveAvgPool3d 2022-11-23T01:12:41.4918712Z [ OK ] ModulesTest.AdaptiveAvgPool3d (2 ms) 2022-11-23T01:12:41.4919399Z [ RUN ] ModulesTest.MaxUnpool1d 2022-11-23T01:12:41.4945952Z [ OK ] ModulesTest.MaxUnpool1d (2 ms) 2022-11-23T01:12:41.4946518Z [ RUN ] ModulesTest.MaxPool1d_MaxUnpool1d 2022-11-23T01:12:41.4984133Z [ OK ] ModulesTest.MaxPool1d_MaxUnpool1d (3 ms) 2022-11-23T01:12:41.4984688Z [ RUN ] ModulesTest.MaxUnpool2d 2022-11-23T01:12:41.5014098Z [ OK ] ModulesTest.MaxUnpool2d (2 ms) 2022-11-23T01:12:41.5014681Z [ RUN ] ModulesTest.MaxPool2d_MaxUnpool2d 2022-11-23T01:12:41.5044549Z [ OK ] ModulesTest.MaxPool2d_MaxUnpool2d (2 ms) 2022-11-23T01:12:41.5045077Z [ RUN ] ModulesTest.MaxUnpool3d 2022-11-23T01:12:41.5062696Z [ OK ] ModulesTest.MaxUnpool3d (1 ms) 2022-11-23T01:12:41.5063262Z [ RUN ] ModulesTest.MaxUnpool3dOutputSize 2022-11-23T01:12:41.5093661Z [ OK ] ModulesTest.MaxUnpool3dOutputSize (3 ms) 2022-11-23T01:12:41.5094202Z [ RUN ] ModulesTest.MaxPool3d_MaxUnpool3d 2022-11-23T01:12:42.2992470Z [ OK ] ModulesTest.MaxPool3d_MaxUnpool3d (789 ms) 2022-11-23T01:12:42.2992792Z [ RUN ] ModulesTest.Linear 2022-11-23T01:12:42.3037694Z [ OK ] ModulesTest.Linear (4 ms) 2022-11-23T01:12:42.3038201Z [ RUN ] ModulesTest.LocalResponseNorm 2022-11-23T01:12:42.3087489Z [ OK ] ModulesTest.LocalResponseNorm (4 ms) 2022-11-23T01:12:42.3087864Z [ RUN ] ModulesTest.LayerNorm 2022-11-23T01:12:42.3106642Z [ OK ] ModulesTest.LayerNorm (1 ms) 2022-11-23T01:12:42.3106981Z [ RUN ] ModulesTest.GroupNorm 2022-11-23T01:12:42.3127398Z [ OK ] ModulesTest.GroupNorm (2 ms) 2022-11-23T01:12:42.3127757Z [ RUN ] ModulesTest.Bilinear 2022-11-23T01:12:42.3169391Z [ OK ] ModulesTest.Bilinear (4 ms) 2022-11-23T01:12:42.3169717Z [ RUN ] ModulesTest.Fold 2022-11-23T01:12:42.3217661Z [ OK ] ModulesTest.Fold (4 ms) 2022-11-23T01:12:42.3218005Z [ RUN ] ModulesTest.Unfold 2022-11-23T01:12:42.3317820Z [ OK ] ModulesTest.Unfold (9 ms) 2022-11-23T01:12:42.3318211Z [ RUN ] ModulesTest.SimpleContainer 2022-11-23T01:12:42.3474751Z [ OK ] ModulesTest.SimpleContainer (15 ms) 2022-11-23T01:12:42.3475082Z [ RUN ] ModulesTest.EmbeddingBasic 2022-11-23T01:12:42.3483172Z [ OK ] ModulesTest.EmbeddingBasic (0 ms) 2022-11-23T01:12:42.3483495Z [ RUN ] ModulesTest.EmbeddingList 2022-11-23T01:12:42.3491700Z [ OK ] ModulesTest.EmbeddingList (0 ms) 2022-11-23T01:12:42.3492038Z [ RUN ] ModulesTest.EmbeddingFromPretrained 2022-11-23T01:12:42.3502693Z [ OK ] ModulesTest.EmbeddingFromPretrained (1 ms) 2022-11-23T01:12:42.3503102Z [ RUN ] ModulesTest.EmbeddingBagFromPretrained 2022-11-23T01:12:42.3519813Z [ OK ] ModulesTest.EmbeddingBagFromPretrained (1 ms) 2022-11-23T01:12:42.3520140Z [ RUN ] ModulesTest.AlphaDropout 2022-11-23T01:12:42.3532727Z [ OK ] ModulesTest.AlphaDropout (1 ms) 2022-11-23T01:12:42.3533117Z [ RUN ] ModulesTest.FeatureAlphaDropout 2022-11-23T01:12:42.3545796Z [ OK ] ModulesTest.FeatureAlphaDropout (1 ms) 2022-11-23T01:12:42.3546149Z [ RUN ] ModulesTest.Dropout 2022-11-23T01:12:42.3565599Z [ OK ] ModulesTest.Dropout (1 ms) 2022-11-23T01:12:42.3565940Z [ RUN ] ModulesTest.Dropout2d 2022-11-23T01:12:42.3625128Z [ OK ] ModulesTest.Dropout2d (5 ms) 2022-11-23T01:12:42.3625482Z [ RUN ] ModulesTest.Dropout3d 2022-11-23T01:12:42.3730981Z [ OK ] ModulesTest.Dropout3d (10 ms) 2022-11-23T01:12:42.3731305Z [ RUN ] ModulesTest.Parameters 2022-11-23T01:12:42.3738337Z [ OK ] ModulesTest.Parameters (0 ms) 2022-11-23T01:12:42.3739028Z [ RUN ] ModulesTest.FunctionalCallsSuppliedFunction 2022-11-23T01:12:42.3740790Z [ OK ] ModulesTest.FunctionalCallsSuppliedFunction (0 ms) 2022-11-23T01:12:42.3741245Z [ RUN ] ModulesTest.FunctionalWithTorchFunction 2022-11-23T01:12:42.3743497Z [ OK ] ModulesTest.FunctionalWithTorchFunction (0 ms) 2022-11-23T01:12:42.3743876Z [ RUN ] ModulesTest.FunctionalArgumentBinding 2022-11-23T01:12:42.3744940Z [ OK ] ModulesTest.FunctionalArgumentBinding (0 ms) 2022-11-23T01:12:42.3745333Z [ RUN ] ModulesTest.BatchNorm1dStateful 2022-11-23T01:12:42.3747374Z [ OK ] ModulesTest.BatchNorm1dStateful (0 ms) 2022-11-23T01:12:42.3747988Z [ RUN ] ModulesTest.BatchNorm1dStateless 2022-11-23T01:12:42.3748539Z [ OK ] ModulesTest.BatchNorm1dStateless (0 ms) 2022-11-23T01:12:42.3748838Z [ RUN ] ModulesTest.BatchNorm1d 2022-11-23T01:12:42.3775093Z [ OK ] ModulesTest.BatchNorm1d (2 ms) 2022-11-23T01:12:42.3775672Z [ RUN ] ModulesTest.BatchNorm2dStateful 2022-11-23T01:12:42.3777702Z [ OK ] ModulesTest.BatchNorm2dStateful (0 ms) 2022-11-23T01:12:42.3778134Z [ RUN ] ModulesTest.BatchNorm2dStateless 2022-11-23T01:12:42.3778853Z [ OK ] ModulesTest.BatchNorm2dStateless (0 ms) 2022-11-23T01:12:42.3779150Z [ RUN ] ModulesTest.BatchNorm2d 2022-11-23T01:12:42.3811761Z [ OK ] ModulesTest.BatchNorm2d (3 ms) 2022-11-23T01:12:42.3812095Z [ RUN ] ModulesTest.BatchNorm3dStateful 2022-11-23T01:12:42.3814507Z [ OK ] ModulesTest.BatchNorm3dStateful (0 ms) 2022-11-23T01:12:42.3815001Z [ RUN ] ModulesTest.BatchNorm3dStateless 2022-11-23T01:12:42.3815413Z [ OK ] ModulesTest.BatchNorm3dStateless (0 ms) 2022-11-23T01:12:42.3815723Z [ RUN ] ModulesTest.BatchNorm3d 2022-11-23T01:12:42.3862352Z [ OK ] ModulesTest.BatchNorm3d (4 ms) 2022-11-23T01:12:42.3862674Z [ RUN ] ModulesTest.InstanceNorm1dStateful 2022-11-23T01:12:42.3865062Z [ OK ] ModulesTest.InstanceNorm1dStateful (0 ms) 2022-11-23T01:12:42.3865573Z [ RUN ] ModulesTest.InstanceNorm1dStateless 2022-11-23T01:12:42.3866005Z [ OK ] ModulesTest.InstanceNorm1dStateless (0 ms) 2022-11-23T01:12:42.3866333Z [ RUN ] ModulesTest.InstanceNorm1d 2022-11-23T01:12:42.3893927Z [ OK ] ModulesTest.InstanceNorm1d (2 ms) 2022-11-23T01:12:42.3894260Z [ RUN ] ModulesTest.InstanceNorm2dStateful 2022-11-23T01:12:42.3897097Z [ OK ] ModulesTest.InstanceNorm2dStateful (0 ms) 2022-11-23T01:12:42.3897732Z [ RUN ] ModulesTest.InstanceNorm2dStateless 2022-11-23T01:12:42.3898325Z [ OK ] ModulesTest.InstanceNorm2dStateless (0 ms) 2022-11-23T01:12:42.3898894Z [ RUN ] ModulesTest.InstanceNorm2d 2022-11-23T01:12:42.3931529Z [ OK ] ModulesTest.InstanceNorm2d (3 ms) 2022-11-23T01:12:42.3932097Z [ RUN ] ModulesTest.InstanceNorm3dStateful 2022-11-23T01:12:42.3934067Z [ OK ] ModulesTest.InstanceNorm3dStateful (0 ms) 2022-11-23T01:12:42.3934712Z [ RUN ] ModulesTest.InstanceNorm3dStateless 2022-11-23T01:12:42.3935195Z [ OK ] ModulesTest.InstanceNorm3dStateless (0 ms) 2022-11-23T01:12:42.3935518Z [ RUN ] ModulesTest.InstanceNorm3d 2022-11-23T01:12:42.3982366Z [ OK ] ModulesTest.InstanceNorm3d (4 ms) 2022-11-23T01:12:42.3982661Z [ RUN ] ModulesTest.L1Loss 2022-11-23T01:12:42.3995895Z [ OK ] ModulesTest.L1Loss (1 ms) 2022-11-23T01:12:42.3996247Z [ RUN ] ModulesTest.MSELoss 2022-11-23T01:12:42.4007103Z [ OK ] ModulesTest.MSELoss (1 ms) 2022-11-23T01:12:42.4007457Z [ RUN ] ModulesTest.BCELoss 2022-11-23T01:12:42.4020782Z [ OK ] ModulesTest.BCELoss (1 ms) 2022-11-23T01:12:42.4021228Z [ RUN ] ModulesTest.KLDivLoss 2022-11-23T01:12:42.4023498Z [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) 2022-11-23T01:12:42.4035121Z [ OK ] ModulesTest.KLDivLoss (1 ms) 2022-11-23T01:12:42.4035450Z [ RUN ] ModulesTest.HingeEmbeddingLoss 2022-11-23T01:12:42.4064861Z [ OK ] ModulesTest.HingeEmbeddingLoss (2 ms) 2022-11-23T01:12:42.4065167Z [ RUN ] ModulesTest.MultiMarginLoss 2022-11-23T01:12:42.4081646Z [ OK ] ModulesTest.MultiMarginLoss (1 ms) 2022-11-23T01:12:42.4081971Z [ RUN ] ModulesTest.CosineEmbeddingLoss 2022-11-23T01:12:42.4135258Z [ OK ] ModulesTest.CosineEmbeddingLoss (5 ms) 2022-11-23T01:12:42.4135628Z [ RUN ] ModulesTest.SmoothL1LossDefaultOptions 2022-11-23T01:12:42.4150672Z [ OK ] ModulesTest.SmoothL1LossDefaultOptions (1 ms) 2022-11-23T01:12:42.4151037Z [ RUN ] ModulesTest.HuberLossDefaultOptions 2022-11-23T01:12:42.4165633Z [ OK ] ModulesTest.HuberLossDefaultOptions (1 ms) 2022-11-23T01:12:42.4166025Z [ RUN ] ModulesTest.MultiLabelMarginLossDefaultOptions 2022-11-23T01:12:42.4181952Z [ OK ] ModulesTest.MultiLabelMarginLossDefaultOptions (1 ms) 2022-11-23T01:12:42.4182324Z [ RUN ] ModulesTest.SmoothL1LossNoReduction 2022-11-23T01:12:42.4196516Z [ OK ] ModulesTest.SmoothL1LossNoReduction (1 ms) 2022-11-23T01:12:42.4196860Z [ RUN ] ModulesTest.HuberLossNoReduction 2022-11-23T01:12:42.4211165Z [ OK ] ModulesTest.HuberLossNoReduction (1 ms) 2022-11-23T01:12:42.4211528Z [ RUN ] ModulesTest.MultiLabelMarginLossNoReduction 2022-11-23T01:12:42.4227472Z [ OK ] ModulesTest.MultiLabelMarginLossNoReduction (1 ms) 2022-11-23T01:12:42.4227834Z [ RUN ] ModulesTest.SmoothL1LossBeta 2022-11-23T01:12:42.4242070Z [ OK ] ModulesTest.SmoothL1LossBeta (1 ms) 2022-11-23T01:12:42.4242372Z [ RUN ] ModulesTest.HuberLossDelta 2022-11-23T01:12:42.4256767Z [ OK ] ModulesTest.HuberLossDelta (1 ms) 2022-11-23T01:12:42.4257097Z [ RUN ] ModulesTest.TripletMarginLoss 2022-11-23T01:12:42.4293583Z [ OK ] ModulesTest.TripletMarginLoss (3 ms) 2022-11-23T01:12:42.4294058Z [ RUN ] ModulesTest.TripletMarginWithDistanceLossDefaultParity 2022-11-23T01:12:42.6205697Z [ OK ] ModulesTest.TripletMarginWithDistanceLossDefaultParity (190 ms) 2022-11-23T01:12:42.6206672Z [ RUN ] ModulesTest.TripletMarginWithDistanceLossFunctionalParity 2022-11-23T01:12:42.9530536Z [ OK ] ModulesTest.TripletMarginWithDistanceLossFunctionalParity (332 ms) 2022-11-23T01:12:42.9531293Z [ RUN ] ModulesTest.NLLLoss 2022-11-23T01:12:42.9554387Z [ OK ] ModulesTest.NLLLoss (2 ms) 2022-11-23T01:12:42.9554961Z [ RUN ] ModulesTest.CrossEntropyLoss 2022-11-23T01:12:42.9636758Z [ OK ] ModulesTest.CrossEntropyLoss (8 ms) 2022-11-23T01:12:42.9637355Z [ RUN ] ModulesTest.CosineSimilarity 2022-11-23T01:12:42.9679758Z [ OK ] ModulesTest.CosineSimilarity (4 ms) 2022-11-23T01:12:42.9680425Z [ RUN ] ModulesTest.SoftMarginLossDefaultOptions 2022-11-23T01:12:42.9702010Z [ OK ] ModulesTest.SoftMarginLossDefaultOptions (2 ms) 2022-11-23T01:12:42.9702801Z [ RUN ] ModulesTest.MultiLabelSoftMarginLossDefaultOptions 2022-11-23T01:12:42.9736871Z [ OK ] ModulesTest.MultiLabelSoftMarginLossDefaultOptions (3 ms) 2022-11-23T01:12:42.9737631Z [ RUN ] ModulesTest.SoftMarginLossNoReduction 2022-11-23T01:12:42.9758449Z [ OK ] ModulesTest.SoftMarginLossNoReduction (2 ms) 2022-11-23T01:12:42.9759282Z [ RUN ] ModulesTest.MultiLabelSoftMarginLossWeightedNoReduction 2022-11-23T01:12:42.9792874Z [ OK ] ModulesTest.MultiLabelSoftMarginLossWeightedNoReduction (3 ms) 2022-11-23T01:12:42.9793646Z [ RUN ] ModulesTest.PairwiseDistance 2022-11-23T01:12:42.9814463Z [ OK ] ModulesTest.PairwiseDistance (2 ms) 2022-11-23T01:12:42.9814957Z [ RUN ] ModulesTest.ELU 2022-11-23T01:12:42.9978061Z [ OK ] ModulesTest.ELU (16 ms) 2022-11-23T01:12:42.9978710Z [ RUN ] ModulesTest.SELU 2022-11-23T01:12:43.0015012Z [ OK ] ModulesTest.SELU (3 ms) 2022-11-23T01:12:43.0015508Z [ RUN ] ModulesTest.Hardshrink 2022-11-23T01:12:43.0118093Z [ OK ] ModulesTest.Hardshrink (10 ms) 2022-11-23T01:12:43.0118596Z [ RUN ] ModulesTest.Hardtanh 2022-11-23T01:12:43.0551637Z [ OK ] ModulesTest.Hardtanh (43 ms) 2022-11-23T01:12:43.0552274Z [ RUN ] ModulesTest.HardtanhMinValGEMaxVal 2022-11-23T01:12:43.0632746Z [ OK ] ModulesTest.HardtanhMinValGEMaxVal (8 ms) 2022-11-23T01:12:43.0633616Z [ RUN ] ModulesTest.LeakyReLU 2022-11-23T01:12:43.0824230Z [ OK ] ModulesTest.LeakyReLU (19 ms) 2022-11-23T01:12:43.0824741Z [ RUN ] ModulesTest.LogSigmoid 2022-11-23T01:12:43.0842367Z [ OK ] ModulesTest.LogSigmoid (1 ms) 2022-11-23T01:12:43.0842933Z [ RUN ] ModulesTest.Softmax 2022-11-23T01:12:43.0860655Z [ OK ] ModulesTest.Softmax (1 ms) 2022-11-23T01:12:43.0861182Z [ RUN ] ModulesTest.Softmin 2022-11-23T01:12:43.0879530Z [ OK ] ModulesTest.Softmin (1 ms) 2022-11-23T01:12:43.0880056Z [ RUN ] ModulesTest.LogSoftmax 2022-11-23T01:12:43.0897660Z [ OK ] ModulesTest.LogSoftmax (1 ms) 2022-11-23T01:12:43.0898301Z [ RUN ] ModulesTest.AdaptiveLogSoftmaxWithLoss 2022-11-23T01:12:43.1203861Z [ OK ] ModulesTest.AdaptiveLogSoftmaxWithLoss (30 ms) 2022-11-23T01:12:43.1204374Z [ RUN ] ModulesTest.Softmax2d 2022-11-23T01:12:43.1398620Z [ OK ] ModulesTest.Softmax2d (19 ms) 2022-11-23T01:12:43.1399151Z [ RUN ] ModulesTest.PReLU 2022-11-23T01:12:43.1450924Z [ OK ] ModulesTest.PReLU (5 ms) 2022-11-23T01:12:43.1451536Z [ RUN ] ModulesTest.ReLU 2022-11-23T01:12:43.1485270Z [ OK ] ModulesTest.ReLU (3 ms) 2022-11-23T01:12:43.1485763Z [ RUN ] ModulesTest.ReLU6 2022-11-23T01:12:43.1525639Z [ OK ] ModulesTest.ReLU6 (4 ms) 2022-11-23T01:12:43.1526159Z [ RUN ] ModulesTest.RReLU 2022-11-23T01:12:43.2162238Z [ OK ] ModulesTest.RReLU (63 ms) 2022-11-23T01:12:43.2162634Z [ RUN ] ModulesTest.CELU 2022-11-23T01:12:43.2299349Z [ OK ] ModulesTest.CELU (13 ms) 2022-11-23T01:12:43.2299639Z [ RUN ] ModulesTest.GLU 2022-11-23T01:12:43.2322459Z [ OK ] ModulesTest.GLU (2 ms) 2022-11-23T01:12:43.2322805Z [ RUN ] ModulesTest.GELU 2022-11-23T01:12:43.2333692Z [ OK ] ModulesTest.GELU (1 ms) 2022-11-23T01:12:43.2334049Z [ RUN ] ModulesTest.TanhGELU 2022-11-23T01:12:43.2346507Z [ OK ] ModulesTest.TanhGELU (1 ms) 2022-11-23T01:12:43.2346853Z [ RUN ] ModulesTest.Mish 2022-11-23T01:12:43.2358873Z [ OK ] ModulesTest.Mish (1 ms) 2022-11-23T01:12:43.2359200Z [ RUN ] ModulesTest.Sigmoid 2022-11-23T01:12:43.2370894Z [ OK ] ModulesTest.Sigmoid (1 ms) 2022-11-23T01:12:43.2371265Z [ RUN ] ModulesTest.PixelShuffle 2022-11-23T01:12:43.2388936Z [ OK ] ModulesTest.PixelShuffle (1 ms) 2022-11-23T01:12:43.2389392Z [ RUN ] ModulesTest.PixelUnshuffle 2022-11-23T01:12:43.2407006Z [ OK ] ModulesTest.PixelUnshuffle (1 ms) 2022-11-23T01:12:43.2407329Z [ RUN ] ModulesTest.Softplus 2022-11-23T01:12:43.2521708Z [ OK ] ModulesTest.Softplus (11 ms) 2022-11-23T01:12:43.2522048Z [ RUN ] ModulesTest.Softshrink 2022-11-23T01:12:43.2605251Z [ OK ] ModulesTest.Softshrink (8 ms) 2022-11-23T01:12:43.2605599Z [ RUN ] ModulesTest.Softsign 2022-11-23T01:12:43.2616373Z [ OK ] ModulesTest.Softsign (1 ms) 2022-11-23T01:12:43.2616691Z [ RUN ] ModulesTest.Tanh 2022-11-23T01:12:43.2629375Z [ OK ] ModulesTest.Tanh (1 ms) 2022-11-23T01:12:43.2629670Z [ RUN ] ModulesTest.Tanhshrink 2022-11-23T01:12:43.2639717Z [ OK ] ModulesTest.Tanhshrink (1 ms) 2022-11-23T01:12:43.2640080Z [ RUN ] ModulesTest.Threshold 2022-11-23T01:12:43.2855782Z [ OK ] ModulesTest.Threshold (21 ms) 2022-11-23T01:12:43.2856325Z [ RUN ] ModulesTest.Upsampling1D 2022-11-23T01:12:43.2871578Z [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) 2022-11-23T01:12:43.2884357Z [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) 2022-11-23T01:12:43.2907482Z [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) 2022-11-23T01:12:43.2918691Z [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) 2022-11-23T01:12:43.2951132Z [ OK ] ModulesTest.Upsampling1D (9 ms) 2022-11-23T01:12:43.2951433Z [ RUN ] ModulesTest.Upsampling2D 2022-11-23T01:12:43.2965245Z [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) 2022-11-23T01:12:43.2977607Z [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) 2022-11-23T01:12:43.3000216Z [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) 2022-11-23T01:12:43.3010737Z [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) 2022-11-23T01:12:43.3032931Z [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) 2022-11-23T01:12:43.3047205Z [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) 2022-11-23T01:12:43.3073493Z [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) 2022-11-23T01:12:43.3085757Z [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) 2022-11-23T01:12:43.3111090Z [ OK ] ModulesTest.Upsampling2D (15 ms) 2022-11-23T01:12:43.3111404Z [ RUN ] ModulesTest.Upsampling3D 2022-11-23T01:12:43.3126770Z [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) 2022-11-23T01:12:43.3140186Z [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) 2022-11-23T01:12:43.3163195Z [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) 2022-11-23T01:12:43.3173969Z [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) 2022-11-23T01:12:43.3196171Z [ OK ] ModulesTest.Upsampling3D (8 ms) 2022-11-23T01:12:43.3196471Z [ RUN ] ModulesTest.CTCLoss 2022-11-23T01:12:43.3214371Z [ OK ] ModulesTest.CTCLoss (1 ms) 2022-11-23T01:12:43.3214672Z [ RUN ] ModulesTest.PoissonNLLLoss 2022-11-23T01:12:43.3242847Z [ OK ] ModulesTest.PoissonNLLLoss (2 ms) 2022-11-23T01:12:43.3243183Z [ RUN ] ModulesTest.MarginRankingLoss 2022-11-23T01:12:43.3284023Z [ OK ] ModulesTest.MarginRankingLoss (4 ms) 2022-11-23T01:12:43.3284411Z [ RUN ] ModulesTest.BCEWithLogitsLoss 2022-11-23T01:12:43.3553985Z [ OK ] ModulesTest.BCEWithLogitsLoss (26 ms) 2022-11-23T01:12:43.3554394Z [ RUN ] ModulesTest.MultiheadAttention 2022-11-23T01:15:14.8372820Z [ OK ] ModulesTest.MultiheadAttention (151481 ms) 2022-11-23T01:15:14.8373517Z [ RUN ] ModulesTest.PrettyPrintIdentity 2022-11-23T01:15:14.8375555Z [ OK ] ModulesTest.PrettyPrintIdentity (0 ms) 2022-11-23T01:15:14.8376440Z [ RUN ] ModulesTest.PrettyPrintFlatten 2022-11-23T01:15:14.8376838Z [ OK ] ModulesTest.PrettyPrintFlatten (0 ms) 2022-11-23T01:15:14.8377460Z [ RUN ] ModulesTest.PrettyPrintUnflatten 2022-11-23T01:15:14.8377805Z [ OK ] ModulesTest.PrettyPrintUnflatten (0 ms) 2022-11-23T01:15:14.8378114Z [ RUN ] ModulesTest.ReflectionPad1d 2022-11-23T01:15:14.8400509Z [ OK ] ModulesTest.ReflectionPad1d (2 ms) 2022-11-23T01:15:14.8400833Z [ RUN ] ModulesTest.ReflectionPad2d 2022-11-23T01:15:14.8429624Z [ OK ] ModulesTest.ReflectionPad2d (2 ms) 2022-11-23T01:15:14.8429945Z [ RUN ] ModulesTest.ReflectionPad3d 2022-11-23T01:15:14.8475479Z [ OK ] ModulesTest.ReflectionPad3d (4 ms) 2022-11-23T01:15:14.8476045Z [ RUN ] ModulesTest.ReplicationPad1d 2022-11-23T01:15:14.8498401Z [ OK ] ModulesTest.ReplicationPad1d (2 ms) 2022-11-23T01:15:14.8499075Z [ RUN ] ModulesTest.ReplicationPad2d 2022-11-23T01:15:14.8528366Z [ OK ] ModulesTest.ReplicationPad2d (2 ms) 2022-11-23T01:15:14.8528715Z [ RUN ] ModulesTest.ReplicationPad3d 2022-11-23T01:15:14.8581019Z [ OK ] ModulesTest.ReplicationPad3d (5 ms) 2022-11-23T01:15:14.8581327Z [ RUN ] ModulesTest.ZeroPad2d 2022-11-23T01:15:14.8612601Z [ OK ] ModulesTest.ZeroPad2d (3 ms) 2022-11-23T01:15:14.8612918Z [ RUN ] ModulesTest.ConstantPad1d 2022-11-23T01:15:14.8635491Z [ OK ] ModulesTest.ConstantPad1d (2 ms) 2022-11-23T01:15:14.8635846Z [ RUN ] ModulesTest.ConstantPad2d 2022-11-23T01:15:14.8663586Z [ OK ] ModulesTest.ConstantPad2d (2 ms) 2022-11-23T01:15:14.8663923Z [ RUN ] ModulesTest.ConstantPad3d 2022-11-23T01:15:14.8719572Z [ OK ] ModulesTest.ConstantPad3d (5 ms) 2022-11-23T01:15:14.8719870Z [ RUN ] ModulesTest.CrossMapLRN2d 2022-11-23T01:15:14.8809030Z [ OK ] ModulesTest.CrossMapLRN2d (8 ms) 2022-11-23T01:15:14.8809330Z [ RUN ] ModulesTest.RNNCell 2022-11-23T01:15:14.8840842Z [ OK ] ModulesTest.RNNCell (3 ms) 2022-11-23T01:15:14.8841172Z [ RUN ] ModulesTest.LSTMCell 2022-11-23T01:15:14.8900383Z [ OK ] ModulesTest.LSTMCell (5 ms) 2022-11-23T01:15:14.8900747Z [ RUN ] ModulesTest.GRUCell 2022-11-23T01:15:14.8947426Z [ OK ] ModulesTest.GRUCell (4 ms) 2022-11-23T01:15:14.8947782Z [ RUN ] ModulesTest.PrettyPrintLinear 2022-11-23T01:15:14.8949132Z [ OK ] ModulesTest.PrettyPrintLinear (0 ms) 2022-11-23T01:15:14.8949472Z [ RUN ] ModulesTest.PrettyPrintBilinear 2022-11-23T01:15:14.8951372Z [ OK ] ModulesTest.PrettyPrintBilinear (0 ms) 2022-11-23T01:15:14.8951927Z [ RUN ] ModulesTest.PrettyPrintConv 2022-11-23T01:15:14.8972456Z [ OK ] ModulesTest.PrettyPrintConv (2 ms) 2022-11-23T01:15:14.8972794Z [ RUN ] ModulesTest.PrettyPrintConvTranspose 2022-11-23T01:15:14.8993465Z [ OK ] ModulesTest.PrettyPrintConvTranspose (2 ms) 2022-11-23T01:15:14.8993967Z [ RUN ] ModulesTest.PrettyPrintUpsample 2022-11-23T01:15:14.8994689Z [ OK ] ModulesTest.PrettyPrintUpsample (0 ms) 2022-11-23T01:15:14.8995089Z [ RUN ] ModulesTest.PrettyPrintFold 2022-11-23T01:15:14.8995546Z [ OK ] ModulesTest.PrettyPrintFold (0 ms) 2022-11-23T01:15:14.8995907Z [ RUN ] ModulesTest.PrettyPrintUnfold 2022-11-23T01:15:14.8996665Z [ OK ] ModulesTest.PrettyPrintUnfold (0 ms) 2022-11-23T01:15:14.8997271Z [ RUN ] ModulesTest.PrettyPrintMaxPool 2022-11-23T01:15:14.8998384Z [ OK ] ModulesTest.PrettyPrintMaxPool (0 ms) 2022-11-23T01:15:14.8999005Z [ RUN ] ModulesTest.PrettyPrintAvgPool 2022-11-23T01:15:14.8999729Z [ OK ] ModulesTest.PrettyPrintAvgPool (0 ms) 2022-11-23T01:15:14.9000396Z [ RUN ] ModulesTest.PrettyPrinFractionalMaxPool 2022-11-23T01:15:14.9001309Z [ OK ] ModulesTest.PrettyPrinFractionalMaxPool (0 ms) 2022-11-23T01:15:14.9001733Z [ RUN ] ModulesTest.PrettyPrintLPPool 2022-11-23T01:15:14.9002314Z [ OK ] ModulesTest.PrettyPrintLPPool (0 ms) 2022-11-23T01:15:14.9002844Z [ RUN ] ModulesTest.PrettyPrintAdaptiveMaxPool 2022-11-23T01:15:14.9004269Z [ OK ] ModulesTest.PrettyPrintAdaptiveMaxPool (0 ms) 2022-11-23T01:15:14.9004916Z [ RUN ] ModulesTest.PrettyPrintAdaptiveAvgPool 2022-11-23T01:15:14.9006303Z [ OK ] ModulesTest.PrettyPrintAdaptiveAvgPool (0 ms) 2022-11-23T01:15:14.9006910Z [ RUN ] ModulesTest.PrettyPrintMaxUnpool 2022-11-23T01:15:14.9007547Z [ OK ] ModulesTest.PrettyPrintMaxUnpool (0 ms) 2022-11-23T01:15:14.9008133Z [ RUN ] ModulesTest.PrettyPrintDropout 2022-11-23T01:15:14.9008690Z [ OK ] ModulesTest.PrettyPrintDropout (0 ms) 2022-11-23T01:15:14.9009285Z [ RUN ] ModulesTest.PrettyPrintDropout2d 2022-11-23T01:15:14.9009889Z [ OK ] ModulesTest.PrettyPrintDropout2d (0 ms) 2022-11-23T01:15:14.9010374Z [ RUN ] ModulesTest.PrettyPrintDropout3d 2022-11-23T01:15:14.9011001Z [ OK ] ModulesTest.PrettyPrintDropout3d (0 ms) 2022-11-23T01:15:14.9011638Z [ RUN ] ModulesTest.PrettyPrintFunctional 2022-11-23T01:15:14.9011988Z [ OK ] ModulesTest.PrettyPrintFunctional (0 ms) 2022-11-23T01:15:14.9012333Z [ RUN ] ModulesTest.PrettyPrintBatchNorm1d 2022-11-23T01:15:14.9014673Z [ OK ] ModulesTest.PrettyPrintBatchNorm1d (0 ms) 2022-11-23T01:15:14.9015312Z [ RUN ] ModulesTest.PrettyPrintBatchNorm2d 2022-11-23T01:15:14.9015965Z [ OK ] ModulesTest.PrettyPrintBatchNorm2d (0 ms) 2022-11-23T01:15:14.9016613Z [ RUN ] ModulesTest.PrettyPrintBatchNorm3d 2022-11-23T01:15:14.9017742Z [ OK ] ModulesTest.PrettyPrintBatchNorm3d (0 ms) 2022-11-23T01:15:14.9018368Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm1d 2022-11-23T01:15:14.9020456Z [ OK ] ModulesTest.PrettyPrintInstanceNorm1d (0 ms) 2022-11-23T01:15:14.9020870Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm2d 2022-11-23T01:15:14.9021870Z [ OK ] ModulesTest.PrettyPrintInstanceNorm2d (0 ms) 2022-11-23T01:15:14.9022242Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm3d 2022-11-23T01:15:14.9023923Z [ OK ] ModulesTest.PrettyPrintInstanceNorm3d (0 ms) 2022-11-23T01:15:14.9024280Z [ RUN ] ModulesTest.PrettyPrintLayerNorm 2022-11-23T01:15:14.9026193Z [ OK ] ModulesTest.PrettyPrintLayerNorm (0 ms) 2022-11-23T01:15:14.9026550Z [ RUN ] ModulesTest.PrettyPrintGroupNorm 2022-11-23T01:15:14.9027555Z [ OK ] ModulesTest.PrettyPrintGroupNorm (0 ms) 2022-11-23T01:15:14.9028035Z [ RUN ] ModulesTest.PrettyPrintLocalResponseNorm 2022-11-23T01:15:14.9028919Z [ OK ] ModulesTest.PrettyPrintLocalResponseNorm (0 ms) 2022-11-23T01:15:14.9029338Z [ RUN ] ModulesTest.PrettyPrintEmbedding 2022-11-23T01:15:14.9032788Z [ OK ] ModulesTest.PrettyPrintEmbedding (0 ms) 2022-11-23T01:15:14.9033314Z [ RUN ] ModulesTest.PrettyPrintEmbeddingBag 2022-11-23T01:15:14.9037210Z [ OK ] ModulesTest.PrettyPrintEmbeddingBag (0 ms) 2022-11-23T01:15:14.9037635Z [ RUN ] ModulesTest.PrettyPrintL1Loss 2022-11-23T01:15:14.9038070Z [ OK ] ModulesTest.PrettyPrintL1Loss (0 ms) 2022-11-23T01:15:14.9038619Z [ RUN ] ModulesTest.PrettyPrintKLDivLoss 2022-11-23T01:15:14.9039096Z [ OK ] ModulesTest.PrettyPrintKLDivLoss (0 ms) 2022-11-23T01:15:14.9039531Z [ RUN ] ModulesTest.PrettyPrintMSELoss 2022-11-23T01:15:14.9040038Z [ OK ] ModulesTest.PrettyPrintMSELoss (0 ms) 2022-11-23T01:15:14.9040636Z [ RUN ] ModulesTest.PrettyPrintBCELoss 2022-11-23T01:15:14.9041173Z [ OK ] ModulesTest.PrettyPrintBCELoss (0 ms) 2022-11-23T01:15:14.9041756Z [ RUN ] ModulesTest.PrettyPrintHingeEmbeddingLoss 2022-11-23T01:15:14.9042401Z [ OK ] ModulesTest.PrettyPrintHingeEmbeddingLoss (0 ms) 2022-11-23T01:15:14.9043045Z [ RUN ] ModulesTest.PrettyPrintCosineEmbeddingLoss 2022-11-23T01:15:14.9043701Z [ OK ] ModulesTest.PrettyPrintCosineEmbeddingLoss (0 ms) 2022-11-23T01:15:14.9044392Z [ RUN ] ModulesTest.PrettyPrintTripletMarginLoss 2022-11-23T01:15:14.9045087Z [ OK ] ModulesTest.PrettyPrintTripletMarginLoss (0 ms) 2022-11-23T01:15:14.9045776Z [ RUN ] ModulesTest.PrettyPrintTripletMarginWithDistanceLoss 2022-11-23T01:15:14.9046553Z [ OK ] ModulesTest.PrettyPrintTripletMarginWithDistanceLoss (0 ms) 2022-11-23T01:15:14.9047150Z [ RUN ] ModulesTest.PrettyPrintNLLLoss 2022-11-23T01:15:14.9047534Z [ OK ] ModulesTest.PrettyPrintNLLLoss (0 ms) 2022-11-23T01:15:14.9048201Z [ RUN ] ModulesTest.PrettyPrinCrossEntropyLoss 2022-11-23T01:15:14.9048612Z [ OK ] ModulesTest.PrettyPrinCrossEntropyLoss (0 ms) 2022-11-23T01:15:14.9049050Z [ RUN ] ModulesTest.PrettyPrintMultiLabelMarginLoss 2022-11-23T01:15:14.9049544Z [ OK ] ModulesTest.PrettyPrintMultiLabelMarginLoss (0 ms) 2022-11-23T01:15:14.9050297Z [ RUN ] ModulesTest.PrettyPrintMultiLabelSoftMarginLoss 2022-11-23T01:15:14.9050934Z [ OK ] ModulesTest.PrettyPrintMultiLabelSoftMarginLoss (0 ms) 2022-11-23T01:15:14.9051429Z [ RUN ] ModulesTest.PrettyPrintSoftMarginLoss 2022-11-23T01:15:14.9051902Z [ OK ] ModulesTest.PrettyPrintSoftMarginLoss (0 ms) 2022-11-23T01:15:14.9052521Z [ RUN ] ModulesTest.PrettyPrintCosineSimilarity 2022-11-23T01:15:14.9053217Z [ OK ] ModulesTest.PrettyPrintCosineSimilarity (0 ms) 2022-11-23T01:15:14.9053889Z [ RUN ] ModulesTest.PrettyPrintPairwiseDistance 2022-11-23T01:15:14.9054565Z [ OK ] ModulesTest.PrettyPrintPairwiseDistance (0 ms) 2022-11-23T01:15:14.9054934Z [ RUN ] ModulesTest.PrettyPrintReflectionPad 2022-11-23T01:15:14.9055287Z [ OK ] ModulesTest.PrettyPrintReflectionPad (0 ms) 2022-11-23T01:15:14.9055650Z [ RUN ] ModulesTest.PrettyPrintReplicationPad 2022-11-23T01:15:14.9056022Z [ OK ] ModulesTest.PrettyPrintReplicationPad (0 ms) 2022-11-23T01:15:14.9056372Z [ RUN ] ModulesTest.PrettyPrintZeroPad2d 2022-11-23T01:15:14.9056952Z [ OK ] ModulesTest.PrettyPrintZeroPad2d (0 ms) 2022-11-23T01:15:14.9057446Z [ RUN ] ModulesTest.PrettyPrintConstantPad 2022-11-23T01:15:14.9058099Z [ OK ] ModulesTest.PrettyPrintConstantPad (0 ms) 2022-11-23T01:15:14.9058713Z [ RUN ] ModulesTest.PrettyPrintNestedModel 2022-11-23T01:15:14.9059241Z [ OK ] ModulesTest.PrettyPrintNestedModel (0 ms) 2022-11-23T01:15:14.9059786Z [ RUN ] ModulesTest.PrettyPrintELU 2022-11-23T01:15:14.9060329Z [ OK ] ModulesTest.PrettyPrintELU (0 ms) 2022-11-23T01:15:14.9060886Z [ RUN ] ModulesTest.PrettyPrintSELU 2022-11-23T01:15:14.9061412Z [ OK ] ModulesTest.PrettyPrintSELU (0 ms) 2022-11-23T01:15:14.9061946Z [ RUN ] ModulesTest.PrettyPrintGLU 2022-11-23T01:15:14.9062357Z [ OK ] ModulesTest.PrettyPrintGLU (0 ms) 2022-11-23T01:15:14.9062944Z [ RUN ] ModulesTest.PrettyPrintHardshrink 2022-11-23T01:15:14.9063582Z [ OK ] ModulesTest.PrettyPrintHardshrink (0 ms) 2022-11-23T01:15:14.9064143Z [ RUN ] ModulesTest.PrettyPrintHardtanh 2022-11-23T01:15:14.9064583Z [ OK ] ModulesTest.PrettyPrintHardtanh (0 ms) 2022-11-23T01:15:14.9065192Z [ RUN ] ModulesTest.PrettyPrintLeakyReLU 2022-11-23T01:15:14.9065580Z [ OK ] ModulesTest.PrettyPrintLeakyReLU (0 ms) 2022-11-23T01:15:14.9066046Z [ RUN ] ModulesTest.PrettyPrintLogSigmoid 2022-11-23T01:15:14.9066554Z [ OK ] ModulesTest.PrettyPrintLogSigmoid (0 ms) 2022-11-23T01:15:14.9066888Z [ RUN ] ModulesTest.PrettyPrintSoftmax 2022-11-23T01:15:14.9067210Z [ OK ] ModulesTest.PrettyPrintSoftmax (0 ms) 2022-11-23T01:15:14.9067575Z [ RUN ] ModulesTest.PrettyPrintSoftmin 2022-11-23T01:15:14.9067949Z [ OK ] ModulesTest.PrettyPrintSoftmin (0 ms) 2022-11-23T01:15:14.9068368Z [ RUN ] ModulesTest.PrettyPrintLogSoftmax 2022-11-23T01:15:14.9068876Z [ OK ] ModulesTest.PrettyPrintLogSoftmax (0 ms) 2022-11-23T01:15:14.9069251Z [ RUN ] ModulesTest.PrettyPrintSoftmax2d 2022-11-23T01:15:14.9069727Z [ OK ] ModulesTest.PrettyPrintSoftmax2d (0 ms) 2022-11-23T01:15:14.9070261Z [ RUN ] ModulesTest.PrettyPrintPReLU 2022-11-23T01:15:14.9070846Z [ OK ] ModulesTest.PrettyPrintPReLU (0 ms) 2022-11-23T01:15:14.9071311Z [ RUN ] ModulesTest.PrettyPrintReLU 2022-11-23T01:15:14.9071835Z [ OK ] ModulesTest.PrettyPrintReLU (0 ms) 2022-11-23T01:15:14.9072350Z [ RUN ] ModulesTest.PrettyPrintReLU6 2022-11-23T01:15:14.9072869Z [ OK ] ModulesTest.PrettyPrintReLU6 (0 ms) 2022-11-23T01:15:14.9073370Z [ RUN ] ModulesTest.PrettyPrintRReLU 2022-11-23T01:15:14.9073916Z [ OK ] ModulesTest.PrettyPrintRReLU (0 ms) 2022-11-23T01:15:14.9074470Z [ RUN ] ModulesTest.PrettyPrintCELU 2022-11-23T01:15:14.9075002Z [ OK ] ModulesTest.PrettyPrintCELU (0 ms) 2022-11-23T01:15:14.9075521Z [ RUN ] ModulesTest.PrettyPrintSigmoid 2022-11-23T01:15:14.9076058Z [ OK ] ModulesTest.PrettyPrintSigmoid (0 ms) 2022-11-23T01:15:14.9076630Z [ RUN ] ModulesTest.PrettyPrintPixelShuffle 2022-11-23T01:15:14.9077217Z [ OK ] ModulesTest.PrettyPrintPixelShuffle (0 ms) 2022-11-23T01:15:14.9077816Z [ RUN ] ModulesTest.PrettyPrintPixelUnshuffle 2022-11-23T01:15:14.9078456Z [ OK ] ModulesTest.PrettyPrintPixelUnshuffle (0 ms) 2022-11-23T01:15:14.9079052Z [ RUN ] ModulesTest.PrettyPrintSoftplus 2022-11-23T01:15:14.9079618Z [ OK ] ModulesTest.PrettyPrintSoftplus (0 ms) 2022-11-23T01:15:14.9080179Z [ RUN ] ModulesTest.PrettyPrintSoftshrink 2022-11-23T01:15:14.9080714Z [ OK ] ModulesTest.PrettyPrintSoftshrink (0 ms) 2022-11-23T01:15:14.9081352Z [ RUN ] ModulesTest.PrettyPrintSoftsign 2022-11-23T01:15:14.9081904Z [ OK ] ModulesTest.PrettyPrintSoftsign (0 ms) 2022-11-23T01:15:14.9082368Z [ RUN ] ModulesTest.PrettyPrintTanh 2022-11-23T01:15:14.9082907Z [ OK ] ModulesTest.PrettyPrintTanh (0 ms) 2022-11-23T01:15:14.9083290Z [ RUN ] ModulesTest.PrettyPrintTanhshrink 2022-11-23T01:15:14.9083742Z [ OK ] ModulesTest.PrettyPrintTanhshrink (0 ms) 2022-11-23T01:15:14.9084201Z [ RUN ] ModulesTest.PrettyPrintThreshold 2022-11-23T01:15:14.9084590Z [ OK ] ModulesTest.PrettyPrintThreshold (0 ms) 2022-11-23T01:15:14.9084974Z [ RUN ] ModulesTest.PrettyPrintCTCLoss 2022-11-23T01:15:14.9085306Z [ OK ] ModulesTest.PrettyPrintCTCLoss (0 ms) 2022-11-23T01:15:14.9085642Z [ RUN ] ModulesTest.PrettyPrintPoissonNLLLoss 2022-11-23T01:15:14.9086011Z [ OK ] ModulesTest.PrettyPrintPoissonNLLLoss (0 ms) 2022-11-23T01:15:14.9086390Z [ RUN ] ModulesTest.PrettyPrintMarginRankingLoss 2022-11-23T01:15:14.9086776Z [ OK ] ModulesTest.PrettyPrintMarginRankingLoss (0 ms) 2022-11-23T01:15:14.9087150Z [ RUN ] ModulesTest.PrettyPrintCrossMapLRN2d 2022-11-23T01:15:14.9087583Z [ OK ] ModulesTest.PrettyPrintCrossMapLRN2d (0 ms) 2022-11-23T01:15:14.9087942Z [ RUN ] ModulesTest.PrettyPrintAlphaDropout 2022-11-23T01:15:14.9088287Z [ OK ] ModulesTest.PrettyPrintAlphaDropout (0 ms) 2022-11-23T01:15:14.9088664Z [ RUN ] ModulesTest.PrettyPrintFeatureAlphaDropout 2022-11-23T01:15:14.9089066Z [ OK ] ModulesTest.PrettyPrintFeatureAlphaDropout (0 ms) 2022-11-23T01:15:14.9089443Z [ RUN ] ModulesTest.PrettyPrintBCEWithLogitsLoss 2022-11-23T01:15:14.9089834Z [ OK ] ModulesTest.PrettyPrintBCEWithLogitsLoss (0 ms) 2022-11-23T01:15:14.9090273Z [ RUN ] ModulesTest.PrettyPrintMultiheadAttention 2022-11-23T01:15:14.9091341Z [ OK ] ModulesTest.PrettyPrintMultiheadAttention (0 ms) 2022-11-23T01:15:14.9091692Z [ RUN ] ModulesTest.PrettyPrintRNNCell 2022-11-23T01:15:14.9097435Z [ OK ] ModulesTest.PrettyPrintRNNCell (0 ms) 2022-11-23T01:15:14.9097813Z [ RUN ] ModulesTest.PrettyPrintLSTMCell 2022-11-23T01:15:14.9103371Z [ OK ] ModulesTest.PrettyPrintLSTMCell (0 ms) 2022-11-23T01:15:14.9103766Z [ RUN ] ModulesTest.PrettyPrintGRUCell 2022-11-23T01:15:14.9108589Z [ OK ] ModulesTest.PrettyPrintGRUCell (0 ms) 2022-11-23T01:15:14.9109085Z [ RUN ] ModulesTest.PrettyPrintAdaptiveLogSoftmaxWithLoss 2022-11-23T01:15:14.9116412Z [ OK ] ModulesTest.PrettyPrintAdaptiveLogSoftmaxWithLoss (0 ms) 2022-11-23T01:15:14.9116892Z [----------] 256 tests from ModulesTest (153527 ms total) 2022-11-23T01:15:14.9117053Z 2022-11-23T01:15:14.9117196Z [----------] 1 test from NestedTest 2022-11-23T01:15:14.9117452Z [ RUN ] NestedTest.Nested 2022-11-23T01:15:14.9120061Z [W NestedTensorImpl.cpp:179] Warning: The PyTorch API of nested tensors is in prototype stage and will change in the near future. (function operator()) 2022-11-23T01:15:14.9124558Z [ OK ] NestedTest.Nested (0 ms) 2022-11-23T01:15:14.9125150Z [----------] 1 test from NestedTest (0 ms total) 2022-11-23T01:15:14.9125438Z 2022-11-23T01:15:14.9125710Z [----------] 10 tests from ParameterDictTest 2022-11-23T01:15:14.9126054Z [ RUN ] ParameterDictTest.ConstructFromTensor 2022-11-23T01:15:14.9128321Z [ OK ] ParameterDictTest.ConstructFromTensor (0 ms) 2022-11-23T01:15:14.9128716Z [ RUN ] ParameterDictTest.ConstructFromOrderedDict 2022-11-23T01:15:14.9131623Z [ OK ] ParameterDictTest.ConstructFromOrderedDict (0 ms) 2022-11-23T01:15:14.9132064Z [ RUN ] ParameterDictTest.InsertAndContains 2022-11-23T01:15:14.9133251Z [ OK ] ParameterDictTest.InsertAndContains (0 ms) 2022-11-23T01:15:14.9133788Z [ RUN ] ParameterDictTest.InsertAndClear 2022-11-23T01:15:14.9134308Z [ OK ] ParameterDictTest.InsertAndClear (0 ms) 2022-11-23T01:15:14.9134686Z [ RUN ] ParameterDictTest.InsertAndPop 2022-11-23T01:15:14.9153416Z [ OK ] ParameterDictTest.InsertAndPop (1 ms) 2022-11-23T01:15:14.9153801Z [ RUN ] ParameterDictTest.SimpleUpdate 2022-11-23T01:15:14.9174388Z [ OK ] ParameterDictTest.SimpleUpdate (2 ms) 2022-11-23T01:15:14.9174867Z [ RUN ] ParameterDictTest.Keys 2022-11-23T01:15:14.9176921Z [ OK ] ParameterDictTest.Keys (0 ms) 2022-11-23T01:15:14.9177444Z [ RUN ] ParameterDictTest.Values 2022-11-23T01:15:14.9181174Z [ OK ] ParameterDictTest.Values (0 ms) 2022-11-23T01:15:14.9181471Z [ RUN ] ParameterDictTest.Get 2022-11-23T01:15:14.9184499Z [ OK ] ParameterDictTest.Get (0 ms) 2022-11-23T01:15:14.9184918Z [ RUN ] ParameterDictTest.PrettyPrintParameterDict 2022-11-23T01:15:14.9189498Z [ OK ] ParameterDictTest.PrettyPrintParameterDict (0 ms) 2022-11-23T01:15:14.9190004Z [----------] 10 tests from ParameterDictTest (6 ms total) 2022-11-23T01:15:14.9190163Z 2022-11-23T01:15:14.9190327Z [----------] 8 tests from ParameterListTest 2022-11-23T01:15:14.9190720Z [ RUN ] ParameterListTest.ConstructsFromSharedPointer 2022-11-23T01:15:14.9192193Z [ OK ] ParameterListTest.ConstructsFromSharedPointer (0 ms) 2022-11-23T01:15:14.9192607Z [ RUN ] ParameterListTest.isEmpty 2022-11-23T01:15:14.9193326Z [ OK ] ParameterListTest.isEmpty (0 ms) 2022-11-23T01:15:14.9193683Z [ RUN ] ParameterListTest.PushBackAddsAnElement 2022-11-23T01:15:14.9195746Z [ OK ] ParameterListTest.PushBackAddsAnElement (0 ms) 2022-11-23T01:15:14.9196095Z [ RUN ] ParameterListTest.ForEachLoop 2022-11-23T01:15:14.9200672Z [ OK ] ParameterListTest.ForEachLoop (0 ms) 2022-11-23T01:15:14.9201001Z [ RUN ] ParameterListTest.AccessWithAt 2022-11-23T01:15:14.9255002Z [ OK ] ParameterListTest.AccessWithAt (5 ms) 2022-11-23T01:15:14.9255439Z [ RUN ] ParameterListTest.ExtendPushesParametersFromOtherParameterList 2022-11-23T01:15:14.9265024Z [ OK ] ParameterListTest.ExtendPushesParametersFromOtherParameterList (0 ms) 2022-11-23T01:15:14.9265492Z [ RUN ] ParameterListTest.PrettyPrintParameterList 2022-11-23T01:15:14.9267214Z [ OK ] ParameterListTest.PrettyPrintParameterList (0 ms) 2022-11-23T01:15:14.9267582Z [ RUN ] ParameterListTest.IncrementAdd 2022-11-23T01:15:14.9278194Z [ OK ] ParameterListTest.IncrementAdd (1 ms) 2022-11-23T01:15:14.9278866Z [----------] 8 tests from ParameterListTest (8 ms total) 2022-11-23T01:15:14.9279190Z 2022-11-23T01:15:14.9279376Z [----------] 1 test from NamespaceTests 2022-11-23T01:15:14.9279782Z [ RUN ] NamespaceTests.NotLeakingSymbolsFromTorchAutogradNamespace 2022-11-23T01:15:14.9280294Z [ OK ] NamespaceTests.NotLeakingSymbolsFromTorchAutogradNamespace (0 ms) 2022-11-23T01:15:14.9280702Z [----------] 1 test from NamespaceTests (0 ms total) 2022-11-23T01:15:14.9280857Z 2022-11-23T01:15:14.9281002Z [----------] 7 tests from NNUtilsTest 2022-11-23T01:15:14.9281279Z [ RUN ] NNUtilsTest.ClipGradNorm 2022-11-23T01:15:14.9483303Z [ OK ] NNUtilsTest.ClipGradNorm (20 ms) 2022-11-23T01:15:14.9483881Z [ RUN ] NNUtilsTest.ClipGradNormErrorIfNonfinite 2022-11-23T01:15:15.7727566Z [ OK ] NNUtilsTest.ClipGradNormErrorIfNonfinite (824 ms) 2022-11-23T01:15:15.7727960Z [ RUN ] NNUtilsTest.ClipGradValue 2022-11-23T01:15:15.7748235Z [ OK ] NNUtilsTest.ClipGradValue (2 ms) 2022-11-23T01:15:15.7748557Z [ RUN ] NNUtilsTest.ConvertParameters 2022-11-23T01:15:15.7795073Z [ OK ] NNUtilsTest.ConvertParameters (4 ms) 2022-11-23T01:15:15.7795401Z [ RUN ] NNUtilsTest.PackSequence 2022-11-23T01:15:16.6003475Z [ OK ] NNUtilsTest.PackSequence (820 ms) 2022-11-23T01:15:16.6003843Z [ RUN ] NNUtilsTest.PackPaddedSequence 2022-11-23T01:15:16.7295379Z [ OK ] NNUtilsTest.PackPaddedSequence (129 ms) 2022-11-23T01:15:16.7295745Z [ RUN ] NNUtilsTest.PadSequence 2022-11-23T01:15:16.8831043Z [ OK ] NNUtilsTest.PadSequence (153 ms) 2022-11-23T01:15:16.8831558Z [----------] 7 tests from NNUtilsTest (1955 ms total) 2022-11-23T01:15:16.8831727Z 2022-11-23T01:15:16.8831898Z [----------] 3 tests from PackedSequenceTest 2022-11-23T01:15:16.8832214Z [ RUN ] PackedSequenceTest.WrongOrder 2022-11-23T01:15:16.8873903Z [ OK ] PackedSequenceTest.WrongOrder (4 ms) 2022-11-23T01:15:16.8874224Z [ RUN ] PackedSequenceTest.TotalLength 2022-11-23T01:15:16.9075363Z [ OK ] PackedSequenceTest.TotalLength (20 ms) 2022-11-23T01:15:16.9075937Z [ RUN ] PackedSequenceTest.To 2022-11-23T01:15:16.9097110Z [ OK ] PackedSequenceTest.To (2 ms) 2022-11-23T01:15:16.9097720Z [----------] 3 tests from PackedSequenceTest (26 ms total) 2022-11-23T01:15:16.9098018Z 2022-11-23T01:15:16.9098179Z [----------] 34 tests from OptimTest 2022-11-23T01:15:16.9098474Z [ RUN ] OptimTest.OptimizerAccessors 2022-11-23T01:15:16.9123629Z [ OK ] OptimTest.OptimizerAccessors (2 ms) 2022-11-23T01:15:16.9124191Z [ RUN ] OptimTest.OldInterface 2022-11-23T01:15:16.9142839Z [ OK ] OptimTest.OldInterface (1 ms) 2022-11-23T01:15:16.9143402Z [ RUN ] OptimTest.XORConvergence_SGD 2022-11-23T01:15:36.6124335Z [ OK ] OptimTest.XORConvergence_SGD (19697 ms) 2022-11-23T01:15:36.6124740Z [ RUN ] OptimTest.XORConvergence_LBFGS 2022-11-23T01:15:50.3490788Z [ OK ] OptimTest.XORConvergence_LBFGS (13736 ms) 2022-11-23T01:15:50.3491180Z [ RUN ] OptimTest.XORConvergence_Adagrad 2022-11-23T01:15:58.3271930Z [ OK ] OptimTest.XORConvergence_Adagrad (7978 ms) 2022-11-23T01:15:58.3272311Z [ RUN ] OptimTest.XORConvergence_RMSprop 2022-11-23T01:16:06.2844248Z [ OK ] OptimTest.XORConvergence_RMSprop (7957 ms) 2022-11-23T01:16:06.2844866Z [ RUN ] OptimTest.XORConvergence_RMSpropWithMomentum 2022-11-23T01:16:31.6566246Z [ OK ] OptimTest.XORConvergence_RMSpropWithMomentum (25372 ms) 2022-11-23T01:16:31.6566993Z [ RUN ] OptimTest.XORConvergence_Adam 2022-11-23T01:16:39.9770270Z [ OK ] OptimTest.XORConvergence_Adam (8320 ms) 2022-11-23T01:16:39.9770920Z [ RUN ] OptimTest.XORConvergence_AdamWithAmsgrad 2022-11-23T01:16:47.8076131Z [ OK ] OptimTest.XORConvergence_AdamWithAmsgrad (7830 ms) 2022-11-23T01:16:47.8076817Z [ RUN ] OptimTest.ProducesPyTorchValues_Adam 2022-11-23T01:16:50.7910943Z [ OK ] OptimTest.ProducesPyTorchValues_Adam (2983 ms) 2022-11-23T01:16:50.7911674Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecay 2022-11-23T01:16:53.9132881Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecay (3122 ms) 2022-11-23T01:16:53.9133708Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecayAndAMSGrad 2022-11-23T01:16:57.1203175Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecayAndAMSGrad (3206 ms) 2022-11-23T01:16:57.1203846Z [ RUN ] OptimTest.XORConvergence_AdamW 2022-11-23T01:17:04.8778966Z [ OK ] OptimTest.XORConvergence_AdamW (7757 ms) 2022-11-23T01:17:04.8779929Z [ RUN ] OptimTest.XORConvergence_AdamWWithAmsgrad 2022-11-23T01:17:12.6969937Z [ OK ] OptimTest.XORConvergence_AdamWWithAmsgrad (7819 ms) 2022-11-23T01:17:12.6970645Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamW 2022-11-23T01:17:15.8531385Z [ OK ] OptimTest.ProducesPyTorchValues_AdamW (3156 ms) 2022-11-23T01:17:15.8532202Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWWithoutWeightDecay 2022-11-23T01:17:18.8835169Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWWithoutWeightDecay (3030 ms) 2022-11-23T01:17:18.8835908Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWWithAMSGrad 2022-11-23T01:17:22.1395917Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWWithAMSGrad (3255 ms) 2022-11-23T01:17:22.1396676Z [ RUN ] OptimTest.ProducesPyTorchValues_Adagrad 2022-11-23T01:17:24.6319311Z [ OK ] OptimTest.ProducesPyTorchValues_Adagrad (2492 ms) 2022-11-23T01:17:24.6320113Z [ RUN ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecay 2022-11-23T01:17:27.2413686Z [ OK ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecay (2609 ms) 2022-11-23T01:17:27.2414552Z [ RUN ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecayAndLRDecay 2022-11-23T01:17:29.8512879Z [ OK ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecayAndLRDecay (2609 ms) 2022-11-23T01:17:29.8513637Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSprop 2022-11-23T01:17:32.4991471Z [ OK ] OptimTest.ProducesPyTorchValues_RMSprop (2647 ms) 2022-11-23T01:17:32.4992217Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecay 2022-11-23T01:17:35.2602097Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecay (2761 ms) 2022-11-23T01:17:35.2602930Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCentered 2022-11-23T01:17:38.3504965Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCentered (3090 ms) 2022-11-23T01:17:38.3505928Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCenteredAndMomentum 2022-11-23T01:17:41.6524559Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCenteredAndMomentum (3301 ms) 2022-11-23T01:17:41.6525394Z [ RUN ] OptimTest.ProducesPyTorchValues_SGD 2022-11-23T01:17:43.7273102Z [ OK ] OptimTest.ProducesPyTorchValues_SGD (2074 ms) 2022-11-23T01:17:43.7273811Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecay 2022-11-23T01:17:45.9189594Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecay (2191 ms) 2022-11-23T01:17:45.9190417Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndMomentum 2022-11-23T01:17:48.3500718Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndMomentum (2431 ms) 2022-11-23T01:17:48.3501645Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndNesterovMomentum 2022-11-23T01:17:50.8669685Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndNesterovMomentum (2516 ms) 2022-11-23T01:17:50.8670492Z [ RUN ] OptimTest.ProducesPyTorchValues_LBFGS 2022-11-23T01:17:53.0288019Z [ OK ] OptimTest.ProducesPyTorchValues_LBFGS (2161 ms) 2022-11-23T01:17:53.0288746Z [ RUN ] OptimTest.ProducesPyTorchValues_LBFGS_with_line_search 2022-11-23T01:18:04.6046039Z [ OK ] OptimTest.ProducesPyTorchValues_LBFGS_with_line_search (11575 ms) 2022-11-23T01:18:04.6046679Z [ RUN ] OptimTest.ZeroGrad 2022-11-23T01:18:04.6062594Z [ OK ] OptimTest.ZeroGrad (1 ms) 2022-11-23T01:18:04.6063210Z [ RUN ] OptimTest.ExternalVectorOfParameters 2022-11-23T01:18:04.6087582Z [ OK ] OptimTest.ExternalVectorOfParameters (2 ms) 2022-11-23T01:18:04.6088202Z [ RUN ] OptimTest.AddParameter_LBFGS 2022-11-23T01:18:04.6097244Z [ OK ] OptimTest.AddParameter_LBFGS (0 ms) 2022-11-23T01:18:04.6097622Z [ RUN ] OptimTest.CheckLRChange_StepLR_Adam 2022-11-23T01:18:04.6099813Z [ OK ] OptimTest.CheckLRChange_StepLR_Adam (0 ms) 2022-11-23T01:18:04.6100262Z [----------] 34 tests from OptimTest (167700 ms total) 2022-11-23T01:18:04.6100468Z 2022-11-23T01:18:04.6102769Z [----------] 29 tests from OrderedDictTest 2022-11-23T01:18:04.6103183Z [ RUN ] OrderedDictTest.IsEmptyAfterDefaultConstruction 2022-11-23T01:18:04.6103703Z [ OK ] OrderedDictTest.IsEmptyAfterDefaultConstruction (0 ms) 2022-11-23T01:18:04.6104307Z [ RUN ] OrderedDictTest.InsertAddsElementsWhenTheyAreYetNotPresent 2022-11-23T01:18:04.6105217Z [ OK ] OrderedDictTest.InsertAddsElementsWhenTheyAreYetNotPresent (0 ms) 2022-11-23T01:18:04.6105802Z [ RUN ] OrderedDictTest.GetReturnsValuesWhenTheyArePresent 2022-11-23T01:18:04.6106264Z [ OK ] OrderedDictTest.GetReturnsValuesWhenTheyArePresent (0 ms) 2022-11-23T01:18:04.6106740Z [ RUN ] OrderedDictTest.GetThrowsWhenPassedKeysThatAreNotPresent 2022-11-23T01:18:04.6135026Z [ OK ] OrderedDictTest.GetThrowsWhenPassedKeysThatAreNotPresent (3 ms) 2022-11-23T01:18:04.6135679Z [ RUN ] OrderedDictTest.CanInitializeFromList 2022-11-23T01:18:04.6136123Z [ OK ] OrderedDictTest.CanInitializeFromList (0 ms) 2022-11-23T01:18:04.6136565Z [ RUN ] OrderedDictTest.InsertThrowsWhenPassedElementsThatArePresent 2022-11-23T01:18:04.6167135Z [ OK ] OrderedDictTest.InsertThrowsWhenPassedElementsThatArePresent (3 ms) 2022-11-23T01:18:04.6167821Z [ RUN ] OrderedDictTest.FrontReturnsTheFirstItem 2022-11-23T01:18:04.6168213Z [ OK ] OrderedDictTest.FrontReturnsTheFirstItem (0 ms) 2022-11-23T01:18:04.6168579Z [ RUN ] OrderedDictTest.FrontThrowsWhenEmpty 2022-11-23T01:18:04.6182090Z [ OK ] OrderedDictTest.FrontThrowsWhenEmpty (1 ms) 2022-11-23T01:18:04.6182771Z [ RUN ] OrderedDictTest.BackReturnsTheLastItem 2022-11-23T01:18:04.6183158Z [ OK ] OrderedDictTest.BackReturnsTheLastItem (0 ms) 2022-11-23T01:18:04.6183507Z [ RUN ] OrderedDictTest.BackThrowsWhenEmpty 2022-11-23T01:18:04.6197781Z [ OK ] OrderedDictTest.BackThrowsWhenEmpty (1 ms) 2022-11-23T01:18:04.6198370Z [ RUN ] OrderedDictTest.FindReturnsPointersToValuesWhenPresent 2022-11-23T01:18:04.6199157Z [ OK ] OrderedDictTest.FindReturnsPointersToValuesWhenPresent (0 ms) 2022-11-23T01:18:04.6199862Z [ RUN ] OrderedDictTest.FindReturnsNullPointersWhenPasesdKeysThatAreNotPresent 2022-11-23T01:18:04.6200467Z [ OK ] OrderedDictTest.FindReturnsNullPointersWhenPasesdKeysThatAreNotPresent (0 ms) 2022-11-23T01:18:04.6201066Z [ RUN ] OrderedDictTest.SubscriptOperatorThrowsWhenPassedKeysThatAreNotPresent 2022-11-23T01:18:04.6201654Z [ OK ] OrderedDictTest.SubscriptOperatorThrowsWhenPassedKeysThatAreNotPresent (0 ms) 2022-11-23T01:18:04.6202277Z [ RUN ] OrderedDictTest.SubscriptOperatorReturnsItemsPositionallyWhenPassedIntegers 2022-11-23T01:18:04.6202930Z [ OK ] OrderedDictTest.SubscriptOperatorReturnsItemsPositionallyWhenPassedIntegers (0 ms) 2022-11-23T01:18:04.6203552Z [ RUN ] OrderedDictTest.SubscriptOperatorsThrowswhenPassedKeysThatAreNotPresent 2022-11-23T01:18:04.6231700Z [ OK ] OrderedDictTest.SubscriptOperatorsThrowswhenPassedKeysThatAreNotPresent (3 ms) 2022-11-23T01:18:04.6232357Z [ RUN ] OrderedDictTest.UpdateInsertsAllItemsFromAnotherOrderedDict 2022-11-23T01:18:04.6232879Z [ OK ] OrderedDictTest.UpdateInsertsAllItemsFromAnotherOrderedDict (0 ms) 2022-11-23T01:18:04.6233489Z [ RUN ] OrderedDictTest.UpdateAlsoChecksForDuplicates 2022-11-23T01:18:04.6249393Z [ OK ] OrderedDictTest.UpdateAlsoChecksForDuplicates (1 ms) 2022-11-23T01:18:04.6249907Z [ RUN ] OrderedDictTest.CanIterateItems 2022-11-23T01:18:04.6250359Z [ OK ] OrderedDictTest.CanIterateItems (0 ms) 2022-11-23T01:18:04.6250807Z [ RUN ] OrderedDictTest.EraseWorks 2022-11-23T01:18:04.6251261Z [ OK ] OrderedDictTest.EraseWorks (0 ms) 2022-11-23T01:18:04.6251749Z [ RUN ] OrderedDictTest.ClearMakesTheDictEmpty 2022-11-23T01:18:04.6252365Z [ OK ] OrderedDictTest.ClearMakesTheDictEmpty (0 ms) 2022-11-23T01:18:04.6252803Z [ RUN ] OrderedDictTest.CanCopyConstruct 2022-11-23T01:18:04.6253151Z [ OK ] OrderedDictTest.CanCopyConstruct (0 ms) 2022-11-23T01:18:04.6253496Z [ RUN ] OrderedDictTest.CanCopyAssign 2022-11-23T01:18:04.6253839Z [ OK ] OrderedDictTest.CanCopyAssign (0 ms) 2022-11-23T01:18:04.6254171Z [ RUN ] OrderedDictTest.CanMoveConstruct 2022-11-23T01:18:04.6254523Z [ OK ] OrderedDictTest.CanMoveConstruct (0 ms) 2022-11-23T01:18:04.6254834Z [ RUN ] OrderedDictTest.CanMoveAssign 2022-11-23T01:18:04.6255274Z [ OK ] OrderedDictTest.CanMoveAssign (0 ms) 2022-11-23T01:18:04.6255609Z [ RUN ] OrderedDictTest.CanInsertWithBraces 2022-11-23T01:18:04.6255969Z [ OK ] OrderedDictTest.CanInsertWithBraces (0 ms) 2022-11-23T01:18:04.6256373Z [ RUN ] OrderedDictTest.ErrorMessagesIncludeTheKeyDescription 2022-11-23T01:18:04.6285913Z [ OK ] OrderedDictTest.ErrorMessagesIncludeTheKeyDescription (3 ms) 2022-11-23T01:18:04.6286653Z [ RUN ] OrderedDictTest.KeysReturnsAllKeys 2022-11-23T01:18:04.6287309Z [ OK ] OrderedDictTest.KeysReturnsAllKeys (0 ms) 2022-11-23T01:18:04.6287681Z [ RUN ] OrderedDictTest.ValuesReturnsAllValues 2022-11-23T01:18:04.6288050Z [ OK ] OrderedDictTest.ValuesReturnsAllValues (0 ms) 2022-11-23T01:18:04.6288475Z [ RUN ] OrderedDictTest.ItemsReturnsAllItems 2022-11-23T01:18:04.6288836Z [ OK ] OrderedDictTest.ItemsReturnsAllItems (0 ms) 2022-11-23T01:18:04.6289201Z [----------] 29 tests from OrderedDictTest (18 ms total) 2022-11-23T01:18:04.6289351Z 2022-11-23T01:18:04.6289490Z [----------] 13 tests from RNNTest 2022-11-23T01:18:04.6289768Z [ RUN ] RNNTest.CheckOutputSizes 2022-11-23T01:18:04.7223109Z [ OK ] RNNTest.CheckOutputSizes (93 ms) 2022-11-23T01:18:04.7223461Z [ RUN ] RNNTest.CheckOutputSizesProj 2022-11-23T01:18:04.8144079Z [ OK ] RNNTest.CheckOutputSizesProj (92 ms) 2022-11-23T01:18:04.8144465Z [ RUN ] RNNTest.CheckOutputValuesMatchPyTorch 2022-11-23T01:18:04.8197743Z [ OK ] RNNTest.CheckOutputValuesMatchPyTorch (5 ms) 2022-11-23T01:18:04.8198334Z [ RUN ] RNNTest.EndToEndLSTM 2022-11-23T01:18:28.4629788Z [ OK ] RNNTest.EndToEndLSTM (23642 ms) 2022-11-23T01:18:28.4630217Z [ RUN ] RNNTest.EndToEndLSTMProj 2022-11-23T01:18:53.0212663Z [ OK ] RNNTest.EndToEndLSTMProj (24558 ms) 2022-11-23T01:18:53.0213101Z [ RUN ] RNNTest.EndToEndGRU 2022-11-23T01:19:14.2838397Z [ OK ] RNNTest.EndToEndGRU (21262 ms) 2022-11-23T01:19:14.2838733Z [ RUN ] RNNTest.EndToEndRNNRelu 2022-11-23T01:19:26.0945777Z [ OK ] RNNTest.EndToEndRNNRelu (11810 ms) 2022-11-23T01:19:26.0946171Z [ RUN ] RNNTest.EndToEndRNNTanh 2022-11-23T01:19:38.6128856Z [ OK ] RNNTest.EndToEndRNNTanh (12518 ms) 2022-11-23T01:19:38.6129356Z [ RUN ] RNNTest.PrettyPrintRNNs 2022-11-23T01:19:38.6417804Z [ OK ] RNNTest.PrettyPrintRNNs (28 ms) 2022-11-23T01:19:38.6418178Z [ RUN ] RNNTest.BidirectionalFlattenParameters 2022-11-23T01:19:38.7651646Z [ OK ] RNNTest.BidirectionalFlattenParameters (123 ms) 2022-11-23T01:19:38.7652073Z [ RUN ] RNNTest.BidirectionalGRUReverseForward 2022-11-23T01:19:38.7854756Z [ OK ] RNNTest.BidirectionalGRUReverseForward (20 ms) 2022-11-23T01:19:38.7855160Z [ RUN ] RNNTest.BidirectionalLSTMReverseForward 2022-11-23T01:19:38.8034034Z [ OK ] RNNTest.BidirectionalLSTMReverseForward (17 ms) 2022-11-23T01:19:38.8034440Z [ RUN ] RNNTest.UsePackedSequenceAsInput 2022-11-23T01:19:38.8270856Z [ OK ] RNNTest.UsePackedSequenceAsInput (23 ms) 2022-11-23T01:19:38.8271225Z [----------] 13 tests from RNNTest (94198 ms total) 2022-11-23T01:19:38.8272045Z 2022-11-23T01:19:38.8273141Z [----------] 19 tests from SequentialTest 2022-11-23T01:19:38.8273619Z [ RUN ] SequentialTest.CanContainThings 2022-11-23T01:19:38.8275181Z [ OK ] SequentialTest.CanContainThings (0 ms) 2022-11-23T01:19:38.8275803Z [ RUN ] SequentialTest.ConstructsFromSharedPointer 2022-11-23T01:19:38.8276578Z [ OK ] SequentialTest.ConstructsFromSharedPointer (0 ms) 2022-11-23T01:19:38.8277140Z [ RUN ] SequentialTest.ConstructsFromConcreteType 2022-11-23T01:19:38.8278121Z [ OK ] SequentialTest.ConstructsFromConcreteType (0 ms) 2022-11-23T01:19:38.8278744Z [ RUN ] SequentialTest.ConstructsFromModuleHolder 2022-11-23T01:19:38.8279506Z [ OK ] SequentialTest.ConstructsFromModuleHolder (0 ms) 2022-11-23T01:19:38.8280101Z [ RUN ] SequentialTest.PushBackAddsAnElement 2022-11-23T01:19:38.8286275Z [ OK ] SequentialTest.PushBackAddsAnElement (0 ms) 2022-11-23T01:19:38.8286837Z [ RUN ] SequentialTest.AccessWithAt 2022-11-23T01:19:38.8319394Z [ OK ] SequentialTest.AccessWithAt (3 ms) 2022-11-23T01:19:38.8319921Z [ RUN ] SequentialTest.AccessWithPtr 2022-11-23T01:19:38.8349548Z [ OK ] SequentialTest.AccessWithPtr (2 ms) 2022-11-23T01:19:38.8350191Z [ RUN ] SequentialTest.CallingForwardOnEmptySequentialIsDisallowed 2022-11-23T01:19:38.8366086Z [ OK ] SequentialTest.CallingForwardOnEmptySequentialIsDisallowed (1 ms) 2022-11-23T01:19:38.8366699Z [ RUN ] SequentialTest.CallingForwardChainsCorrectly 2022-11-23T01:19:38.8367653Z [ OK ] SequentialTest.CallingForwardChainsCorrectly (0 ms) 2022-11-23T01:19:38.8368195Z [ RUN ] SequentialTest.CallingForwardWithTheWrongReturnTypeThrows 2022-11-23T01:19:38.8384797Z [ OK ] SequentialTest.CallingForwardWithTheWrongReturnTypeThrows (1 ms) 2022-11-23T01:19:38.8385534Z [ RUN ] SequentialTest.TheReturnTypeOfForwardDefaultsToTensor 2022-11-23T01:19:38.8386369Z [ OK ] SequentialTest.TheReturnTypeOfForwardDefaultsToTensor (0 ms) 2022-11-23T01:19:38.8387009Z [ RUN ] SequentialTest.ForwardReturnsTheLastValue 2022-11-23T01:19:38.8426152Z [ OK ] SequentialTest.ForwardReturnsTheLastValue (3 ms) 2022-11-23T01:19:38.8426754Z [ RUN ] SequentialTest.SanityCheckForHoldingStandardModules 2022-11-23T01:19:38.8440544Z [ OK ] SequentialTest.SanityCheckForHoldingStandardModules (1 ms) 2022-11-23T01:19:38.8441234Z [ RUN ] SequentialTest.ExtendPushesModulesFromOtherSequential 2022-11-23T01:19:38.8442383Z [ OK ] SequentialTest.ExtendPushesModulesFromOtherSequential (0 ms) 2022-11-23T01:19:38.8442997Z [ RUN ] SequentialTest.HasReferenceSemantics 2022-11-23T01:19:38.8446116Z [ OK ] SequentialTest.HasReferenceSemantics (0 ms) 2022-11-23T01:19:38.8446707Z [ RUN ] SequentialTest.IsCloneable 2022-11-23T01:19:38.8497766Z [ OK ] SequentialTest.IsCloneable (5 ms) 2022-11-23T01:19:38.8498375Z [ RUN ] SequentialTest.RegistersElementsAsSubmodules 2022-11-23T01:19:38.8503651Z [ OK ] SequentialTest.RegistersElementsAsSubmodules (0 ms) 2022-11-23T01:19:38.8504116Z [ RUN ] SequentialTest.PrettyPrintSequential 2022-11-23T01:19:38.8531603Z [ OK ] SequentialTest.PrettyPrintSequential (2 ms) 2022-11-23T01:19:38.8532224Z [ RUN ] SequentialTest.ModuleForwardMethodOptionalArg 2022-11-23T01:19:38.8935652Z [ OK ] SequentialTest.ModuleForwardMethodOptionalArg (40 ms) 2022-11-23T01:19:38.8936144Z [----------] 19 tests from SequentialTest (66 ms total) 2022-11-23T01:19:38.8936305Z 2022-11-23T01:19:38.8936473Z [----------] 11 tests from TransformerTest 2022-11-23T01:19:38.8936800Z [ RUN ] TransformerTest.TransformerEncoderLayer 2022-11-23T01:19:39.0002159Z [ OK ] TransformerTest.TransformerEncoderLayer (106 ms) 2022-11-23T01:19:39.0002581Z [ RUN ] TransformerTest.TransformerDecoderLayer 2022-11-23T01:19:39.1223604Z [ OK ] TransformerTest.TransformerDecoderLayer (122 ms) 2022-11-23T01:19:39.1224034Z [ RUN ] TransformerTest.TransformerDecoderLayer_gelu 2022-11-23T01:19:39.1857288Z [ OK ] TransformerTest.TransformerDecoderLayer_gelu (63 ms) 2022-11-23T01:19:39.1857978Z [ RUN ] TransformerTest.TransformerEncoder 2022-11-23T01:19:39.4170955Z [ OK ] TransformerTest.TransformerEncoder (231 ms) 2022-11-23T01:19:39.4171475Z [ RUN ] TransformerTest.PrettyPrintTransformerEncoderLayer 2022-11-23T01:19:39.4189533Z [ OK ] TransformerTest.PrettyPrintTransformerEncoderLayer (1 ms) 2022-11-23T01:19:39.4190190Z [ RUN ] TransformerTest.PrettyPrintTransformerEncoder 2022-11-23T01:19:39.4294830Z [ OK ] TransformerTest.PrettyPrintTransformerEncoder (10 ms) 2022-11-23T01:19:39.4295476Z [ RUN ] TransformerTest.PrettyPrintTransformerDecoderLayer 2022-11-23T01:19:39.4316745Z [ OK ] TransformerTest.PrettyPrintTransformerDecoderLayer (2 ms) 2022-11-23T01:19:39.4317326Z [ RUN ] TransformerTest.TransformerDecoder 2022-11-23T01:19:40.1154206Z [ OK ] TransformerTest.TransformerDecoder (683 ms) 2022-11-23T01:19:40.1154703Z [ RUN ] TransformerTest.PrettyPrintTransformerDecoder 2022-11-23T01:19:40.1279620Z [ OK ] TransformerTest.PrettyPrintTransformerDecoder (12 ms) 2022-11-23T01:19:40.1280185Z [ RUN ] TransformerTest.Transformer 2022-11-23T01:19:40.3952773Z [ OK ] TransformerTest.Transformer (267 ms) 2022-11-23T01:19:40.3953258Z [ RUN ] TransformerTest.TransformerArgsCorrectness 2022-11-23T01:19:40.4114864Z [ OK ] TransformerTest.TransformerArgsCorrectness (16 ms) 2022-11-23T01:19:40.4115627Z [----------] 11 tests from TransformerTest (1517 ms total) 2022-11-23T01:19:40.4115799Z 2022-11-23T01:19:40.4115957Z [----------] 23 tests from SerializeTest 2022-11-23T01:19:40.4116253Z [ RUN ] SerializeTest.KeysFunc 2022-11-23T01:19:40.4139990Z [ OK ] SerializeTest.KeysFunc (2 ms) 2022-11-23T01:19:40.4140337Z [ RUN ] SerializeTest.TryReadFunc 2022-11-23T01:19:40.4160883Z [ OK ] SerializeTest.TryReadFunc (2 ms) 2022-11-23T01:19:40.4161166Z [ RUN ] SerializeTest.Basic 2022-11-23T01:19:40.4186368Z [ OK ] SerializeTest.Basic (2 ms) 2022-11-23T01:19:40.4186682Z [ RUN ] SerializeTest.MathBits 2022-11-23T01:19:40.4352586Z [ OK ] SerializeTest.MathBits (16 ms) 2022-11-23T01:19:40.4352891Z [ RUN ] SerializeTest.BasicToFile 2022-11-23T01:19:40.4379819Z [ OK ] SerializeTest.BasicToFile (2 ms) 2022-11-23T01:19:40.4380389Z [ RUN ] SerializeTest.BasicViaFunc 2022-11-23T01:19:40.4425661Z [ OK ] SerializeTest.BasicViaFunc (4 ms) 2022-11-23T01:19:40.4425957Z [ RUN ] SerializeTest.Resized 2022-11-23T01:19:40.4451524Z [ OK ] SerializeTest.Resized (2 ms) 2022-11-23T01:19:40.4452062Z [ RUN ] SerializeTest.Sliced 2022-11-23T01:19:40.4477783Z [ OK ] SerializeTest.Sliced (2 ms) 2022-11-23T01:19:40.4478290Z [ RUN ] SerializeTest.NonContiguous 2022-11-23T01:19:40.4503348Z [ OK ] SerializeTest.NonContiguous (2 ms) 2022-11-23T01:19:40.4503914Z [ RUN ] SerializeTest.ErrorOnMissingKey 2022-11-23T01:19:40.4658197Z [ OK ] SerializeTest.ErrorOnMissingKey (15 ms) 2022-11-23T01:19:40.4658708Z [ RUN ] SerializeTest.XOR 2022-11-23T01:19:43.0342942Z [ OK ] SerializeTest.XOR (2568 ms) 2022-11-23T01:19:43.0343271Z [ RUN ] SerializeTest.Optim 2022-11-23T01:19:43.0637663Z [ OK ] SerializeTest.Optim (29 ms) 2022-11-23T01:19:43.0638234Z [ RUN ] SerializeTest.Optim_Adagrad 2022-11-23T01:19:43.1014516Z [ OK ] SerializeTest.Optim_Adagrad (37 ms) 2022-11-23T01:19:43.1015024Z [ RUN ] SerializeTest.Optim_SGD 2022-11-23T01:19:43.1358487Z [ OK ] SerializeTest.Optim_SGD (34 ms) 2022-11-23T01:19:43.1359049Z [ RUN ] SerializeTest.Optim_Adam 2022-11-23T01:19:43.1808044Z [ OK ] SerializeTest.Optim_Adam (44 ms) 2022-11-23T01:19:43.1808342Z [ RUN ] SerializeTest.Optim_AdamW 2022-11-23T01:19:43.2267364Z [ OK ] SerializeTest.Optim_AdamW (45 ms) 2022-11-23T01:19:43.2267679Z [ RUN ] SerializeTest.Optim_RMSprop 2022-11-23T01:19:43.2717268Z [ OK ] SerializeTest.Optim_RMSprop (44 ms) 2022-11-23T01:19:43.2717564Z [ RUN ] SerializeTest.Optim_LBFGS 2022-11-23T01:19:43.3139693Z [ OK ] SerializeTest.Optim_LBFGS (42 ms) 2022-11-23T01:19:43.3140273Z [ RUN ] SerializeTest.CanSerializeModulesWithIntermediateModulesWithoutParametersOrBuffers 2022-11-23T01:19:43.3197198Z [ OK ] SerializeTest.CanSerializeModulesWithIntermediateModulesWithoutParametersOrBuffers (5 ms) 2022-11-23T01:19:43.3197784Z [ RUN ] SerializeTest.VectorOfTensors 2022-11-23T01:19:43.3229547Z [ OK ] SerializeTest.VectorOfTensors (3 ms) 2022-11-23T01:19:43.3230119Z [ RUN ] SerializeTest.IValue 2022-11-23T01:19:43.3246931Z [ OK ] SerializeTest.IValue (1 ms) 2022-11-23T01:19:43.3247666Z [ RUN ] SerializeTest.UnserializableSubmoduleIsSkippedWhenSavingModule 2022-11-23T01:19:43.3261106Z [ OK ] SerializeTest.UnserializableSubmoduleIsSkippedWhenSavingModule (1 ms) 2022-11-23T01:19:43.3261866Z [ RUN ] SerializeTest.UnserializableSubmoduleIsIgnoredWhenLoadingModule 2022-11-23T01:19:43.3319301Z [ OK ] SerializeTest.UnserializableSubmoduleIsIgnoredWhenLoadingModule (5 ms) 2022-11-23T01:19:43.3320030Z [----------] 23 tests from SerializeTest (2920 ms total) 2022-11-23T01:19:43.3320198Z 2022-11-23T01:19:43.3320441Z [----------] 1 test from SpecialTest 2022-11-23T01:19:43.3320844Z [ RUN ] SpecialTest.special 2022-11-23T01:19:43.3322052Z [ OK ] SpecialTest.special (0 ms) 2022-11-23T01:19:43.3322564Z [----------] 1 test from SpecialTest (0 ms total) 2022-11-23T01:19:43.3322798Z 2022-11-23T01:19:43.3323019Z [----------] 5 tests from TestStatic 2022-11-23T01:19:43.3323513Z [ RUN ] TestStatic.AllOf 2022-11-23T01:19:43.3323948Z [ OK ] TestStatic.AllOf (0 ms) 2022-11-23T01:19:43.3324291Z [ RUN ] TestStatic.AnyOf 2022-11-23T01:19:43.3324693Z [ OK ] TestStatic.AnyOf (0 ms) 2022-11-23T01:19:43.3325136Z [ RUN ] TestStatic.EnableIfModule 2022-11-23T01:19:43.3328546Z [ OK ] TestStatic.EnableIfModule (0 ms) 2022-11-23T01:19:43.3329142Z [ RUN ] TestStatic.ReturnTypeOfForward 2022-11-23T01:19:43.3329724Z [ OK ] TestStatic.ReturnTypeOfForward (0 ms) 2022-11-23T01:19:43.3330381Z [ RUN ] TestStatic.Apply 2022-11-23T01:19:43.3330827Z [ OK ] TestStatic.Apply (0 ms) 2022-11-23T01:19:43.3331324Z [----------] 5 tests from TestStatic (0 ms total) 2022-11-23T01:19:43.3331570Z 2022-11-23T01:19:43.3331818Z [----------] 45 tests from TensorTest 2022-11-23T01:19:43.3332242Z [ RUN ] TensorTest.ToDtype 2022-11-23T01:19:43.3332689Z [ OK ] TensorTest.ToDtype (0 ms) 2022-11-23T01:19:43.3333260Z [ RUN ] TensorTest.ToTensorAndTensorAttributes 2022-11-23T01:19:43.3333930Z [ OK ] TensorTest.ToTensorAndTensorAttributes (0 ms) 2022-11-23T01:19:43.3334563Z [ RUN ] TensorTest.ToOptionsWithRequiresGrad 2022-11-23T01:19:43.3367830Z [ OK ] TensorTest.ToOptionsWithRequiresGrad (3 ms) 2022-11-23T01:19:43.3368560Z [ RUN ] TensorTest.ToDoesNotCopyWhenOptionsAreAllTheSame 2022-11-23T01:19:43.3369321Z [ OK ] TensorTest.ToDoesNotCopyWhenOptionsAreAllTheSame (0 ms) 2022-11-23T01:19:43.3369960Z [ RUN ] TensorTest.AtTensorCtorScalar 2022-11-23T01:19:43.3377292Z [ OK ] TensorTest.AtTensorCtorScalar (0 ms) 2022-11-23T01:19:43.3378041Z [ RUN ] TensorTest.AtTensorCtorSingleDim 2022-11-23T01:19:43.3389079Z [ OK ] TensorTest.AtTensorCtorSingleDim (1 ms) 2022-11-23T01:19:43.3389727Z [ RUN ] TensorTest.AtTensorCastRealToComplex 2022-11-23T01:19:43.3391910Z [ OK ] TensorTest.AtTensorCastRealToComplex (0 ms) 2022-11-23T01:19:43.3392631Z [ RUN ] TensorTest.AtTensorCastComplexToRealErrorChecks 2022-11-23T01:19:43.3466395Z [ OK ] TensorTest.AtTensorCastComplexToRealErrorChecks (7 ms) 2022-11-23T01:19:43.3467121Z [ RUN ] TensorTest.TorchTensorCtorScalarIntegralType 2022-11-23T01:19:43.3467550Z [ OK ] TensorTest.TorchTensorCtorScalarIntegralType (0 ms) 2022-11-23T01:19:43.3467965Z [ RUN ] TensorTest.TorchTensorCtorScalarFloatingType 2022-11-23T01:19:43.3469564Z [ OK ] TensorTest.TorchTensorCtorScalarFloatingType (0 ms) 2022-11-23T01:19:43.3470005Z [ RUN ] TensorTest.TorchTensorCtorScalarBoolType 2022-11-23T01:19:43.3471066Z [ OK ] TensorTest.TorchTensorCtorScalarBoolType (0 ms) 2022-11-23T01:19:43.3471489Z [ RUN ] TensorTest.TorchTensorCtorSingleDimIntegralType 2022-11-23T01:19:43.3477108Z [ OK ] TensorTest.TorchTensorCtorSingleDimIntegralType (0 ms) 2022-11-23T01:19:43.3477544Z [ RUN ] TensorTest.TorchTensorCtorSingleDimFloatingType 2022-11-23T01:19:43.3491066Z [ OK ] TensorTest.TorchTensorCtorSingleDimFloatingType (1 ms) 2022-11-23T01:19:43.3491588Z [ RUN ] TensorTest.TorchTensorCtorSingleDimBoolType 2022-11-23T01:19:43.3494220Z [ OK ] TensorTest.TorchTensorCtorSingleDimBoolType (0 ms) 2022-11-23T01:19:43.3494643Z [ RUN ] TensorTest.TorchTensorCtorMultiDimIntegralType 2022-11-23T01:19:43.3557164Z [ OK ] TensorTest.TorchTensorCtorMultiDimIntegralType (6 ms) 2022-11-23T01:19:43.3557582Z [ RUN ] TensorTest.TorchTensorCtorMultiDimFloatingType 2022-11-23T01:19:43.3595268Z [ OK ] TensorTest.TorchTensorCtorMultiDimFloatingType (3 ms) 2022-11-23T01:19:43.3595740Z [ RUN ] TensorTest.TorchTensorCtorMultiDimBoolType 2022-11-23T01:19:43.3600011Z [ OK ] TensorTest.TorchTensorCtorMultiDimBoolType (0 ms) 2022-11-23T01:19:43.3600434Z [ RUN ] TensorTest.TorchTensorCtorMultiDimWithOptions 2022-11-23T01:19:43.3616039Z [ OK ] TensorTest.TorchTensorCtorMultiDimWithOptions (1 ms) 2022-11-23T01:19:43.3616467Z [ RUN ] TensorTest.TorchTensorCtorMultiDimErrorChecks 2022-11-23T01:19:43.3695335Z [ OK ] TensorTest.TorchTensorCtorMultiDimErrorChecks (7 ms) 2022-11-23T01:19:43.3695872Z [ RUN ] TensorTest.TorchTensorCastRealToComplex 2022-11-23T01:19:43.3698750Z [ OK ] TensorTest.TorchTensorCastRealToComplex (0 ms) 2022-11-23T01:19:43.3699185Z [ RUN ] TensorTest.TorchTensorCastComplexToRealErrorChecks 2022-11-23T01:19:43.3702131Z [W Copy.cpp:275] Warning: Casting complex values to real discards the imaginary part (function operator()) 2022-11-23T01:19:43.3720043Z [ OK ] TensorTest.TorchTensorCastComplexToRealErrorChecks (2 ms) 2022-11-23T01:19:43.3720472Z [ RUN ] TensorTest.TorchTensorCtorZeroSizedDim 2022-11-23T01:19:43.3737436Z [ OK ] TensorTest.TorchTensorCtorZeroSizedDim (1 ms) 2022-11-23T01:19:43.3737907Z [ RUN ] TensorTest.TorchTensorCtorWithoutSpecifyingDtype 2022-11-23T01:19:43.3748344Z [ OK ] TensorTest.TorchTensorCtorWithoutSpecifyingDtype (1 ms) 2022-11-23T01:19:43.3748895Z [ RUN ] TensorTest.TorchTensorCtorWithNonDtypeOptions 2022-11-23T01:19:43.3758271Z [ OK ] TensorTest.TorchTensorCtorWithNonDtypeOptions (0 ms) 2022-11-23T01:19:43.3758748Z [ RUN ] TensorTest.Arange 2022-11-23T01:19:43.3759588Z [ OK ] TensorTest.Arange (0 ms) 2022-11-23T01:19:43.3759999Z [ RUN ] TensorTest.PrettyPrintTensorDataContainer 2022-11-23T01:19:43.3763126Z [ OK ] TensorTest.PrettyPrintTensorDataContainer (0 ms) 2022-11-23T01:19:43.3763839Z [ RUN ] TensorTest.TensorDataContainerCallingAccessorOfWrongType 2022-11-23T01:19:43.3850428Z [ OK ] TensorTest.TensorDataContainerCallingAccessorOfWrongType (8 ms) 2022-11-23T01:19:43.3850975Z [ RUN ] TensorTest.FromBlob 2022-11-23T01:19:43.3852564Z [ OK ] TensorTest.FromBlob (0 ms) 2022-11-23T01:19:43.3853240Z [ RUN ] TensorTest.FromBlobUsesDeleter 2022-11-23T01:19:43.3853638Z [ OK ] TensorTest.FromBlobUsesDeleter (0 ms) 2022-11-23T01:19:43.3853951Z [ RUN ] TensorTest.FromBlobWithStrides 2022-11-23T01:19:43.3856448Z [ OK ] TensorTest.FromBlobWithStrides (0 ms) 2022-11-23T01:19:43.3857035Z [ RUN ] TensorTest.Item 2022-11-23T01:19:43.3857507Z [ OK ] TensorTest.Item (0 ms) 2022-11-23T01:19:43.3857789Z [ RUN ] TensorTest.DataPtr 2022-11-23T01:19:43.3858069Z [ OK ] TensorTest.DataPtr (0 ms) 2022-11-23T01:19:43.3858445Z [ RUN ] TensorTest.Data 2022-11-23T01:19:43.3859082Z [ OK ] TensorTest.Data (0 ms) 2022-11-23T01:19:43.3859440Z [ RUN ] TensorTest.BackwardAndGrad 2022-11-23T01:19:43.3864977Z [ OK ] TensorTest.BackwardAndGrad (0 ms) 2022-11-23T01:19:43.3865300Z [ RUN ] TensorTest.BackwardCreatesOnesGrad 2022-11-23T01:19:43.3868485Z [ OK ] TensorTest.BackwardCreatesOnesGrad (0 ms) 2022-11-23T01:19:43.3868851Z [ RUN ] TensorTest.BackwardNonScalarOutputs 2022-11-23T01:19:43.3904450Z [ OK ] TensorTest.BackwardNonScalarOutputs (3 ms) 2022-11-23T01:19:43.3904748Z [ RUN ] TensorTest.IsLeaf 2022-11-23T01:19:43.3906076Z [ OK ] TensorTest.IsLeaf (0 ms) 2022-11-23T01:19:43.3906358Z [ RUN ] TensorTest.OutputNr 2022-11-23T01:19:43.3907906Z [ OK ] TensorTest.OutputNr (0 ms) 2022-11-23T01:19:43.3908270Z [ RUN ] TensorTest.Version 2022-11-23T01:19:43.3910765Z [ OK ] TensorTest.Version (0 ms) 2022-11-23T01:19:43.3911073Z [ RUN ] TensorTest.Detach 2022-11-23T01:19:43.3912545Z [ OK ] TensorTest.Detach (0 ms) 2022-11-23T01:19:43.3912940Z [ RUN ] TensorTest.DetachInplace 2022-11-23T01:19:43.3914256Z [ OK ] TensorTest.DetachInplace (0 ms) 2022-11-23T01:19:43.3914570Z [ RUN ] TensorTest.SetData 2022-11-23T01:19:43.3915850Z [ OK ] TensorTest.SetData (0 ms) 2022-11-23T01:19:43.3916157Z [ RUN ] TensorTest.RequiresGradInplace 2022-11-23T01:19:43.3946676Z [ OK ] TensorTest.RequiresGradInplace (3 ms) 2022-11-23T01:19:43.3946988Z [ RUN ] TensorTest.StdDimension 2022-11-23T01:19:43.3959168Z [ OK ] TensorTest.StdDimension (1 ms) 2022-11-23T01:19:43.3959486Z [ RUN ] TensorTest.ReshapeAlias 2022-11-23T01:19:43.3981204Z [ OK ] TensorTest.ReshapeAlias (2 ms) 2022-11-23T01:19:43.3981692Z [----------] 45 tests from TensorTest (65 ms total) 2022-11-23T01:19:43.3981850Z 2022-11-23T01:19:43.3982020Z [----------] 36 tests from TensorIndexingTest 2022-11-23T01:19:43.3982323Z [ RUN ] TensorIndexingTest.Slice 2022-11-23T01:19:43.3982616Z [ OK ] TensorIndexingTest.Slice (0 ms) 2022-11-23T01:19:43.3982930Z [ RUN ] TensorIndexingTest.TensorIndex 2022-11-23T01:19:43.4001338Z [ OK ] TensorIndexingTest.TensorIndex (1 ms) 2022-11-23T01:19:43.4001699Z [ RUN ] TensorIndexingTest.TestNoIndices 2022-11-23T01:19:43.4118983Z [ OK ] TensorIndexingTest.TestNoIndices (11 ms) 2022-11-23T01:19:43.4119413Z [ RUN ] TensorIndexingTest.TestAdvancedIndexingWithListOfTensor 2022-11-23T01:19:43.4131189Z [ OK ] TensorIndexingTest.TestAdvancedIndexingWithListOfTensor (1 ms) 2022-11-23T01:19:43.4131733Z [ RUN ] TensorIndexingTest.TestSingleInt 2022-11-23T01:19:43.4132745Z [ OK ] TensorIndexingTest.TestSingleInt (0 ms) 2022-11-23T01:19:43.4133101Z [ RUN ] TensorIndexingTest.TestMultipleInt 2022-11-23T01:19:43.4137148Z [ OK ] TensorIndexingTest.TestMultipleInt (0 ms) 2022-11-23T01:19:43.4137677Z [ RUN ] TensorIndexingTest.TestNone 2022-11-23T01:19:43.4139603Z [ OK ] TensorIndexingTest.TestNone (0 ms) 2022-11-23T01:19:43.4140182Z [ RUN ] TensorIndexingTest.TestStep 2022-11-23T01:19:43.4150595Z [ OK ] TensorIndexingTest.TestStep (1 ms) 2022-11-23T01:19:43.4151224Z [ RUN ] TensorIndexingTest.TestStepAssignment 2022-11-23T01:19:43.4160785Z [ OK ] TensorIndexingTest.TestStepAssignment (0 ms) 2022-11-23T01:19:43.4161360Z [ RUN ] TensorIndexingTest.TestBoolIndices 2022-11-23T01:19:43.4182040Z [ OK ] TensorIndexingTest.TestBoolIndices (2 ms) 2022-11-23T01:19:43.4182646Z [ RUN ] TensorIndexingTest.TestBoolIndicesAccumulate 2022-11-23T01:19:43.4187818Z [ OK ] TensorIndexingTest.TestBoolIndicesAccumulate (0 ms) 2022-11-23T01:19:43.4188501Z [ RUN ] TensorIndexingTest.TestMultipleBoolIndices 2022-11-23T01:19:43.4193953Z [ OK ] TensorIndexingTest.TestMultipleBoolIndices (0 ms) 2022-11-23T01:19:43.4194531Z [ RUN ] TensorIndexingTest.TestByteMask 2022-11-23T01:19:43.4206436Z [ OK ] TensorIndexingTest.TestByteMask (1 ms) 2022-11-23T01:19:43.4207031Z [ RUN ] TensorIndexingTest.TestByteMaskAccumulate 2022-11-23T01:19:43.4212386Z [ OK ] TensorIndexingTest.TestByteMaskAccumulate (0 ms) 2022-11-23T01:19:43.4212988Z [ RUN ] TensorIndexingTest.TestMultipleByteMask 2022-11-23T01:19:43.4218711Z [ OK ] TensorIndexingTest.TestMultipleByteMask (0 ms) 2022-11-23T01:19:43.4219313Z [ RUN ] TensorIndexingTest.TestByteMask2d 2022-11-23T01:19:43.4224830Z [ OK ] TensorIndexingTest.TestByteMask2d (0 ms) 2022-11-23T01:19:43.4225401Z [ RUN ] TensorIndexingTest.TestIntIndices 2022-11-23T01:19:43.4233573Z [ OK ] TensorIndexingTest.TestIntIndices (0 ms) 2022-11-23T01:19:43.4234147Z [ RUN ] TensorIndexingTest.TestIntIndices2d 2022-11-23T01:19:43.4240802Z [ OK ] TensorIndexingTest.TestIntIndices2d (0 ms) 2022-11-23T01:19:43.4241390Z [ RUN ] TensorIndexingTest.TestIntIndicesBroadcast 2022-11-23T01:19:43.4247321Z [ OK ] TensorIndexingTest.TestIntIndicesBroadcast (0 ms) 2022-11-23T01:19:43.4248056Z [ RUN ] TensorIndexingTest.TestEmptyIndex 2022-11-23T01:19:43.4253036Z [ OK ] TensorIndexingTest.TestEmptyIndex (0 ms) 2022-11-23T01:19:43.4253387Z [ RUN ] TensorIndexingTest.TestEmptyNdimIndex 2022-11-23T01:19:43.4313748Z [ OK ] TensorIndexingTest.TestEmptyNdimIndex (6 ms) 2022-11-23T01:19:43.4314142Z [ RUN ] TensorIndexingTest.TestEmptyNdimIndexBool 2022-11-23T01:19:43.4338458Z [ OK ] TensorIndexingTest.TestEmptyNdimIndexBool (2 ms) 2022-11-23T01:19:43.4338943Z [ RUN ] TensorIndexingTest.TestEmptySlice 2022-11-23T01:19:43.4341755Z [ OK ] TensorIndexingTest.TestEmptySlice (0 ms) 2022-11-23T01:19:43.4342167Z [ RUN ] TensorIndexingTest.TestIndexGetitemCopyBoolsSlices 2022-11-23T01:19:43.4353829Z [ OK ] TensorIndexingTest.TestIndexGetitemCopyBoolsSlices (1 ms) 2022-11-23T01:19:43.4354262Z [ RUN ] TensorIndexingTest.TestIndexSetitemBoolsSlices 2022-11-23T01:19:43.4483005Z [ OK ] TensorIndexingTest.TestIndexSetitemBoolsSlices (12 ms) 2022-11-23T01:19:43.4483454Z [ RUN ] TensorIndexingTest.TestIndexScalarWithBoolMask 2022-11-23T01:19:43.4495976Z [ OK ] TensorIndexingTest.TestIndexScalarWithBoolMask (1 ms) 2022-11-23T01:19:43.4496413Z [ RUN ] TensorIndexingTest.TestSetitemExpansionError 2022-11-23T01:19:43.4642210Z [ OK ] TensorIndexingTest.TestSetitemExpansionError (14 ms) 2022-11-23T01:19:43.4642634Z [ RUN ] TensorIndexingTest.TestGetitemScalars 2022-11-23T01:19:43.4774556Z [ OK ] TensorIndexingTest.TestGetitemScalars (13 ms) 2022-11-23T01:19:43.4774957Z [ RUN ] TensorIndexingTest.TestSetitemScalars 2022-11-23T01:19:43.4910347Z [ OK ] TensorIndexingTest.TestSetitemScalars (13 ms) 2022-11-23T01:19:43.4910750Z [ RUN ] TensorIndexingTest.TestBasicAdvancedCombined 2022-11-23T01:19:43.4925670Z [ OK ] TensorIndexingTest.TestBasicAdvancedCombined (1 ms) 2022-11-23T01:19:43.4926097Z [ RUN ] TensorIndexingTest.TestIntAssignment 2022-11-23T01:19:43.4933158Z [ OK ] TensorIndexingTest.TestIntAssignment (0 ms) 2022-11-23T01:19:43.4933718Z [ RUN ] TensorIndexingTest.TestByteTensorAssignment 2022-11-23T01:19:43.4948507Z [ OK ] TensorIndexingTest.TestByteTensorAssignment (1 ms) 2022-11-23T01:19:43.4949046Z [ RUN ] TensorIndexingTest.TestVariableSlicing 2022-11-23T01:19:43.4952193Z [ OK ] TensorIndexingTest.TestVariableSlicing (0 ms) 2022-11-23T01:19:43.4952563Z [ RUN ] TensorIndexingTest.TestEllipsisTensor 2022-11-23T01:19:43.4961415Z [ OK ] TensorIndexingTest.TestEllipsisTensor (0 ms) 2022-11-23T01:19:43.4961797Z [ RUN ] TensorIndexingTest.TestOutOfBoundIndex 2022-11-23T01:19:43.5071937Z [ OK ] TensorIndexingTest.TestOutOfBoundIndex (10 ms) 2022-11-23T01:19:43.5072329Z [ RUN ] TensorIndexingTest.TestZeroDimIndex 2022-11-23T01:19:43.5096280Z [ OK ] TensorIndexingTest.TestZeroDimIndex (2 ms) 2022-11-23T01:19:43.5096713Z [----------] 36 tests from TensorIndexingTest (111 ms total) 2022-11-23T01:19:43.5096883Z 2022-11-23T01:19:43.5097022Z [----------] 18 tests from NumpyTests 2022-11-23T01:19:43.5097306Z [ RUN ] NumpyTests.TestNoneIndex 2022-11-23T01:19:43.5098738Z [ OK ] NumpyTests.TestNoneIndex (0 ms) 2022-11-23T01:19:43.5099062Z [ RUN ] NumpyTests.TestEmptyFancyIndex 2022-11-23T01:19:43.5151278Z [ OK ] NumpyTests.TestEmptyFancyIndex (5 ms) 2022-11-23T01:19:43.5151664Z [ RUN ] NumpyTests.TestEllipsisIndex 2022-11-23T01:19:43.5162627Z [ OK ] NumpyTests.TestEllipsisIndex (1 ms) 2022-11-23T01:19:43.5162942Z [ RUN ] NumpyTests.TestSingleIntIndex 2022-11-23T01:19:43.5194868Z [ OK ] NumpyTests.TestSingleIntIndex (3 ms) 2022-11-23T01:19:43.5195242Z [ RUN ] NumpyTests.TestSingleBoolIndex 2022-11-23T01:19:43.5202129Z [ OK ] NumpyTests.TestSingleBoolIndex (0 ms) 2022-11-23T01:19:43.5202470Z [ RUN ] NumpyTests.TestBooleanShapeMismatch 2022-11-23T01:19:43.5412695Z [ OK ] NumpyTests.TestBooleanShapeMismatch (20 ms) 2022-11-23T01:19:43.5413077Z [ RUN ] NumpyTests.TestBooleanIndexingOnedim 2022-11-23T01:19:43.5422208Z [ OK ] NumpyTests.TestBooleanIndexingOnedim (0 ms) 2022-11-23T01:19:43.5422618Z [ RUN ] NumpyTests.TestBooleanAssignmentValueMismatch 2022-11-23T01:19:43.5630312Z [ OK ] NumpyTests.TestBooleanAssignmentValueMismatch (20 ms) 2022-11-23T01:19:43.5630715Z [ RUN ] NumpyTests.TestBooleanIndexingTwodim 2022-11-23T01:19:43.5650680Z [ OK ] NumpyTests.TestBooleanIndexingTwodim (2 ms) 2022-11-23T01:19:43.5651073Z [ RUN ] NumpyTests.TestBooleanIndexingWeirdness 2022-11-23T01:19:43.5766741Z [ OK ] NumpyTests.TestBooleanIndexingWeirdness (11 ms) 2022-11-23T01:19:43.5767147Z [ RUN ] NumpyTests.TestBooleanIndexingWeirdnessTensors 2022-11-23T01:19:43.5882153Z [ OK ] NumpyTests.TestBooleanIndexingWeirdnessTensors (11 ms) 2022-11-23T01:19:43.5882795Z [ RUN ] NumpyTests.TestBooleanIndexingAlldims 2022-11-23T01:19:43.5886683Z [ OK ] NumpyTests.TestBooleanIndexingAlldims (0 ms) 2022-11-23T01:19:43.5887261Z [ RUN ] NumpyTests.TestBooleanListIndexing 2022-11-23T01:19:43.5906872Z [ OK ] NumpyTests.TestBooleanListIndexing (1 ms) 2022-11-23T01:19:43.5907546Z [ RUN ] NumpyTests.TestEverythingReturnsViews 2022-11-23T01:19:43.5908437Z [ OK ] NumpyTests.TestEverythingReturnsViews (0 ms) 2022-11-23T01:19:43.5909060Z [ RUN ] NumpyTests.TestBroaderrorsIndexing 2022-11-23T01:19:43.6158436Z [ OK ] NumpyTests.TestBroaderrorsIndexing (24 ms) 2022-11-23T01:19:43.6159018Z [ RUN ] NumpyTests.TestTrivialFancyOutOfBounds 2022-11-23T01:19:43.6484491Z [ OK ] NumpyTests.TestTrivialFancyOutOfBounds (32 ms) 2022-11-23T01:19:43.6485081Z [ RUN ] NumpyTests.TestIndexIsLarger 2022-11-23T01:19:43.6491816Z [ OK ] NumpyTests.TestIndexIsLarger (0 ms) 2022-11-23T01:19:43.6492285Z [ RUN ] NumpyTests.TestBroadcastSubspace 2022-11-23T01:19:43.6515311Z [ OK ] NumpyTests.TestBroadcastSubspace (2 ms) 2022-11-23T01:19:43.6515911Z [----------] 18 tests from NumpyTests (141 ms total) 2022-11-23T01:19:43.6516219Z 2022-11-23T01:19:43.6516463Z [----------] 5 tests from TensorOptionsTest 2022-11-23T01:19:43.6516887Z [ RUN ] TensorOptionsTest.DefaultsToTheRightValues 2022-11-23T01:19:43.6517502Z [ OK ] TensorOptionsTest.DefaultsToTheRightValues (0 ms) 2022-11-23T01:19:43.6518220Z [ RUN ] TensorOptionsTest.UtilityFunctionsReturnTheRightTensorOptions 2022-11-23T01:19:43.6518872Z [ OK ] TensorOptionsTest.UtilityFunctionsReturnTheRightTensorOptions (0 ms) 2022-11-23T01:19:43.6519458Z [ RUN ] TensorOptionsTest.ConstructsWellFromCPUTypes 2022-11-23T01:19:43.6519878Z [ OK ] TensorOptionsTest.ConstructsWellFromCPUTypes (0 ms) 2022-11-23T01:19:43.6520296Z [ RUN ] TensorOptionsTest.ConstructsWellFromCPUTensors 2022-11-23T01:19:43.6520721Z [ OK ] TensorOptionsTest.ConstructsWellFromCPUTensors (0 ms) 2022-11-23T01:19:43.6521121Z [ RUN ] TensorOptionsTest.ConstructsWellFromVariables 2022-11-23T01:19:43.6521536Z [ OK ] TensorOptionsTest.ConstructsWellFromVariables (0 ms) 2022-11-23T01:19:43.6521923Z [----------] 5 tests from TensorOptionsTest (0 ms total) 2022-11-23T01:19:43.6522086Z 2022-11-23T01:19:43.6522399Z [----------] 1 test from DeviceTest 2022-11-23T01:19:43.6522721Z [ RUN ] DeviceTest.ParsesCorrectlyFromString 2022-11-23T01:19:43.6638114Z [ OK ] DeviceTest.ParsesCorrectlyFromString (11 ms) 2022-11-23T01:19:43.6638812Z [----------] 1 test from DeviceTest (11 ms total) 2022-11-23T01:19:43.6639045Z 2022-11-23T01:19:43.6639310Z [----------] 3 tests from DefaultDtypeTest 2022-11-23T01:19:43.6639760Z [ RUN ] DefaultDtypeTest.CanSetAndGetDefaultDtype 2022-11-23T01:19:43.6640439Z [ OK ] DefaultDtypeTest.CanSetAndGetDefaultDtype (0 ms) 2022-11-23T01:19:43.6641176Z [ RUN ] DefaultDtypeTest.NewTensorOptionsHasCorrectDefault 2022-11-23T01:19:43.6641975Z [ OK ] DefaultDtypeTest.NewTensorOptionsHasCorrectDefault (0 ms) 2022-11-23T01:19:43.6642803Z [ RUN ] DefaultDtypeTest.NewTensorsHaveCorrectDefaultDtype 2022-11-23T01:19:43.6643637Z [ OK ] DefaultDtypeTest.NewTensorsHaveCorrectDefaultDtype (0 ms) 2022-11-23T01:19:43.6644366Z [----------] 3 tests from DefaultDtypeTest (0 ms total) 2022-11-23T01:19:43.6644636Z 2022-11-23T01:19:43.6644793Z [----------] 1 test from TorchIncludeTest 2022-11-23T01:19:43.6645258Z [ RUN ] TorchIncludeTest.GetSetNumThreads 2022-11-23T01:19:43.6645595Z [ OK ] TorchIncludeTest.GetSetNumThreads (0 ms) 2022-11-23T01:19:43.6645942Z [----------] 1 test from TorchIncludeTest (0 ms total) 2022-11-23T01:19:43.6646102Z 2022-11-23T01:19:43.6646265Z [----------] 28 tests from InferenceModeTest 2022-11-23T01:19:43.6646577Z [ RUN ] InferenceModeTest.TestTLSState 2022-11-23T01:19:43.6646896Z [ OK ] InferenceModeTest.TestTLSState (0 ms) 2022-11-23T01:19:43.6647270Z [ RUN ] InferenceModeTest.TestInferenceTensorCreation 2022-11-23T01:19:43.6647693Z [ OK ] InferenceModeTest.TestInferenceTensorCreation (0 ms) 2022-11-23T01:19:43.6648098Z [ RUN ] InferenceModeTest.TestExistingAutogradSession 2022-11-23T01:19:43.6719488Z [ OK ] InferenceModeTest.TestExistingAutogradSession (7 ms) 2022-11-23T01:19:43.6720200Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeFunctionalOp 2022-11-23T01:19:43.6721197Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeFunctionalOp (0 ms) 2022-11-23T01:19:43.6721749Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeInplaceOp 2022-11-23T01:19:43.6723094Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeInplaceOp (0 ms) 2022-11-23T01:19:43.6723883Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeViewOp 2022-11-23T01:19:43.6724456Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeViewOp (0 ms) 2022-11-23T01:19:43.6725113Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeFunctionalOp 2022-11-23T01:19:43.6725964Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeFunctionalOp (0 ms) 2022-11-23T01:19:43.6726575Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeInplaceOp 2022-11-23T01:19:43.6785538Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeInplaceOp (5 ms) 2022-11-23T01:19:43.6786277Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeViewOp 2022-11-23T01:19:43.6786857Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeViewOp (0 ms) 2022-11-23T01:19:43.6787382Z [ RUN ] InferenceModeTest.TestNormalTensorInplaceOutputInInferenceMode 2022-11-23T01:19:43.6792938Z [ OK ] InferenceModeTest.TestNormalTensorInplaceOutputInInferenceMode (0 ms) 2022-11-23T01:19:43.6793490Z [ RUN ] InferenceModeTest.TestNormalTensorInplaceOutputInNormalMode 2022-11-23T01:19:43.6799682Z [ OK ] InferenceModeTest.TestNormalTensorInplaceOutputInNormalMode (0 ms) 2022-11-23T01:19:43.6800372Z [ RUN ] InferenceModeTest.TestNormalTensorViewOutputInInferenceMode 2022-11-23T01:19:43.6804308Z [ OK ] InferenceModeTest.TestNormalTensorViewOutputInInferenceMode (0 ms) 2022-11-23T01:19:43.6805037Z [ RUN ] InferenceModeTest.TestNormalTensorViewOutputInNormalMode 2022-11-23T01:19:43.6843226Z [ OK ] InferenceModeTest.TestNormalTensorViewOutputInNormalMode (3 ms) 2022-11-23T01:19:43.6843927Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorFunctionalOp 2022-11-23T01:19:43.6880837Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorFunctionalOp (3 ms) 2022-11-23T01:19:43.6881452Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorInplaceOp 2022-11-23T01:19:43.6977996Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorInplaceOp (9 ms) 2022-11-23T01:19:43.6978724Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorViewOp 2022-11-23T01:19:43.6979870Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorViewOp (0 ms) 2022-11-23T01:19:43.6980370Z [ RUN ] InferenceModeTest.TestHandleDirectViewOnRebase 2022-11-23T01:19:43.7016906Z [ OK ] InferenceModeTest.TestHandleDirectViewOnRebase (3 ms) 2022-11-23T01:19:43.7017488Z [ RUN ] InferenceModeTest.TestHandleInDirectViewOnRebase 2022-11-23T01:19:43.7049736Z [ OK ] InferenceModeTest.TestHandleInDirectViewOnRebase (3 ms) 2022-11-23T01:19:43.7050175Z [ RUN ] InferenceModeTest.TestCreationMetaPropagation 2022-11-23T01:19:43.7118089Z [ OK ] InferenceModeTest.TestCreationMetaPropagation (6 ms) 2022-11-23T01:19:43.7118523Z [ RUN ] InferenceModeTest.TestCreationMetaPropagationInput 2022-11-23T01:19:43.7254561Z [ OK ] InferenceModeTest.TestCreationMetaPropagationInput (13 ms) 2022-11-23T01:19:43.7255029Z [ RUN ] InferenceModeTest.TestInplaceCopyOnInferenceTensor 2022-11-23T01:19:43.7339923Z [ OK ] InferenceModeTest.TestInplaceCopyOnInferenceTensor (8 ms) 2022-11-23T01:19:43.7340372Z [ RUN ] InferenceModeTest.TestSetRequiresGradInNormalMode 2022-11-23T01:19:43.7355557Z [ OK ] InferenceModeTest.TestSetRequiresGradInNormalMode (1 ms) 2022-11-23T01:19:43.7355987Z [ RUN ] InferenceModeTest.TestAccessVersionCounter 2022-11-23T01:19:43.7400256Z [ OK ] InferenceModeTest.TestAccessVersionCounter (4 ms) 2022-11-23T01:19:43.7400810Z [ RUN ] InferenceModeTest.TestInplaceUpdateInferenceTensorWithNormalTensor 2022-11-23T01:19:43.7485692Z [ OK ] InferenceModeTest.TestInplaceUpdateInferenceTensorWithNormalTensor (8 ms) 2022-11-23T01:19:43.7486204Z [ RUN ] InferenceModeTest.TestComplexViewInInferenceMode 2022-11-23T01:19:43.7487741Z [ OK ] InferenceModeTest.TestComplexViewInInferenceMode (0 ms) 2022-11-23T01:19:43.7488317Z [ RUN ] InferenceModeTest.TestComplexViewInNormalMode 2022-11-23T01:19:43.7488801Z [ OK ] InferenceModeTest.TestComplexViewInNormalMode (0 ms) 2022-11-23T01:19:43.7489186Z [ RUN ] InferenceModeTest.TestCustomFunction 2022-11-23T01:19:43.7496303Z [ OK ] InferenceModeTest.TestCustomFunction (0 ms) 2022-11-23T01:19:43.7497133Z [ RUN ] InferenceModeTest.TestLegacyAutoNonVariableTypeModeWarning 2022-11-23T01:19:43.7497735Z [ OK ] InferenceModeTest.TestLegacyAutoNonVariableTypeModeWarning (0 ms) 2022-11-23T01:19:43.7498309Z [----------] 28 tests from InferenceModeTest (85 ms total) 2022-11-23T01:19:43.7498915Z 2022-11-23T01:19:43.7499192Z [----------] 4 tests from GradModeTest 2022-11-23T01:19:43.7499577Z [ RUN ] GradModeTest.TestRequiresGradFunctionalOp 2022-11-23T01:19:43.7499983Z [ OK ] GradModeTest.TestRequiresGradFunctionalOp (0 ms) 2022-11-23T01:19:43.7500521Z [ RUN ] GradModeTest.TestRequiresGradInplaceOp 2022-11-23T01:19:43.7501476Z [ OK ] GradModeTest.TestRequiresGradInplaceOp (0 ms) 2022-11-23T01:19:43.7502082Z [ RUN ] GradModeTest.TestRequiresGradViewOp 2022-11-23T01:19:43.7503033Z [ OK ] GradModeTest.TestRequiresGradViewOp (0 ms) 2022-11-23T01:19:43.7503669Z [ RUN ] GradModeTest.TestRequiresGradViewOpExiting 2022-11-23T01:19:43.7544269Z [ OK ] GradModeTest.TestRequiresGradViewOpExiting (4 ms) 2022-11-23T01:19:43.7544912Z [----------] 4 tests from GradModeTest (4 ms total) 2022-11-23T01:19:43.7545072Z 2022-11-23T01:19:43.7545225Z [----------] 3 tests from OperationTest 2022-11-23T01:19:43.7545483Z [ RUN ] OperationTest.Lerp 2022-11-23T01:19:43.7677534Z [ OK ] OperationTest.Lerp (13 ms) 2022-11-23T01:19:43.7678058Z [ RUN ] OperationTest.Cross 2022-11-23T01:19:43.8229715Z [ OK ] OperationTest.Cross (55 ms) 2022-11-23T01:19:43.8230043Z [ RUN ] OperationTest.Linear_out 2022-11-23T01:19:43.8262965Z [ OK ] OperationTest.Linear_out (3 ms) 2022-11-23T01:19:43.8263391Z [----------] 3 tests from OperationTest (71 ms total) 2022-11-23T01:19:43.8263704Z 2022-11-23T01:19:43.8263877Z [----------] Global test environment tear-down 2022-11-23T01:19:43.9089719Z [==========] 992 tests from 48 test suites ran. (652865 ms total) 2022-11-23T01:19:43.9090015Z [ PASSED ] 992 tests. 2022-11-23T01:19:45.4606102Z ThreadSanitizer: reported 3 warnings 2022-11-23T01:19:45.5285545Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_tensorexpr --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_tensorexpr.xml 2022-11-23T01:19:49.1684550Z CUDA not available. Disabling CUDA and MultiCUDA tests 2022-11-23T01:19:49.1726181Z Note: Google Test filter = *-*_CUDA:*_MultiCUDA 2022-11-23T01:19:49.1726694Z [==========] Running 647 tests from 23 test suites. 2022-11-23T01:19:49.1727281Z [----------] Global test environment set-up. 2022-11-23T01:19:49.1727563Z [----------] 34 tests from ATen 2022-11-23T01:19:49.1727804Z [ RUN ] ATen._cast_Float 2022-11-23T01:19:49.1804819Z [ OK ] ATen._cast_Float (7 ms) 2022-11-23T01:19:49.1805282Z [ RUN ] ATen.negInt 2022-11-23T01:19:49.1890786Z [ OK ] ATen.negInt (8 ms) 2022-11-23T01:19:49.1891072Z [ RUN ] ATen.negFloat 2022-11-23T01:19:49.1985499Z [ OK ] ATen.negFloat (9 ms) 2022-11-23T01:19:49.1985743Z [ RUN ] ATen.addInt 2022-11-23T01:19:49.2142661Z [ OK ] ATen.addInt (15 ms) 2022-11-23T01:19:49.2142927Z [ RUN ] ATen.addFloat 2022-11-23T01:19:49.2300902Z [ OK ] ATen.addFloat (15 ms) 2022-11-23T01:19:49.2301150Z [ RUN ] ATen.subInt 2022-11-23T01:19:49.2457649Z [ OK ] ATen.subInt (15 ms) 2022-11-23T01:19:49.2457936Z [ RUN ] ATen.subFloat 2022-11-23T01:19:49.2616187Z [ OK ] ATen.subFloat (15 ms) 2022-11-23T01:19:49.2616441Z [ RUN ] ATen.lerp 2022-11-23T01:19:49.2822773Z [ OK ] ATen.lerp (20 ms) 2022-11-23T01:19:49.2823299Z [ RUN ] ATen.addcmulInt 2022-11-23T01:19:49.3029084Z [ OK ] ATen.addcmulInt (20 ms) 2022-11-23T01:19:49.3029582Z [ RUN ] ATen.addcmulFloat 2022-11-23T01:19:49.3236859Z [ OK ] ATen.addcmulFloat (20 ms) 2022-11-23T01:19:49.3237343Z [ RUN ] ATen.mulInt 2022-11-23T01:19:49.3348900Z [ OK ] ATen.mulInt (11 ms) 2022-11-23T01:19:49.3349368Z [ RUN ] ATen.mulFloat 2022-11-23T01:19:49.3458269Z [ OK ] ATen.mulFloat (10 ms) 2022-11-23T01:19:49.3458862Z [ RUN ] ATen.divInt 2022-11-23T01:19:49.3566224Z [ OK ] ATen.divInt (10 ms) 2022-11-23T01:19:49.3566701Z [ RUN ] ATen.divFloat 2022-11-23T01:19:49.3676186Z [ OK ] ATen.divFloat (10 ms) 2022-11-23T01:19:49.3676618Z [ RUN ] ATen.maxInt 2022-11-23T01:19:49.3784518Z [ OK ] ATen.maxInt (10 ms) 2022-11-23T01:19:49.3784990Z [ RUN ] ATen.maxFloat 2022-11-23T01:19:49.3893872Z [ OK ] ATen.maxFloat (10 ms) 2022-11-23T01:19:49.3894339Z [ RUN ] ATen.minInt 2022-11-23T01:19:49.4002605Z [ OK ] ATen.minInt (10 ms) 2022-11-23T01:19:49.4003054Z [ RUN ] ATen.minFloat 2022-11-23T01:19:49.4111989Z [ OK ] ATen.minFloat (10 ms) 2022-11-23T01:19:49.4112467Z [ RUN ] ATen.reluInt 2022-11-23T01:19:49.4198245Z [ OK ] ATen.reluInt (8 ms) 2022-11-23T01:19:49.4198701Z [ RUN ] ATen.reluFloat 2022-11-23T01:19:49.4292412Z [ OK ] ATen.reluFloat (9 ms) 2022-11-23T01:19:49.4292887Z [ RUN ] ATen.logFloat 2022-11-23T01:19:49.4373502Z [ OK ] ATen.logFloat (8 ms) 2022-11-23T01:19:49.4374017Z [ RUN ] ATen.fastLogFloat 2022-11-23T01:19:49.9547682Z [ OK ] ATen.fastLogFloat (517 ms) 2022-11-23T01:19:49.9548017Z [ RUN ] ATen.fastTanhFloat 2022-11-23T01:19:50.1432401Z [ OK ] ATen.fastTanhFloat (188 ms) 2022-11-23T01:19:50.1432871Z [ RUN ] ATen.fastSigmoidFloat 2022-11-23T01:19:50.3829875Z [ OK ] ATen.fastSigmoidFloat (239 ms) 2022-11-23T01:19:50.3830313Z [ RUN ] ATen.log10Float 2022-11-23T01:19:50.3910799Z [ OK ] ATen.log10Float (8 ms) 2022-11-23T01:19:50.3911291Z [ RUN ] ATen.log2Float 2022-11-23T01:19:50.3992812Z [ OK ] ATen.log2Float (8 ms) 2022-11-23T01:19:50.3993304Z [ RUN ] ATen.expFloat 2022-11-23T01:19:50.4074119Z [ OK ] ATen.expFloat (8 ms) 2022-11-23T01:19:50.4074596Z [ RUN ] ATen.erfFloat 2022-11-23T01:19:50.4155502Z [ OK ] ATen.erfFloat (8 ms) 2022-11-23T01:19:50.4155762Z [ RUN ] ATen.cosFloat 2022-11-23T01:19:50.4233792Z [ OK ] ATen.cosFloat (7 ms) 2022-11-23T01:19:50.4234028Z [ RUN ] ATen.eqInt 2022-11-23T01:19:50.4362337Z [ OK ] ATen.eqInt (12 ms) 2022-11-23T01:19:50.4362596Z [ RUN ] ATen.geInt 2022-11-23T01:19:50.4490544Z [ OK ] ATen.geInt (12 ms) 2022-11-23T01:19:50.4490798Z [ RUN ] ATen.gtInt 2022-11-23T01:19:50.4618372Z [ OK ] ATen.gtInt (12 ms) 2022-11-23T01:19:50.4618751Z [ RUN ] ATen.leInt 2022-11-23T01:19:50.4746893Z [ OK ] ATen.leInt (12 ms) 2022-11-23T01:19:50.4747199Z [ RUN ] ATen.ltInt 2022-11-23T01:19:50.4875667Z [ OK ] ATen.ltInt (12 ms) 2022-11-23T01:19:50.4876040Z [----------] 34 tests from ATen (1314 ms total) 2022-11-23T01:19:50.4876194Z 2022-11-23T01:19:50.4876357Z [----------] 26 tests from BoundsInference 2022-11-23T01:19:50.4876641Z [ RUN ] BoundsInference._1 2022-11-23T01:19:50.4910332Z [ OK ] BoundsInference._1 (3 ms) 2022-11-23T01:19:50.4910658Z [ RUN ] BoundsInference._2 2022-11-23T01:19:50.4968293Z [ OK ] BoundsInference._2 (5 ms) 2022-11-23T01:19:50.4968627Z [ RUN ] BoundsInference._3 2022-11-23T01:19:50.5033916Z [ OK ] BoundsInference._3 (6 ms) 2022-11-23T01:19:50.5034241Z [ RUN ] BoundsInference._4 2022-11-23T01:19:50.5172856Z [ OK ] BoundsInference._4 (13 ms) 2022-11-23T01:19:50.5173184Z [ RUN ] BoundsInference._5 2022-11-23T01:19:50.5522917Z [ OK ] BoundsInference._5 (34 ms) 2022-11-23T01:19:50.5523193Z [ RUN ] BoundsInference._6 2022-11-23T01:19:50.5773841Z [ OK ] BoundsInference._6 (25 ms) 2022-11-23T01:19:50.5774138Z [ RUN ] BoundsInference.Adjacent 2022-11-23T01:19:50.5926353Z [ OK ] BoundsInference.Adjacent (15 ms) 2022-11-23T01:19:50.5926717Z [ RUN ] BoundsInference.MultipleTopLoopLoad 2022-11-23T01:19:50.6056523Z [ OK ] BoundsInference.MultipleTopLoopLoad (13 ms) 2022-11-23T01:19:50.6056907Z [ RUN ] BoundsInference.MultipleTopLoopStore 2022-11-23T01:19:50.6182173Z [ OK ] BoundsInference.MultipleTopLoopStore (12 ms) 2022-11-23T01:19:50.6182537Z [ RUN ] BoundsInference.CacheReads 2022-11-23T01:19:50.6931881Z [ OK ] BoundsInference.CacheReads (74 ms) 2022-11-23T01:19:50.6932208Z [ RUN ] BoundsInference.Flattened 2022-11-23T01:19:50.7269911Z [ OK ] BoundsInference.Flattened (33 ms) 2022-11-23T01:19:50.7270322Z [ RUN ] BoundsInference.GetPotentialHazards 2022-11-23T01:19:50.7301374Z [ OK ] BoundsInference.GetPotentialHazards (3 ms) 2022-11-23T01:19:50.7301779Z [ RUN ] BoundsInference.GetPotentialHazardsLoopNoHazard 2022-11-23T01:19:50.7397157Z [ OK ] BoundsInference.GetPotentialHazardsLoopNoHazard (9 ms) 2022-11-23T01:19:50.7397937Z [ RUN ] BoundsInference.GetPotentialHazardsLoopCall 2022-11-23T01:19:50.7521589Z [ OK ] BoundsInference.GetPotentialHazardsLoopCall (12 ms) 2022-11-23T01:19:50.7522251Z [ RUN ] BoundsInference.GetPotentialHazardsLoopSplit 2022-11-23T01:19:50.7845366Z [ OK ] BoundsInference.GetPotentialHazardsLoopSplit (32 ms) 2022-11-23T01:19:50.7845933Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithPartialOverlap 2022-11-23T01:19:50.7990440Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithPartialOverlap (14 ms) 2022-11-23T01:19:50.7991149Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlap 2022-11-23T01:19:50.8035912Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlap (4 ms) 2022-11-23T01:19:50.8036672Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlapRAW 2022-11-23T01:19:50.8090983Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlapRAW (5 ms) 2022-11-23T01:19:50.8091676Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferNotOverlapping 2022-11-23T01:19:50.8173827Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferNotOverlapping (8 ms) 2022-11-23T01:19:50.8174574Z [ RUN ] BoundsInference.HasConflictingOverlap2DBufferWithOverlap 2022-11-23T01:19:50.8609133Z [ OK ] BoundsInference.HasConflictingOverlap2DBufferWithOverlap (43 ms) 2022-11-23T01:19:50.8609787Z [ RUN ] BoundsInference.HasConflictingOverlap2DBufferWithNoOverlap 2022-11-23T01:19:50.8908693Z [ OK ] BoundsInference.HasConflictingOverlap2DBufferWithNoOverlap (29 ms) 2022-11-23T01:19:50.8909315Z [ RUN ] BoundsInference.HasConflictingOverlapDifferentBuffers 2022-11-23T01:19:50.8983911Z [ OK ] BoundsInference.HasConflictingOverlapDifferentBuffers (7 ms) 2022-11-23T01:19:50.8984585Z [ RUN ] BoundsInference.HasConflictingOverlapDueToRAWDependence 2022-11-23T01:19:50.9058694Z [ OK ] BoundsInference.HasConflictingOverlapDueToRAWDependence (7 ms) 2022-11-23T01:19:50.9059391Z [ RUN ] BoundsInference.HasConflictingOverlapDueToWARDependence 2022-11-23T01:19:50.9128991Z [ OK ] BoundsInference.HasConflictingOverlapDueToWARDependence (6 ms) 2022-11-23T01:19:50.9129608Z [ RUN ] BoundsInference.HasConflictingOverlapWithLoads 2022-11-23T01:19:50.9198814Z [ OK ] BoundsInference.HasConflictingOverlapWithLoads (6 ms) 2022-11-23T01:19:50.9199401Z [ RUN ] BoundsInference.IsOverlapping 2022-11-23T01:19:50.9851701Z [ OK ] BoundsInference.IsOverlapping (65 ms) 2022-11-23T01:19:50.9852195Z [----------] 26 tests from BoundsInference (497 ms total) 2022-11-23T01:19:50.9852369Z 2022-11-23T01:19:50.9852710Z [----------] 1 test from Conv 2022-11-23T01:19:50.9864449Z [ RUN ] Conv.Conv2D 2022-11-23T01:20:28.4605014Z [ OK ] Conv.Conv2D (37475 ms) 2022-11-23T01:20:28.4605341Z [----------] 1 test from Conv (37475 ms total) 2022-11-23T01:20:28.4605502Z 2022-11-23T01:20:28.4606250Z [----------] 28 tests from CppPrinter 2022-11-23T01:20:28.4606645Z [ RUN ] CppPrinter.IntImm 2022-11-23T01:20:28.4606954Z [ OK ] CppPrinter.IntImm (0 ms) 2022-11-23T01:20:28.4607272Z [ RUN ] CppPrinter.FloatImm 2022-11-23T01:20:28.4610763Z [ OK ] CppPrinter.FloatImm (0 ms) 2022-11-23T01:20:28.4619687Z [ RUN ] CppPrinter.FloatImm1 2022-11-23T01:20:28.4620121Z [ OK ] CppPrinter.FloatImm1 (0 ms) 2022-11-23T01:20:28.4620519Z [ RUN ] CppPrinter.DoubleImm 2022-11-23T01:20:28.4620805Z [ OK ] CppPrinter.DoubleImm (0 ms) 2022-11-23T01:20:28.4621086Z [ RUN ] CppPrinter.DoubleImm1 2022-11-23T01:20:28.4621376Z [ OK ] CppPrinter.DoubleImm1 (0 ms) 2022-11-23T01:20:28.4621651Z [ RUN ] CppPrinter.HalfImm 2022-11-23T01:20:28.4621930Z [ OK ] CppPrinter.HalfImm (0 ms) 2022-11-23T01:20:28.4624941Z [ RUN ] CppPrinter.Add 2022-11-23T01:20:28.4625572Z [ OK ] CppPrinter.Add (0 ms) 2022-11-23T01:20:28.4625935Z [ RUN ] CppPrinter.AddExpr1 2022-11-23T01:20:28.4626223Z [ OK ] CppPrinter.AddExpr1 (0 ms) 2022-11-23T01:20:28.4626545Z [ RUN ] CppPrinter.AddExpr2 2022-11-23T01:20:28.4626827Z [ OK ] CppPrinter.AddExpr2 (0 ms) 2022-11-23T01:20:28.4627102Z [ RUN ] CppPrinter.AddExpr3 2022-11-23T01:20:28.4627368Z [ OK ] CppPrinter.AddExpr3 (0 ms) 2022-11-23T01:20:28.4627628Z [ RUN ] CppPrinter.Mod 2022-11-23T01:20:28.4627890Z [ OK ] CppPrinter.Mod (0 ms) 2022-11-23T01:20:28.4630496Z [ RUN ] CppPrinter.ModFloat 2022-11-23T01:20:28.4630955Z [ OK ] CppPrinter.ModFloat (0 ms) 2022-11-23T01:20:28.4631402Z [ RUN ] CppPrinter.Max 2022-11-23T01:20:28.4631799Z [ OK ] CppPrinter.Max (0 ms) 2022-11-23T01:20:28.4632186Z [ RUN ] CppPrinter.MaxFloat 2022-11-23T01:20:28.4632544Z [ OK ] CppPrinter.MaxFloat (0 ms) 2022-11-23T01:20:28.4633040Z [ RUN ] CppPrinter.MaxHalf 2022-11-23T01:20:28.4633477Z [ OK ] CppPrinter.MaxHalf (0 ms) 2022-11-23T01:20:28.4633741Z [ RUN ] CppPrinter.And 2022-11-23T01:20:28.4634003Z [ OK ] CppPrinter.And (0 ms) 2022-11-23T01:20:28.4634273Z [ RUN ] CppPrinter.CompareSelect 2022-11-23T01:20:28.4634617Z [ OK ] CppPrinter.CompareSelect (0 ms) 2022-11-23T01:20:28.4634913Z [ RUN ] CppPrinter.IfThenElse 2022-11-23T01:20:28.4635256Z [ OK ] CppPrinter.IfThenElse (0 ms) 2022-11-23T01:20:28.4635580Z [ RUN ] CppPrinter.AllocateFree 2022-11-23T01:20:28.4636086Z [ OK ] CppPrinter.AllocateFree (0 ms) 2022-11-23T01:20:28.4636586Z [ RUN ] CppPrinter.LoadStore 2022-11-23T01:20:28.4636867Z [ OK ] CppPrinter.LoadStore (0 ms) 2022-11-23T01:20:28.4637132Z [ RUN ] CppPrinter.Var 2022-11-23T01:20:28.4637393Z [ OK ] CppPrinter.Var (0 ms) 2022-11-23T01:20:28.4637640Z [ RUN ] CppPrinter.Cast 2022-11-23T01:20:28.4637909Z [ OK ] CppPrinter.Cast (0 ms) 2022-11-23T01:20:28.4638171Z [ RUN ] CppPrinter.BitCast 2022-11-23T01:20:28.4638433Z [ OK ] CppPrinter.BitCast (0 ms) 2022-11-23T01:20:28.4638696Z [ RUN ] CppPrinter.Let 2022-11-23T01:20:28.4638958Z [ OK ] CppPrinter.Let (0 ms) 2022-11-23T01:20:28.4639195Z [ RUN ] CppPrinter.For 2022-11-23T01:20:28.4639600Z [ OK ] CppPrinter.For (0 ms) 2022-11-23T01:20:28.4639899Z [ RUN ] CppPrinter.Cond 2022-11-23T01:20:28.4640232Z [ OK ] CppPrinter.Cond (0 ms) 2022-11-23T01:20:28.4640492Z [ RUN ] CppPrinter.Intrinsics 2022-11-23T01:20:28.4641074Z [ OK ] CppPrinter.Intrinsics (0 ms) 2022-11-23T01:20:28.4641605Z [ RUN ] CppPrinter.ExternalCall 2022-11-23T01:20:28.4647828Z [ OK ] CppPrinter.ExternalCall (0 ms) 2022-11-23T01:20:28.4649719Z [----------] 28 tests from CppPrinter (4 ms total) 2022-11-23T01:20:28.4650439Z 2022-11-23T01:20:28.4650743Z [----------] 8 tests from DynamicShapes 2022-11-23T01:20:28.4651265Z [ RUN ] DynamicShapes.SimpleGraph 2022-11-23T01:20:28.4651800Z [ OK ] DynamicShapes.SimpleGraph (0 ms) 2022-11-23T01:20:28.4652149Z [ RUN ] DynamicShapes.GraphWith2InputsSameDims 2022-11-23T01:20:28.4652544Z [ OK ] DynamicShapes.GraphWith2InputsSameDims (0 ms) 2022-11-23T01:20:28.4652958Z [ RUN ] DynamicShapes.GraphWith2InputsAndBroadcast 2022-11-23T01:20:28.4653365Z [ OK ] DynamicShapes.GraphWith2InputsAndBroadcast (0 ms) 2022-11-23T01:20:28.4653774Z [ RUN ] DynamicShapes.GraphWithPartiallySymbolicOutput 2022-11-23T01:20:28.4654283Z [ OK ] DynamicShapes.GraphWithPartiallySymbolicOutput (0 ms) 2022-11-23T01:20:28.4654680Z [ RUN ] DynamicShapes.GraphWithSymbolicStrides 2022-11-23T01:20:28.4655482Z [ OK ] DynamicShapes.GraphWithSymbolicStrides (0 ms) 2022-11-23T01:20:28.4656339Z [ RUN ] DynamicShapes.GraphWithCatAndBroadcast 2022-11-23T01:20:28.4657183Z [ OK ] DynamicShapes.GraphWithCatAndBroadcast (0 ms) 2022-11-23T01:20:28.4657807Z [ RUN ] DynamicShapes.GraphFromModel 2022-11-23T01:20:28.4658289Z [ OK ] DynamicShapes.GraphFromModel (0 ms) 2022-11-23T01:20:28.4658833Z [ RUN ] DynamicShapes.MultiThreadedExecution 2022-11-23T01:20:28.4659185Z [ OK ] DynamicShapes.MultiThreadedExecution (0 ms) 2022-11-23T01:20:28.4659667Z [----------] 8 tests from DynamicShapes (0 ms total) 2022-11-23T01:20:28.4659876Z 2022-11-23T01:20:28.4660021Z [----------] 30 tests from Expr 2022-11-23T01:20:28.4660356Z [ RUN ] Expr.BasicValueTest 2022-11-23T01:20:28.4660619Z [ OK ] Expr.BasicValueTest (0 ms) 2022-11-23T01:20:28.4660895Z [ RUN ] Expr.BasicValueTest02 2022-11-23T01:20:28.4661182Z [ OK ] Expr.BasicValueTest02 (0 ms) 2022-11-23T01:20:28.4661475Z [ RUN ] Expr.IsChannelsLastContiguous 2022-11-23T01:20:28.4661802Z [ OK ] Expr.IsChannelsLastContiguous (0 ms) 2022-11-23T01:20:28.4662079Z [ RUN ] Expr.LetTest01 2022-11-23T01:20:28.4663824Z [ OK ] Expr.LetTest01 (0 ms) 2022-11-23T01:20:28.4664110Z [ RUN ] Expr.LetTest02 2022-11-23T01:20:28.4668263Z [ OK ] Expr.LetTest02 (0 ms) 2022-11-23T01:20:28.4668602Z [ RUN ] Expr.LetStmtTest01 2022-11-23T01:20:28.4673390Z [ OK ] Expr.LetStmtTest01 (0 ms) 2022-11-23T01:20:28.4673660Z [ RUN ] Expr.IntTest 2022-11-23T01:20:28.4677100Z [ OK ] Expr.IntTest (0 ms) 2022-11-23T01:20:28.4677356Z [ RUN ] Expr.FloatTest 2022-11-23T01:20:28.4680918Z [ OK ] Expr.FloatTest (0 ms) 2022-11-23T01:20:28.4681181Z [ RUN ] Expr.ByteTest 2022-11-23T01:20:28.4684793Z [ OK ] Expr.ByteTest (0 ms) 2022-11-23T01:20:28.4685070Z [ RUN ] Expr.CharTest 2022-11-23T01:20:28.4688565Z [ OK ] Expr.CharTest (0 ms) 2022-11-23T01:20:28.4688840Z [ RUN ] Expr.ShortTest 2022-11-23T01:20:28.4692336Z [ OK ] Expr.ShortTest (0 ms) 2022-11-23T01:20:28.4692797Z [ RUN ] Expr.LongTest 2022-11-23T01:20:28.4696296Z [ OK ] Expr.LongTest (0 ms) 2022-11-23T01:20:28.4696906Z [ RUN ] Expr.HalfTest 2022-11-23T01:20:28.4700209Z [ OK ] Expr.HalfTest (0 ms) 2022-11-23T01:20:28.4700682Z [ RUN ] Expr.DoubleTest 2022-11-23T01:20:28.4704644Z [ OK ] Expr.DoubleTest (0 ms) 2022-11-23T01:20:28.4705129Z [ RUN ] Expr.VectorAdd01 2022-11-23T01:20:28.5100561Z [ OK ] Expr.VectorAdd01 (39 ms) 2022-11-23T01:20:28.5101034Z [ RUN ] Expr.CompareSelectEQ 2022-11-23T01:20:28.6117642Z [ OK ] Expr.CompareSelectEQ (101 ms) 2022-11-23T01:20:28.6118206Z [ RUN ] Expr.CompareSelectDtypes 2022-11-23T01:20:28.7144116Z [ OK ] Expr.CompareSelectDtypes (102 ms) 2022-11-23T01:20:28.7144672Z [ RUN ] Expr.IntrinsicsDtypes 2022-11-23T01:20:28.7296206Z [ OK ] Expr.IntrinsicsDtypes (15 ms) 2022-11-23T01:20:28.7298414Z [ RUN ] Expr.Substitute01 2022-11-23T01:20:28.7299112Z [ OK ] Expr.Substitute01 (0 ms) 2022-11-23T01:20:28.7299528Z [ RUN ] Expr.Math01 2022-11-23T01:20:28.7302414Z [ OK ] Expr.Math01 (0 ms) 2022-11-23T01:20:28.7302866Z [ RUN ] Expr.UnaryMath01 2022-11-23T01:20:28.7341637Z [ OK ] Expr.UnaryMath01 (3 ms) 2022-11-23T01:20:28.7342113Z [ RUN ] Expr.BinaryMath01 2022-11-23T01:20:28.7346732Z [ OK ] Expr.BinaryMath01 (0 ms) 2022-11-23T01:20:28.7347140Z [ RUN ] Expr.LogicalOps01 2022-11-23T01:20:28.7370771Z [ OK ] Expr.LogicalOps01 (2 ms) 2022-11-23T01:20:28.7371287Z [ RUN ] Expr.LogicalOps02 2022-11-23T01:20:28.7380162Z [ OK ] Expr.LogicalOps02 (0 ms) 2022-11-23T01:20:28.7380636Z [ RUN ] Expr.LogicalOps03 2022-11-23T01:20:28.7409216Z [ OK ] Expr.LogicalOps03 (2 ms) 2022-11-23T01:20:28.7409723Z [ RUN ] Expr.BitwiseOps 2022-11-23T01:20:28.7414098Z [ OK ] Expr.BitwiseOps (0 ms) 2022-11-23T01:20:28.7414583Z [ RUN ] Expr.DynamicShapeAdd 2022-11-23T01:20:28.7467196Z [ OK ] Expr.DynamicShapeAdd (5 ms) 2022-11-23T01:20:28.7467692Z [ RUN ] Expr.OutOfBounds 2022-11-23T01:20:28.7476056Z [ OK ] Expr.OutOfBounds (0 ms) 2022-11-23T01:20:28.7476523Z [ RUN ] Expr.OutOfBounds2d 2022-11-23T01:20:28.7695484Z [ OK ] Expr.OutOfBounds2d (21 ms) 2022-11-23T01:20:28.7696062Z [ RUN ] Expr.OutOfBounds2dFlattenedIndex 2022-11-23T01:20:28.7834043Z [ OK ] Expr.OutOfBounds2dFlattenedIndex (13 ms) 2022-11-23T01:20:28.7834610Z [----------] 30 tests from Expr (318 ms total) 2022-11-23T01:20:28.7834862Z 2022-11-23T01:20:28.7835123Z [----------] 16 tests from ExternalCall 2022-11-23T01:20:28.7835624Z [ RUN ] ExternalCall.Conv1d_float 2022-11-23T01:20:28.8366179Z [ OK ] ExternalCall.Conv1d_float (53 ms) 2022-11-23T01:20:28.8366735Z [ RUN ] ExternalCall.Conv1d_int 2022-11-23T01:20:28.8868088Z [ OK ] ExternalCall.Conv1d_int (50 ms) 2022-11-23T01:20:28.8868511Z [ RUN ] ExternalCall.Conv1d_nobias_noargs 2022-11-23T01:20:28.8897112Z [ OK ] ExternalCall.Conv1d_nobias_noargs (2 ms) 2022-11-23T01:20:28.8897425Z [ RUN ] ExternalCall.Conv2d_float 2022-11-23T01:20:28.9723542Z [ OK ] ExternalCall.Conv2d_float (82 ms) 2022-11-23T01:20:28.9723931Z [ RUN ] ExternalCall.Conv2d_int 2022-11-23T01:20:29.0577717Z [ OK ] ExternalCall.Conv2d_int (85 ms) 2022-11-23T01:20:29.0578130Z [ RUN ] ExternalCall.Conv2d_nobias_noargs 2022-11-23T01:20:29.1044101Z [ OK ] ExternalCall.Conv2d_nobias_noargs (46 ms) 2022-11-23T01:20:29.1044458Z [ RUN ] ExternalCall.Addmm_float 2022-11-23T01:20:29.1191396Z [ OK ] ExternalCall.Addmm_float (14 ms) 2022-11-23T01:20:29.1191921Z [ RUN ] ExternalCall.Embedding 2022-11-23T01:20:29.1248249Z [ OK ] ExternalCall.Embedding (5 ms) 2022-11-23T01:20:29.1248570Z [ RUN ] ExternalCall.MaxReduction 2022-11-23T01:20:29.1279221Z [ OK ] ExternalCall.MaxReduction (3 ms) 2022-11-23T01:20:29.1279588Z [ RUN ] ExternalCall.Prepacked_Linear_float 2022-11-23T01:20:29.1635464Z [ OK ] ExternalCall.Prepacked_Linear_float (35 ms) 2022-11-23T01:20:29.1635955Z [ RUN ] ExternalCall.Prepacked_Conv2d_float 2022-11-23T01:20:29.3874700Z [ OK ] ExternalCall.Prepacked_Conv2d_float (223 ms) 2022-11-23T01:20:29.3875181Z [ RUN ] ExternalCall.BinaryFloat 2022-11-23T01:20:29.4461610Z [ OK ] ExternalCall.BinaryFloat (58 ms) 2022-11-23T01:20:29.4462124Z [ RUN ] ExternalCall.UnaryFloat 2022-11-23T01:20:29.4546149Z [ OK ] ExternalCall.UnaryFloat (8 ms) 2022-11-23T01:20:29.4546602Z [ RUN ] ExternalCall.ComputeInterop 2022-11-23T01:20:55.5770088Z [ OK ] ExternalCall.ComputeInterop (26122 ms) 2022-11-23T01:20:55.5770436Z [ RUN ] ExternalCall.Inlining 2022-11-23T01:20:55.6457602Z [ OK ] ExternalCall.Inlining (68 ms) 2022-11-23T01:20:55.6458199Z [ RUN ] ExternalCall.JitCustomFusionOp 2022-11-23T01:20:55.7456832Z [ OK ] ExternalCall.JitCustomFusionOp (99 ms) 2022-11-23T01:20:55.7457443Z [----------] 16 tests from ExternalCall (26962 ms total) 2022-11-23T01:20:55.7457608Z 2022-11-23T01:20:55.7457758Z [----------] 8 tests from GraphOpt 2022-11-23T01:20:55.7458947Z [ RUN ] GraphOpt.OptimizeCat 2022-11-23T01:20:55.7459484Z [ OK ] GraphOpt.OptimizeCat (0 ms) 2022-11-23T01:20:55.7460006Z [ RUN ] GraphOpt.OptimizeCat2 2022-11-23T01:20:55.7460502Z [ OK ] GraphOpt.OptimizeCat2 (0 ms) 2022-11-23T01:20:55.7460962Z [ RUN ] GraphOpt.OptimizeCat3 2022-11-23T01:20:55.7461465Z [ OK ] GraphOpt.OptimizeCat3 (0 ms) 2022-11-23T01:20:55.7462061Z [ RUN ] GraphOpt.OptimizeCatWithTypePromotionInUser 2022-11-23T01:20:55.7462770Z [ OK ] GraphOpt.OptimizeCatWithTypePromotionInUser (0 ms) 2022-11-23T01:20:55.7463425Z [ RUN ] GraphOpt.OptimizeCatWithTypePromotionInCat 2022-11-23T01:20:55.7464102Z [ OK ] GraphOpt.OptimizeCatWithTypePromotionInCat (0 ms) 2022-11-23T01:20:55.7464780Z [ RUN ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp 2022-11-23T01:20:55.7465517Z [ OK ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp (0 ms) 2022-11-23T01:20:55.7466233Z [ RUN ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp2 2022-11-23T01:20:55.7467011Z [ OK ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp2 (0 ms) 2022-11-23T01:20:55.7467623Z [ RUN ] GraphOpt.AOTGraphPrepPasses 2022-11-23T01:20:55.7468178Z [ OK ] GraphOpt.AOTGraphPrepPasses (0 ms) 2022-11-23T01:20:55.7468789Z [----------] 8 tests from GraphOpt (0 ms total) 2022-11-23T01:20:55.7469023Z 2022-11-23T01:20:55.7469253Z [----------] 4 tests from IRPrinter 2022-11-23T01:20:55.7469712Z [ RUN ] IRPrinter.BasicValueTest 2022-11-23T01:20:55.7470212Z [ OK ] IRPrinter.BasicValueTest (0 ms) 2022-11-23T01:20:55.7470721Z [ RUN ] IRPrinter.BasicValueTest02 2022-11-23T01:20:55.7471236Z [ OK ] IRPrinter.BasicValueTest02 (0 ms) 2022-11-23T01:20:55.7471713Z [ RUN ] IRPrinter.CastTest 2022-11-23T01:20:55.7472167Z [ OK ] IRPrinter.CastTest (0 ms) 2022-11-23T01:20:55.7472649Z [ RUN ] IRPrinter.FunctionName 2022-11-23T01:20:55.7528441Z [ OK ] IRPrinter.FunctionName (5 ms) 2022-11-23T01:20:55.7529021Z [----------] 4 tests from IRPrinter (6 ms total) 2022-11-23T01:20:55.7529285Z 2022-11-23T01:20:55.7529776Z [----------] 8 tests from IRVerifier 2022-11-23T01:20:55.7530257Z [ RUN ] IRVerifier.BitwiseOps 2022-11-23T01:20:55.7530757Z [ OK ] IRVerifier.BitwiseOps (0 ms) 2022-11-23T01:20:55.7531265Z [ RUN ] IRVerifier.CompareSelect 2022-11-23T01:20:55.7532017Z [ OK ] IRVerifier.CompareSelect (0 ms) 2022-11-23T01:20:55.7532453Z [ RUN ] IRVerifier.Ramp 2022-11-23T01:20:55.7532913Z [ OK ] IRVerifier.Ramp (0 ms) 2022-11-23T01:20:55.7533367Z [ RUN ] IRVerifier.Load 2022-11-23T01:20:55.7534941Z [ OK ] IRVerifier.Load (0 ms) 2022-11-23T01:20:55.7535391Z [ RUN ] IRVerifier.IfThenElse 2022-11-23T01:20:55.7536345Z [ OK ] IRVerifier.IfThenElse (0 ms) 2022-11-23T01:20:55.7536778Z [ RUN ] IRVerifier.For 2022-11-23T01:20:55.7537223Z [ OK ] IRVerifier.For (0 ms) 2022-11-23T01:20:55.7537636Z [ RUN ] IRVerifier.Block 2022-11-23T01:20:55.7538409Z [ OK ] IRVerifier.Block (0 ms) 2022-11-23T01:20:55.7539015Z [ RUN ] IRVerifier.Store 2022-11-23T01:20:55.7541447Z [ OK ] IRVerifier.Store (0 ms) 2022-11-23T01:20:55.7542029Z [----------] 8 tests from IRVerifier (1 ms total) 2022-11-23T01:20:55.7542348Z 2022-11-23T01:20:55.7542484Z [----------] 37 tests from Kernel 2022-11-23T01:20:55.7542792Z [ RUN ] Kernel.ParallelExternalCallBuf 2022-11-23T01:20:55.7551667Z [ OK ] Kernel.ParallelExternalCallBuf (0 ms) 2022-11-23T01:20:55.7552205Z [ RUN ] Kernel.InliningIntermediates 2022-11-23T01:20:55.8802294Z [ OK ] Kernel.InliningIntermediates (124 ms) 2022-11-23T01:20:55.8802784Z [ RUN ] Kernel.PreAllocIntermediateBufs 2022-11-23T01:20:56.4291989Z [ OK ] Kernel.PreAllocIntermediateBufs (548 ms) 2022-11-23T01:20:56.4292318Z [ RUN ] Kernel._1 2022-11-23T01:20:56.4766418Z [ OK ] Kernel._1 (47 ms) 2022-11-23T01:20:56.4766696Z [ RUN ] Kernel._2 2022-11-23T01:20:56.5288937Z [ OK ] Kernel._2 (52 ms) 2022-11-23T01:20:56.5289174Z [ RUN ] Kernel._3 2022-11-23T01:20:56.5858119Z [ OK ] Kernel._3 (56 ms) 2022-11-23T01:20:56.5858383Z [ RUN ] Kernel.Huge 2022-11-23T01:20:56.6163053Z [ OK ] Kernel.Huge (30 ms) 2022-11-23T01:20:56.6163351Z [ RUN ] Kernel.ParallelStrided 2022-11-23T01:30:51.5501281Z [ OK ] Kernel.ParallelStrided (594933 ms) 2022-11-23T01:30:51.5501740Z [ RUN ] Kernel.CatInputTypesPromotion 2022-11-23T01:30:51.7452895Z [ OK ] Kernel.CatInputTypesPromotion (195 ms) 2022-11-23T01:30:51.7453218Z [ RUN ] Kernel.ToDType 2022-11-23T01:30:51.7453507Z [ OK ] Kernel.ToDType (0 ms) 2022-11-23T01:30:51.7456882Z [ RUN ] Kernel.CatAndInlineWithAConstantDim 2022-11-23T01:30:52.6600996Z [ OK ] Kernel.CatAndInlineWithAConstantDim (914 ms) 2022-11-23T01:30:52.6601422Z [ RUN ] Kernel.CatWithEmptyInputs 2022-11-23T01:30:53.2896782Z [ OK ] Kernel.CatWithEmptyInputs (629 ms) 2022-11-23T01:30:53.2897267Z [ RUN ] Kernel.CatWoConditionals 2022-11-23T01:30:53.4813811Z [ OK ] Kernel.CatWoConditionals (191 ms) 2022-11-23T01:30:53.4814262Z [ RUN ] Kernel.OptimizeConditionals 2022-11-23T01:30:53.7981536Z [ OK ] Kernel.OptimizeConditionals (316 ms) 2022-11-23T01:30:53.7981882Z [ RUN ] Kernel.SumAllAxes 2022-11-23T01:30:53.8599679Z [ OK ] Kernel.SumAllAxes (61 ms) 2022-11-23T01:30:53.8600182Z [ RUN ] Kernel.SumOneAxis 2022-11-23T01:30:54.4519483Z [ OK ] Kernel.SumOneAxis (591 ms) 2022-11-23T01:30:54.4519810Z [ RUN ] Kernel.SumMultipleAxes 2022-11-23T01:30:55.5155393Z [ OK ] Kernel.SumMultipleAxes (1063 ms) 2022-11-23T01:30:55.5155956Z [ RUN ] Kernel.Softmax2D 2022-11-23T01:30:56.0655054Z [ OK ] Kernel.Softmax2D (549 ms) 2022-11-23T01:30:56.0655443Z [ RUN ] Kernel.Softmax3D 2022-11-23T01:30:57.6485015Z [ OK ] Kernel.Softmax3D (1582 ms) 2022-11-23T01:30:57.6485335Z [ RUN ] Kernel.Softmax4D 2022-11-23T01:30:59.8942944Z [ OK ] Kernel.Softmax4D (2245 ms) 2022-11-23T01:30:59.8943264Z [ RUN ] Kernel.SignTest 2022-11-23T01:30:59.9818006Z [ OK ] Kernel.SignTest (87 ms) 2022-11-23T01:30:59.9818769Z [ RUN ] Kernel.InlineProducerIntoReduction 2022-11-23T01:31:00.0230469Z [ OK ] Kernel.InlineProducerIntoReduction (41 ms) 2022-11-23T01:31:00.0231057Z [ RUN ] Kernel.InlineReductionIntoConsumer 2022-11-23T01:31:00.0862642Z [ OK ] Kernel.InlineReductionIntoConsumer (63 ms) 2022-11-23T01:31:00.0863226Z [ RUN ] Kernel.ConstantTensors 2022-11-23T01:31:00.2858052Z [ OK ] Kernel.ConstantTensors (199 ms) 2022-11-23T01:31:00.2858786Z [ RUN ] Kernel.ConstantTensorsNonContiguous 2022-11-23T01:31:00.4872861Z [ OK ] Kernel.ConstantTensorsNonContiguous (201 ms) 2022-11-23T01:31:00.4873531Z [ RUN ] Kernel.RunFast 2022-11-23T01:31:00.4873797Z [ OK ] Kernel.RunFast (0 ms) 2022-11-23T01:31:00.4874088Z [ RUN ] Kernel.RunWithAllocatedOutputs 2022-11-23T01:31:00.4874430Z [ OK ] Kernel.RunWithAllocatedOutputs (0 ms) 2022-11-23T01:31:00.4874736Z [ RUN ] Kernel.CodegenInspection 2022-11-23T01:31:00.4875024Z [ OK ] Kernel.CodegenInspection (0 ms) 2022-11-23T01:31:00.4875310Z [ RUN ] Kernel.CustomLowering 2022-11-23T01:31:00.5203844Z [ OK ] Kernel.CustomLowering (33 ms) 2022-11-23T01:31:00.5204192Z [ RUN ] Kernel.Vectorize 2022-11-23T01:31:00.5204464Z [ OK ] Kernel.Vectorize (0 ms) 2022-11-23T01:31:00.5204771Z [ RUN ] Kernel.Strided1dWithinBounds 2022-11-23T01:31:00.5490891Z [ OK ] Kernel.Strided1dWithinBounds (28 ms) 2022-11-23T01:31:00.5491424Z [ RUN ] Kernel.InputAsOutput 2022-11-23T01:31:00.6212657Z [ OK ] Kernel.InputAsOutput (72 ms) 2022-11-23T01:31:00.6213189Z [ RUN ] Kernel.ScalarOut 2022-11-23T01:31:00.6448514Z [ OK ] Kernel.ScalarOut (23 ms) 2022-11-23T01:31:00.6449062Z [ RUN ] Kernel.ScalarTensorOut 2022-11-23T01:31:00.6796518Z [ OK ] Kernel.ScalarTensorOut (34 ms) 2022-11-23T01:31:00.6797193Z [ RUN ] Kernel.FuseLoopsWithVariableBounds 2022-11-23T01:31:00.6797674Z [ OK ] Kernel.FuseLoopsWithVariableBounds (0 ms) 2022-11-23T01:31:00.6798042Z [ RUN ] Kernel.FuseLoopsWithVariableConcatDim 2022-11-23T01:31:00.6798411Z [ OK ] Kernel.FuseLoopsWithVariableConcatDim (0 ms) 2022-11-23T01:31:00.6798816Z [ RUN ] Kernel.DoNotFuseLoopsWithMismatchingVariableDims 2022-11-23T01:31:00.6799257Z [ OK ] Kernel.DoNotFuseLoopsWithMismatchingVariableDims (0 ms) 2022-11-23T01:31:00.6799642Z [----------] 37 tests from Kernel (604925 ms total) 2022-11-23T01:31:00.6799796Z 2022-11-23T01:31:00.6799940Z [----------] 174 tests from LoopNest 2022-11-23T01:31:00.6800199Z [ RUN ] LoopNest.ExprSimple01 2022-11-23T01:31:00.6829792Z [ OK ] LoopNest.ExprSimple01 (3 ms) 2022-11-23T01:31:00.6830095Z [ RUN ] LoopNest.ExprLower01 2022-11-23T01:31:00.6844245Z [ OK ] LoopNest.ExprLower01 (1 ms) 2022-11-23T01:31:00.6844558Z [ RUN ] LoopNest.ExprSimple02 2022-11-23T01:31:00.7626240Z [ OK ] LoopNest.ExprSimple02 (78 ms) 2022-11-23T01:31:00.7626657Z [ RUN ] LoopNest.ExprSliceHeadWithLoopOptions 2022-11-23T01:31:00.7679085Z [ OK ] LoopNest.ExprSliceHeadWithLoopOptions (5 ms) 2022-11-23T01:31:00.7679489Z [ RUN ] LoopNest.ExprSliceTailWithLoopOptions 2022-11-23T01:31:00.7752961Z [ OK ] LoopNest.ExprSliceTailWithLoopOptions (7 ms) 2022-11-23T01:31:00.7753342Z [ RUN ] LoopNest.ExprSliceHeadWhenFactorEqualsSize 2022-11-23T01:31:00.7765473Z [ OK ] LoopNest.ExprSliceHeadWhenFactorEqualsSize (1 ms) 2022-11-23T01:31:00.7765890Z [ RUN ] LoopNest.ExprSliceHeadWhenFactorLargerThanSize 2022-11-23T01:31:00.7778063Z [ OK ] LoopNest.ExprSliceHeadWhenFactorLargerThanSize (1 ms) 2022-11-23T01:31:00.7778406Z [ RUN ] LoopNest.ExprSliceHead 2022-11-23T01:31:00.7804773Z [ OK ] LoopNest.ExprSliceHead (2 ms) 2022-11-23T01:31:00.7805120Z [ RUN ] LoopNest.ExprSliceHeadWithNonZeroStart 2022-11-23T01:31:00.7853996Z [ OK ] LoopNest.ExprSliceHeadWithNonZeroStart (4 ms) 2022-11-23T01:31:00.7854384Z [ RUN ] LoopNest.ExprSliceTailWhenFactorEqualsSize 2022-11-23T01:31:00.7866565Z [ OK ] LoopNest.ExprSliceTailWhenFactorEqualsSize (1 ms) 2022-11-23T01:31:00.7866984Z [ RUN ] LoopNest.ExprSliceTailWhenFactorLargerThanSize 2022-11-23T01:31:00.7879235Z [ OK ] LoopNest.ExprSliceTailWhenFactorLargerThanSize (1 ms) 2022-11-23T01:31:00.7879592Z [ RUN ] LoopNest.ExprSliceTail 2022-11-23T01:31:00.7905861Z [ OK ] LoopNest.ExprSliceTail (2 ms) 2022-11-23T01:31:00.7906182Z [ RUN ] LoopNest.ExprSplitAndSlice 2022-11-23T01:31:00.8067273Z [ OK ] LoopNest.ExprSplitAndSlice (16 ms) 2022-11-23T01:31:00.8067785Z [ RUN ] LoopNest.ExprSliceAndNormalize 2022-11-23T01:31:00.8119132Z [ OK ] LoopNest.ExprSliceAndNormalize (5 ms) 2022-11-23T01:31:00.8119533Z [ RUN ] LoopNest.ExprSliceWithVariableDimension 2022-11-23T01:31:00.8517394Z [ OK ] LoopNest.ExprSliceWithVariableDimension (39 ms) 2022-11-23T01:31:00.8517848Z [ RUN ] LoopNest.ExprSplitWithTail 2022-11-23T01:31:00.8716435Z [ OK ] LoopNest.ExprSplitWithTail (19 ms) 2022-11-23T01:31:00.8716937Z [ RUN ] LoopNest.ExprSplitWithTailNone 2022-11-23T01:31:00.9162535Z [ OK ] LoopNest.ExprSplitWithTailNone (44 ms) 2022-11-23T01:31:00.9163096Z [ RUN ] LoopNest.ExprSplitWithMask01 2022-11-23T01:31:01.0177096Z [ OK ] LoopNest.ExprSplitWithMask01 (101 ms) 2022-11-23T01:31:01.0177705Z [ RUN ] LoopNest.ExprSplitWithMaskRepeatedNoMask 2022-11-23T01:31:01.0287948Z [ OK ] LoopNest.ExprSplitWithMaskRepeatedNoMask (11 ms) 2022-11-23T01:31:01.0288511Z [ RUN ] LoopNest.getLoopAt 2022-11-23T01:31:01.0293558Z [ OK ] LoopNest.getLoopAt (0 ms) 2022-11-23T01:31:01.0294076Z [ RUN ] LoopNest.TileSimple 2022-11-23T01:31:04.2303712Z [ OK ] LoopNest.TileSimple (3200 ms) 2022-11-23T01:31:04.2304072Z [ RUN ] LoopNest.TileWithTails 2022-11-23T01:31:07.4096006Z [ OK ] LoopNest.TileWithTails (3179 ms) 2022-11-23T01:31:07.4096350Z [ RUN ] LoopNest.TileInMiddle 2022-11-23T01:31:12.5202767Z [ OK ] LoopNest.TileInMiddle (5110 ms) 2022-11-23T01:31:12.5203169Z [ RUN ] LoopNest.SplitWithTailWithLoopOptions 2022-11-23T01:31:12.5214100Z [ OK ] LoopNest.SplitWithTailWithLoopOptions (1 ms) 2022-11-23T01:31:12.5214480Z [ RUN ] LoopNest.SplitWithMaskWithLoopOptions 2022-11-23T01:31:12.5224532Z [ OK ] LoopNest.SplitWithMaskWithLoopOptions (1 ms) 2022-11-23T01:31:12.5224888Z [ RUN ] LoopNest.ScheduleBroadcastAddBuffer 2022-11-23T01:31:12.5835594Z [ OK ] LoopNest.ScheduleBroadcastAddBuffer (60 ms) 2022-11-23T01:31:12.5835977Z [ RUN ] LoopNest.ScheduleFunctionCall01 2022-11-23T01:31:12.8660706Z [ OK ] LoopNest.ScheduleFunctionCall01 (282 ms) 2022-11-23T01:31:12.8661330Z [ RUN ] LoopNest.ScheduleInlineSimple 2022-11-23T01:31:13.3076568Z [ OK ] LoopNest.ScheduleInlineSimple (441 ms) 2022-11-23T01:31:13.3077007Z [ RUN ] LoopNest.ScheduleInlineFunc01 2022-11-23T01:31:15.3921622Z [ OK ] LoopNest.ScheduleInlineFunc01 (2084 ms) 2022-11-23T01:31:15.3921987Z [ RUN ] LoopNest.ScheduleInlineRandom 2022-11-23T01:31:15.4009793Z [ OK ] LoopNest.ScheduleInlineRandom (8 ms) 2022-11-23T01:31:15.4010379Z [ RUN ] LoopNest.ScheduleInlineRandomUnrelated 2022-11-23T01:31:15.4094072Z [ OK ] LoopNest.ScheduleInlineRandomUnrelated (8 ms) 2022-11-23T01:31:15.4094470Z [ RUN ] LoopNest.ScheduleInlineRandomLowerDimensions 2022-11-23T01:31:15.4162350Z [ OK ] LoopNest.ScheduleInlineRandomLowerDimensions (6 ms) 2022-11-23T01:31:15.4162729Z [ RUN ] LoopNest.ScheduleInlineIntrinsics 2022-11-23T01:31:15.7400381Z [ OK ] LoopNest.ScheduleInlineIntrinsics (323 ms) 2022-11-23T01:31:15.7400830Z [ RUN ] LoopNest.ScheduleInlineRandWithIntrinsics 2022-11-23T01:31:15.7474404Z [ OK ] LoopNest.ScheduleInlineRandWithIntrinsics (7 ms) 2022-11-23T01:31:15.7474996Z [ RUN ] LoopNest.ScheduleSplitAThenInline 2022-11-23T01:31:15.7495713Z [ OK ] LoopNest.ScheduleSplitAThenInline (2 ms) 2022-11-23T01:31:15.7496063Z [ RUN ] LoopNest.ScheduleSplitBThenInline 2022-11-23T01:31:15.7592159Z [ OK ] LoopNest.ScheduleSplitBThenInline (9 ms) 2022-11-23T01:31:15.7592557Z [ RUN ] LoopNest.ScheduleSplitTwiceThenInline 2022-11-23T01:31:15.7618644Z [ OK ] LoopNest.ScheduleSplitTwiceThenInline (2 ms) 2022-11-23T01:31:15.7619025Z [ RUN ] LoopNest.ScheduleInlineThenSplit 2022-11-23T01:31:15.7708016Z [ OK ] LoopNest.ScheduleInlineThenSplit (8 ms) 2022-11-23T01:31:15.7708428Z [ RUN ] LoopNest.ScheduleSplitInlineThenSplit 2022-11-23T01:31:15.7914043Z [ OK ] LoopNest.ScheduleSplitInlineThenSplit (20 ms) 2022-11-23T01:31:15.7914434Z [ RUN ] LoopNest.ScheduleSplitInlineSimplify 2022-11-23T01:31:15.7935649Z [ OK ] LoopNest.ScheduleSplitInlineSimplify (2 ms) 2022-11-23T01:31:15.7936075Z [ RUN ] LoopNest.ScheduleInlineThreeMixedOnce 2022-11-23T01:31:15.8059597Z [ OK ] LoopNest.ScheduleInlineThreeMixedOnce (12 ms) 2022-11-23T01:31:15.8059975Z [ RUN ] LoopNest.ScheduleInlineThreeMixedTwice 2022-11-23T01:31:15.8181060Z [ OK ] LoopNest.ScheduleInlineThreeMixedTwice (12 ms) 2022-11-23T01:31:15.8181430Z [ RUN ] LoopNest.ScheduleInlineThreeMixedInner 2022-11-23T01:31:15.8309969Z [ OK ] LoopNest.ScheduleInlineThreeMixedInner (12 ms) 2022-11-23T01:31:15.8310348Z [ RUN ] LoopNest.ScheduleInlineThreeMixedSplit 2022-11-23T01:31:15.8352780Z [ OK ] LoopNest.ScheduleInlineThreeMixedSplit (4 ms) 2022-11-23T01:31:15.8353179Z [ RUN ] LoopNest.ScheduleInlineOutputTensors 2022-11-23T01:31:15.8449579Z [ OK ] LoopNest.ScheduleInlineOutputTensors (9 ms) 2022-11-23T01:31:15.8449975Z [ RUN ] LoopNest.ScheduleInlineWithCompoundIndices 2022-11-23T01:31:15.8461027Z [ OK ] LoopNest.ScheduleInlineWithCompoundIndices (1 ms) 2022-11-23T01:31:15.8461442Z [ RUN ] LoopNest.ScheduleInlineConsumerIndicesWithCast 2022-11-23T01:31:15.8477494Z [ OK ] LoopNest.ScheduleInlineConsumerIndicesWithCast (1 ms) 2022-11-23T01:31:15.8478207Z [ RUN ] LoopNest.ScheduleInlineProducerIndicesWithCast 2022-11-23T01:31:15.8493737Z [ OK ] LoopNest.ScheduleInlineProducerIndicesWithCast (1 ms) 2022-11-23T01:31:15.8494318Z [ RUN ] LoopNest.ScheduleFuserStyle 2022-11-23T01:31:15.9779503Z [ OK ] LoopNest.ScheduleFuserStyle (128 ms) 2022-11-23T01:31:15.9780254Z [ RUN ] LoopNest.ScheduleFuserThreeArg 2022-11-23T01:31:16.1355757Z [ OK ] LoopNest.ScheduleFuserThreeArg (157 ms) 2022-11-23T01:31:16.1356268Z [ RUN ] LoopNest.ScheduleDynamicShape2D 2022-11-23T01:31:16.4807092Z [ OK ] LoopNest.ScheduleDynamicShape2D (344 ms) 2022-11-23T01:31:16.4807479Z [ RUN ] LoopNest.LoopNestComputeAt_1 2022-11-23T01:31:16.5032095Z [ OK ] LoopNest.LoopNestComputeAt_1 (22 ms) 2022-11-23T01:31:16.5032684Z [ RUN ] LoopNest.LoopNestComputeAt_2 2022-11-23T01:31:18.3309801Z [ OK ] LoopNest.LoopNestComputeAt_2 (1827 ms) 2022-11-23T01:31:18.3310409Z [ RUN ] LoopNest.LoopNestComputeAt_3 2022-11-23T01:31:20.1249306Z [ OK ] LoopNest.LoopNestComputeAt_3 (1793 ms) 2022-11-23T01:31:23.1456857Z [ RUN ] LoopNest.Reduce2dComputeAt 2022-11-23T01:31:23.1457502Z [ OK ] LoopNest.Reduce2dComputeAt (3020 ms) 2022-11-23T01:31:23.1458066Z [ RUN ] LoopNest.LoopNestReorderAxis1 2022-11-23T01:31:23.1526085Z [ OK ] LoopNest.LoopNestReorderAxis1 (6 ms) 2022-11-23T01:31:23.1526695Z [ RUN ] LoopNest.LoopNestReorderPartialAxes 2022-11-23T01:31:23.1844988Z [ OK ] LoopNest.LoopNestReorderPartialAxes (31 ms) 2022-11-23T01:31:23.1845644Z [ RUN ] LoopNest.LoopNestReorderInternalAxis 2022-11-23T01:31:23.2142033Z [ OK ] LoopNest.LoopNestReorderInternalAxis (29 ms) 2022-11-23T01:31:23.2142760Z [ RUN ] LoopNest.LoopNestReorderEnclosingAxis 2022-11-23T01:31:23.2444521Z [ OK ] LoopNest.LoopNestReorderEnclosingAxis (30 ms) 2022-11-23T01:31:23.2445171Z [ RUN ] LoopNest.LoopNestReorderSameAxis 2022-11-23T01:31:23.2463047Z [ OK ] LoopNest.LoopNestReorderSameAxis (1 ms) 2022-11-23T01:31:23.2463733Z [ RUN ] LoopNest.LoopNestReorderExtraStatements 2022-11-23T01:31:23.2896203Z [ OK ] LoopNest.LoopNestReorderExtraStatements (43 ms) 2022-11-23T01:31:23.2896967Z [ RUN ] LoopNest.LoopNestReorderLongStringOfPreOrphans 2022-11-23T01:31:25.1371978Z [ OK ] LoopNest.LoopNestReorderLongStringOfPreOrphans (1847 ms) 2022-11-23T01:31:25.1372788Z [ RUN ] LoopNest.LoopNestReorderLongStringOfPostOrphans 2022-11-23T01:31:26.9891747Z [ OK ] LoopNest.LoopNestReorderLongStringOfPostOrphans (1851 ms) 2022-11-23T01:31:26.9892508Z [ RUN ] LoopNest.LoopNestReorderLongStringFull 2022-11-23T01:31:29.2567683Z [ OK ] LoopNest.LoopNestReorderLongStringFull (2267 ms) 2022-11-23T01:31:29.2568442Z [ RUN ] LoopNest.LoopNestReorderInternalLoopNest 2022-11-23T01:31:29.6755342Z [ OK ] LoopNest.LoopNestReorderInternalLoopNest (418 ms) 2022-11-23T01:31:29.6756002Z [ RUN ] LoopNest.OuterLoopVectorization 2022-11-23T01:31:29.6796113Z [ OK ] LoopNest.OuterLoopVectorization (4 ms) 2022-11-23T01:31:29.6796770Z [ RUN ] LoopNest.VectorizeLoopNotNormalized 2022-11-23T01:31:29.6839350Z [ OK ] LoopNest.VectorizeLoopNotNormalized (4 ms) 2022-11-23T01:31:29.6839894Z [ RUN ] LoopNest.Unroll 2022-11-23T01:31:29.6857091Z [ OK ] LoopNest.Unroll (1 ms) 2022-11-23T01:31:29.6857571Z [ RUN ] LoopNest.UnrollOuter 2022-11-23T01:31:29.6895105Z [ OK ] LoopNest.UnrollOuter (3 ms) 2022-11-23T01:31:29.6895584Z [ RUN ] LoopNest.UnrollInner 2022-11-23T01:31:29.6925161Z [ OK ] LoopNest.UnrollInner (2 ms) 2022-11-23T01:31:29.6925729Z [ RUN ] LoopNest.UnrollMultipleStatements 2022-11-23T01:31:29.6942225Z [ OK ] LoopNest.UnrollMultipleStatements (1 ms) 2022-11-23T01:31:29.6942853Z [ RUN ] LoopNest.UnrollNonLiteralConstantBounds 2022-11-23T01:31:29.6971069Z [ OK ] LoopNest.UnrollNonLiteralConstantBounds (2 ms) 2022-11-23T01:31:29.6971699Z [ RUN ] LoopNest.UnrollNonConstantBounds 2022-11-23T01:31:29.7287248Z [ OK ] LoopNest.UnrollNonConstantBounds (31 ms) 2022-11-23T01:31:29.7297246Z [ RUN ] LoopNest.UnrollByFactorsLessThan2 2022-11-23T01:31:29.7297889Z [ OK ] LoopNest.UnrollByFactorsLessThan2 (1 ms) 2022-11-23T01:31:29.7298761Z [ RUN ] LoopNest.UnrollByFactorEqualToIters 2022-11-23T01:31:29.7350569Z [ OK ] LoopNest.UnrollByFactorEqualToIters (5 ms) 2022-11-23T01:31:29.7351154Z [ RUN ] LoopNest.UnrollEmpty 2022-11-23T01:31:29.7359214Z [ OK ] LoopNest.UnrollEmpty (0 ms) 2022-11-23T01:31:29.7359703Z [ RUN ] LoopNest.NoUnroll 2022-11-23T01:31:29.7367522Z [ OK ] LoopNest.NoUnroll (0 ms) 2022-11-23T01:31:29.7368033Z [ RUN ] LoopNest.UnrollWithLet 2022-11-23T01:31:29.7393108Z [ OK ] LoopNest.UnrollWithLet (2 ms) 2022-11-23T01:31:29.7393631Z [ RUN ] LoopNest.IsNormalized 2022-11-23T01:31:29.7394715Z [ OK ] LoopNest.IsNormalized (0 ms) 2022-11-23T01:31:29.7395246Z [ RUN ] LoopNest.NormalizeStartPositive 2022-11-23T01:31:29.7448857Z [ OK ] LoopNest.NormalizeStartPositive (5 ms) 2022-11-23T01:31:29.7449446Z [ RUN ] LoopNest.NormalizeStartNegative 2022-11-23T01:31:29.7515380Z [ OK ] LoopNest.NormalizeStartNegative (6 ms) 2022-11-23T01:31:29.7515970Z [ RUN ] LoopNest.NormalizeStartZero 2022-11-23T01:31:29.7524560Z [ OK ] LoopNest.NormalizeStartZero (0 ms) 2022-11-23T01:31:29.7525138Z [ RUN ] LoopNest.NormalizeStartVariable 2022-11-23T01:31:29.7581797Z [ OK ] LoopNest.NormalizeStartVariable (5 ms) 2022-11-23T01:31:29.7582417Z [ RUN ] LoopNest.NormalizeOnNestedOuterLoop 2022-11-23T01:31:29.7627574Z [ OK ] LoopNest.NormalizeOnNestedOuterLoop (4 ms) 2022-11-23T01:31:29.7628255Z [ RUN ] LoopNest.NormalizeOnNestedInnerLoop 2022-11-23T01:31:29.7678225Z [ OK ] LoopNest.NormalizeOnNestedInnerLoop (5 ms) 2022-11-23T01:31:29.7678876Z [ RUN ] LoopNest.NormalizeAndSplitWithTail 2022-11-23T01:31:29.7784018Z [ OK ] LoopNest.NormalizeAndSplitWithTail (10 ms) 2022-11-23T01:31:29.7784704Z [ RUN ] LoopNest.NotNormalizeAndSplitWithTail 2022-11-23T01:31:29.7921999Z [ OK ] LoopNest.NotNormalizeAndSplitWithTail (13 ms) 2022-11-23T01:31:29.7922651Z [ RUN ] LoopNest.FlattenSimpleLoopNest2D 2022-11-23T01:31:29.8239334Z [ OK ] LoopNest.FlattenSimpleLoopNest2D (31 ms) 2022-11-23T01:31:29.8240018Z [ RUN ] LoopNest.FlattenSimpleLoopNest3D 2022-11-23T01:31:30.1204330Z [ OK ] LoopNest.FlattenSimpleLoopNest3D (296 ms) 2022-11-23T01:31:30.1205003Z [ RUN ] LoopNest.FlattenLoopNestAfterNormalize 2022-11-23T01:31:30.2048104Z [ OK ] LoopNest.FlattenLoopNestAfterNormalize (84 ms) 2022-11-23T01:31:30.2048893Z [ RUN ] LoopNest.FlattenLoopNestWithNonLiteralConstantBounds 2022-11-23T01:31:30.2422659Z [ OK ] LoopNest.FlattenLoopNestWithNonLiteralConstantBounds (37 ms) 2022-11-23T01:31:30.2423410Z [ RUN ] LoopNest.FlattenImperfectLoopNest 2022-11-23T01:31:30.2424142Z [ OK ] LoopNest.FlattenImperfectLoopNest (0 ms) 2022-11-23T01:31:30.2424690Z [ RUN ] LoopNest.FlattenReductionLoopNest 2022-11-23T01:31:30.2429050Z [ OK ] LoopNest.FlattenReductionLoopNest (0 ms) 2022-11-23T01:31:30.2429461Z [ RUN ] LoopNest.FlattenReductionLoopNestFromTensor 2022-11-23T01:31:30.2439865Z [ OK ] LoopNest.FlattenReductionLoopNestFromTensor (1 ms) 2022-11-23T01:31:30.2440266Z [ RUN ] LoopNest.FlattenIncorrectLoopsAsInput 2022-11-23T01:31:30.2443992Z [ OK ] LoopNest.FlattenIncorrectLoopsAsInput (0 ms) 2022-11-23T01:31:30.2444373Z [ RUN ] LoopNest.DetectInlineRankMismatch 2022-11-23T01:31:30.2469000Z [ OK ] LoopNest.DetectInlineRankMismatch (2 ms) 2022-11-23T01:31:30.2469332Z [ RUN ] LoopNest.CacheReadsSimple 2022-11-23T01:31:31.5824922Z [ OK ] LoopNest.CacheReadsSimple (1335 ms) 2022-11-23T01:31:31.5825489Z [ RUN ] LoopNest.CacheReadsOuter 2022-11-23T01:31:33.0153733Z [ OK ] LoopNest.CacheReadsOuter (1432 ms) 2022-11-23T01:31:33.0154346Z [ RUN ] LoopNest.CacheReadsInternal 2022-11-23T01:31:34.5562477Z [ OK ] LoopNest.CacheReadsInternal (1540 ms) 2022-11-23T01:31:34.5563100Z [ RUN ] LoopNest.CacheReadsInner 2022-11-23T01:31:37.0193059Z [ OK ] LoopNest.CacheReadsInner (2462 ms) 2022-11-23T01:31:37.0193611Z [ RUN ] LoopNest.CacheWritesSimple 2022-11-23T01:31:39.7141184Z [ OK ] LoopNest.CacheWritesSimple (2694 ms) 2022-11-23T01:31:39.7141787Z [ RUN ] LoopNest.DeadStoreElimination 2022-11-23T01:31:39.7542713Z [ OK ] LoopNest.DeadStoreElimination (40 ms) 2022-11-23T01:31:39.7543443Z [ RUN ] LoopNest.DeadStoreEliminationWithIntermediates 2022-11-23T01:31:39.7868991Z [ OK ] LoopNest.DeadStoreEliminationWithIntermediates (32 ms) 2022-11-23T01:31:39.7869681Z [ RUN ] LoopNest.CompoundTensorSimple 2022-11-23T01:31:39.8307325Z [ OK ] LoopNest.CompoundTensorSimple (43 ms) 2022-11-23T01:31:39.8307910Z [ RUN ] LoopNest.InlineConstantIndex 2022-11-23T01:31:39.8396504Z [ OK ] LoopNest.InlineConstantIndex (9 ms) 2022-11-23T01:31:39.8397035Z [ RUN ] LoopNest.CompoundTensorUsed 2022-11-23T01:31:39.9139463Z [ OK ] LoopNest.CompoundTensorUsed (74 ms) 2022-11-23T01:31:39.9140003Z [ RUN ] LoopNest.InlineFromLoad 2022-11-23T01:31:39.9149758Z [ OK ] LoopNest.InlineFromLoad (1 ms) 2022-11-23T01:31:39.9150346Z [ RUN ] LoopNest.OptimizeConditionalsSimple 2022-11-23T01:31:39.9182460Z [ OK ] LoopNest.OptimizeConditionalsSimple (3 ms) 2022-11-23T01:31:39.9183132Z [ RUN ] LoopNest.OptimizeConditionalsNestedConditions 2022-11-23T01:31:39.9231827Z [ OK ] LoopNest.OptimizeConditionalsNestedConditions (4 ms) 2022-11-23T01:31:39.9286986Z [ RUN ] LoopNest.OptimizeConditionalsMultipleStores 2022-11-23T01:31:39.9287689Z [ OK ] LoopNest.OptimizeConditionalsMultipleStores (5 ms) 2022-11-23T01:31:39.9288449Z [ RUN ] LoopNest.OptimizeConditionalsMultipleStoresInOneLoop 2022-11-23T01:31:39.9409736Z [ OK ] LoopNest.OptimizeConditionalsMultipleStoresInOneLoop (12 ms) 2022-11-23T01:31:39.9410482Z [ RUN ] LoopNest.OptimizeConditionalsOuterLoopVar 2022-11-23T01:31:39.9504885Z [ OK ] LoopNest.OptimizeConditionalsOuterLoopVar (9 ms) 2022-11-23T01:31:39.9505631Z [ RUN ] LoopNest.OptimizeConditionalsCompValuesNotOrdered 2022-11-23T01:31:39.9594535Z [ OK ] LoopNest.OptimizeConditionalsCompValuesNotOrdered (8 ms) 2022-11-23T01:31:39.9595340Z [ RUN ] LoopNest.OptimizeConditionalsCompValuesNotConstants 2022-11-23T01:31:39.9678823Z [ OK ] LoopNest.OptimizeConditionalsCompValuesNotConstants (8 ms) 2022-11-23T01:31:39.9679605Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition 2022-11-23T01:31:39.9767953Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition (8 ms) 2022-11-23T01:31:39.9768706Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition2 2022-11-23T01:31:39.9860768Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition2 (9 ms) 2022-11-23T01:31:39.9861225Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition3 2022-11-23T01:31:39.9938443Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition3 (7 ms) 2022-11-23T01:31:39.9939020Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition4 2022-11-23T01:31:40.0006098Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition4 (6 ms) 2022-11-23T01:31:40.0006557Z [ RUN ] LoopNest.OptimizeConditionalsNotNormalized 2022-11-23T01:31:40.0044862Z [ OK ] LoopNest.OptimizeConditionalsNotNormalized (3 ms) 2022-11-23T01:31:40.0045336Z [ RUN ] LoopNest.ColReduceSplitTailEvenReorder 2022-11-23T01:31:45.5222324Z [ OK ] LoopNest.ColReduceSplitTailEvenReorder (5517 ms) 2022-11-23T01:31:45.5222811Z [ RUN ] LoopNest.ColReduceSplitTailUnevenReorder 2022-11-23T01:31:49.9045241Z [ OK ] LoopNest.ColReduceSplitTailUnevenReorder (4382 ms) 2022-11-23T01:31:49.9045663Z [ RUN ] LoopNest.ColReduceSplitMaskEvenReorder 2022-11-23T01:31:55.4234944Z [ OK ] LoopNest.ColReduceSplitMaskEvenReorder (5518 ms) 2022-11-23T01:31:55.4235389Z [ RUN ] LoopNest.ColReduceSplitMaskUnevenReorder 2022-11-23T01:31:59.1893476Z [ OK ] LoopNest.ColReduceSplitMaskUnevenReorder (3765 ms) 2022-11-23T01:31:59.1893907Z [ RUN ] LoopNest.ReorderAxisWithMultipleConds 2022-11-23T01:31:59.1954317Z [ OK ] LoopNest.ReorderAxisWithMultipleConds (6 ms) 2022-11-23T01:31:59.1954674Z [ RUN ] LoopNest.VectorizeUse 2022-11-23T01:31:59.1978384Z [ OK ] LoopNest.VectorizeUse (2 ms) 2022-11-23T01:31:59.1978844Z [ RUN ] LoopNest.Int64Direct 2022-11-23T01:31:59.1988312Z [ OK ] LoopNest.Int64Direct (0 ms) 2022-11-23T01:31:59.1988619Z [ RUN ] LoopNest.Int64Compute 2022-11-23T01:31:59.2003589Z [ OK ] LoopNest.Int64Compute (1 ms) 2022-11-23T01:31:59.2003934Z [ RUN ] LoopNest.DistributeLoopWithAllStmtsAsPivots 2022-11-23T01:31:59.2012115Z [ OK ] LoopNest.DistributeLoopWithAllStmtsAsPivots (0 ms) 2022-11-23T01:31:59.2012534Z [ RUN ] LoopNest.DistributeLoopWithOneStmtAsPivot 2022-11-23T01:31:59.2019881Z [ OK ] LoopNest.DistributeLoopWithOneStmtAsPivot (0 ms) 2022-11-23T01:31:59.2020487Z [ RUN ] LoopNest.DistributeLoopWithoutAnyPivot 2022-11-23T01:31:59.2028387Z [ OK ] LoopNest.DistributeLoopWithoutAnyPivot (0 ms) 2022-11-23T01:31:59.2029005Z [ RUN ] LoopNest.DistributeLoopOverInnerLoops 2022-11-23T01:31:59.2036414Z [ OK ] LoopNest.DistributeLoopOverInnerLoops (0 ms) 2022-11-23T01:31:59.2037079Z [ RUN ] LoopNest.DistributeLoopAndParentsWithoutAnyPivot 2022-11-23T01:31:59.2058926Z [ OK ] LoopNest.DistributeLoopAndParentsWithoutAnyPivot (2 ms) 2022-11-23T01:31:59.2059499Z [ RUN ] LoopNest.fuseLoopsSimple 2022-11-23T01:31:59.2098418Z [ OK ] LoopNest.fuseLoopsSimple (3 ms) 2022-11-23T01:31:59.2099098Z [ RUN ] LoopNest.fuseLoopsMultiple 2022-11-23T01:31:59.2222537Z [ OK ] LoopNest.fuseLoopsMultiple (12 ms) 2022-11-23T01:31:59.2223039Z [ RUN ] LoopNest.fuseLoopsNested 2022-11-23T01:31:59.2378753Z [ OK ] LoopNest.fuseLoopsNested (15 ms) 2022-11-23T01:31:59.2379317Z [ RUN ] LoopNest.fuseLoopsNested2D 2022-11-23T01:31:59.2461969Z [ OK ] LoopNest.fuseLoopsNested2D (8 ms) 2022-11-23T01:31:59.2462547Z [ RUN ] LoopNest.fuseLoopsNested2DInner 2022-11-23T01:31:59.2510757Z [ OK ] LoopNest.fuseLoopsNested2DInner (4 ms) 2022-11-23T01:31:59.2511367Z [ RUN ] LoopNest.fuseLoopsDifferentStopBounds 2022-11-23T01:31:59.2517785Z [ OK ] LoopNest.fuseLoopsDifferentStopBounds (0 ms) 2022-11-23T01:31:59.2518398Z [ RUN ] LoopNest.fuseLoopsDifferentStartBounds 2022-11-23T01:31:59.2522360Z [ OK ] LoopNest.fuseLoopsDifferentStartBounds (0 ms) 2022-11-23T01:31:59.2523181Z [ RUN ] LoopNest.fuseLoopsNotContiguous 2022-11-23T01:31:59.2559644Z [ OK ] LoopNest.fuseLoopsNotContiguous (3 ms) 2022-11-23T01:31:59.2560266Z [ RUN ] LoopNest.fuseLoopsWithDifferentParents 2022-11-23T01:31:59.2564641Z [ OK ] LoopNest.fuseLoopsWithDifferentParents (0 ms) 2022-11-23T01:31:59.2565250Z [ RUN ] LoopNest.fuseLoopsWithVariableBounds 2022-11-23T01:31:59.2640224Z [ OK ] LoopNest.fuseLoopsWithVariableBounds (7 ms) 2022-11-23T01:31:59.2640788Z [ RUN ] LoopNest.fuseLoopsWithExprBounds 2022-11-23T01:31:59.2748359Z [ OK ] LoopNest.fuseLoopsWithExprBounds (10 ms) 2022-11-23T01:31:59.2748977Z [ RUN ] LoopNest.fuseLoopsWithDifferentExprBounds 2022-11-23T01:31:59.2844871Z [ OK ] LoopNest.fuseLoopsWithDifferentExprBounds (9 ms) 2022-11-23T01:31:59.2845541Z [ RUN ] LoopNest.fuseLoopsWithNonOverlappingBufferAccesses 2022-11-23T01:31:59.2964721Z [ OK ] LoopNest.fuseLoopsWithNonOverlappingBufferAccesses (11 ms) 2022-11-23T01:31:59.2965208Z [ RUN ] LoopNest.fuseLoopsWithNonOverlapping2DBufferAccesses 2022-11-23T01:31:59.3189227Z [ OK ] LoopNest.fuseLoopsWithNonOverlapping2DBufferAccesses (22 ms) 2022-11-23T01:31:59.3189827Z [ RUN ] LoopNest.fuseLoopsWithReductions 2022-11-23T01:31:59.3320646Z [ OK ] LoopNest.fuseLoopsWithReductions (13 ms) 2022-11-23T01:31:59.3320984Z [ RUN ] LoopNest.fuseLoopsWith2DReductions 2022-11-23T01:31:59.3561788Z [ OK ] LoopNest.fuseLoopsWith2DReductions (24 ms) 2022-11-23T01:31:59.3562169Z [ RUN ] LoopNest.fuseLoopsWithComplexIndices 2022-11-23T01:31:59.3777267Z [ OK ] LoopNest.fuseLoopsWithComplexIndices (21 ms) 2022-11-23T01:31:59.3777671Z [ RUN ] LoopNest.fuseLoopsWithMixedLoopVarsAsIndices 2022-11-23T01:31:59.4058818Z [ OK ] LoopNest.fuseLoopsWithMixedLoopVarsAsIndices (28 ms) 2022-11-23T01:31:59.4059420Z [ RUN ] LoopNest.fuseLoopsWithTranspose 2022-11-23T01:31:59.4210643Z [ OK ] LoopNest.fuseLoopsWithTranspose (15 ms) 2022-11-23T01:31:59.4211010Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies1 2022-11-23T01:31:59.4341095Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies1 (13 ms) 2022-11-23T01:31:59.4341505Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies2 2022-11-23T01:31:59.4463091Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies2 (12 ms) 2022-11-23T01:31:59.4463490Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies3 2022-11-23T01:31:59.4680557Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies3 (21 ms) 2022-11-23T01:31:59.4680973Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies4 2022-11-23T01:31:59.4981079Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies4 (29 ms) 2022-11-23T01:31:59.4981493Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies5 2022-11-23T01:31:59.5122858Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies5 (14 ms) 2022-11-23T01:31:59.5123265Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies6 2022-11-23T01:31:59.5264717Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies6 (14 ms) 2022-11-23T01:31:59.5265106Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies7 2022-11-23T01:31:59.5399494Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies7 (13 ms) 2022-11-23T01:31:59.5399868Z [ RUN ] LoopNest.areLoopsPerfectlyNested 2022-11-23T01:31:59.5401496Z [ OK ] LoopNest.areLoopsPerfectlyNested (0 ms) 2022-11-23T01:31:59.5401839Z [ RUN ] LoopNest.reorderNestedLoops2D 2022-11-23T01:31:59.5403124Z [ OK ] LoopNest.reorderNestedLoops2D (0 ms) 2022-11-23T01:31:59.5403447Z [ RUN ] LoopNest.reorderNestedLoops3D 2022-11-23T01:31:59.5405338Z [ OK ] LoopNest.reorderNestedLoops3D (0 ms) 2022-11-23T01:31:59.5405667Z [ RUN ] LoopNest.reorderNestedLoops4D 2022-11-23T01:31:59.5407587Z [ OK ] LoopNest.reorderNestedLoops4D (0 ms) 2022-11-23T01:31:59.5407912Z [ RUN ] LoopNest.reorderTrivialPermutation 2022-11-23T01:31:59.5409574Z [ OK ] LoopNest.reorderTrivialPermutation (0 ms) 2022-11-23T01:31:59.5409933Z [ RUN ] LoopNest.reorderInvalidPermutations 2022-11-23T01:31:59.5412514Z [ OK ] LoopNest.reorderInvalidPermutations (0 ms) 2022-11-23T01:31:59.5412847Z [ RUN ] LoopNest.reorderInvalidLoopNest 2022-11-23T01:31:59.5415044Z [ OK ] LoopNest.reorderInvalidLoopNest (0 ms) 2022-11-23T01:31:59.5415416Z [ RUN ] LoopNest.compressBufferSimple 2022-11-23T01:31:59.5423296Z [ OK ] LoopNest.compressBufferSimple (0 ms) 2022-11-23T01:31:59.5423682Z [ RUN ] LoopNest.compressBufferMultipleDims 2022-11-23T01:31:59.5431020Z [ OK ] LoopNest.compressBufferMultipleDims (0 ms) 2022-11-23T01:31:59.5431386Z [ RUN ] LoopNest.compressBufferMultipleDims2 2022-11-23T01:31:59.5440669Z [ OK ] LoopNest.compressBufferMultipleDims2 (0 ms) 2022-11-23T01:31:59.5441185Z [ RUN ] LoopNest.compressBufferDifferentOrderIndices 2022-11-23T01:31:59.5449011Z [ OK ] LoopNest.compressBufferDifferentOrderIndices (0 ms) 2022-11-23T01:31:59.5449491Z [ RUN ] LoopNest.compressBufferVariableBounds 2022-11-23T01:31:59.5457178Z [ OK ] LoopNest.compressBufferVariableBounds (0 ms) 2022-11-23T01:31:59.5457608Z [ RUN ] LoopNest.compressBufferNoCommonParentLoops 2022-11-23T01:31:59.5465542Z [ OK ] LoopNest.compressBufferNoCommonParentLoops (0 ms) 2022-11-23T01:31:59.5465957Z [ RUN ] LoopNest.compressBufferIndicesMixed 2022-11-23T01:31:59.5473417Z [ OK ] LoopNest.compressBufferIndicesMixed (0 ms) 2022-11-23T01:31:59.5473806Z [ RUN ] LoopNest.compressMultipleBuffers 2022-11-23T01:31:59.5487741Z [ OK ] LoopNest.compressMultipleBuffers (1 ms) 2022-11-23T01:31:59.5488046Z [ RUN ] LoopNest.sanitizeNames 2022-11-23T01:31:59.5742085Z [ OK ] LoopNest.sanitizeNames (25 ms) 2022-11-23T01:31:59.5742436Z [----------] 174 tests from LoopNest (58894 ms total) 2022-11-23T01:31:59.5743362Z 2022-11-23T01:31:59.5744560Z [----------] 31 tests from MemDependency 2022-11-23T01:31:59.5745122Z [ RUN ] MemDependency.BoundOverlap 2022-11-23T01:31:59.6093035Z [ OK ] MemDependency.BoundOverlap (34 ms) 2022-11-23T01:31:59.6093414Z [ RUN ] MemDependency.BoundComparison 2022-11-23T01:31:59.6367346Z [ OK ] MemDependency.BoundComparison (27 ms) 2022-11-23T01:31:59.6367748Z [ RUN ] MemDependency.BoundOverlapSymbolic 2022-11-23T01:31:59.6607344Z [ OK ] MemDependency.BoundOverlapSymbolic (23 ms) 2022-11-23T01:31:59.6607730Z [ RUN ] MemDependency.BoundOverlapMultiDim 2022-11-23T01:31:59.6879762Z [ OK ] MemDependency.BoundOverlapMultiDim (27 ms) 2022-11-23T01:31:59.6880359Z [ RUN ] MemDependency.BoundSubtract 2022-11-23T01:31:59.7117558Z [ OK ] MemDependency.BoundSubtract (23 ms) 2022-11-23T01:31:59.7117918Z [ RUN ] MemDependency.BoundSubtractSymbolic 2022-11-23T01:31:59.7755336Z [ OK ] MemDependency.BoundSubtractSymbolic (63 ms) 2022-11-23T01:31:59.7755735Z [ RUN ] MemDependency.BoundSubtractMultiDim 2022-11-23T01:31:59.8524231Z [ OK ] MemDependency.BoundSubtractMultiDim (76 ms) 2022-11-23T01:31:59.8524638Z [ RUN ] MemDependency.BoundSubtractMultiDimSymbolic 2022-11-23T01:31:59.9521141Z [ OK ] MemDependency.BoundSubtractMultiDimSymbolic (99 ms) 2022-11-23T01:31:59.9521599Z [ RUN ] MemDependency.MemDependencyCheckerSimple 2022-11-23T01:31:59.9530068Z [ OK ] MemDependency.MemDependencyCheckerSimple (0 ms) 2022-11-23T01:31:59.9530478Z [ RUN ] MemDependency.MemDependencyCheckerMultiStmt 2022-11-23T01:31:59.9547789Z [ OK ] MemDependency.MemDependencyCheckerMultiStmt (1 ms) 2022-11-23T01:31:59.9548263Z [ RUN ] MemDependency.MemDependencyCheckerOverlap 2022-11-23T01:31:59.9563147Z [ OK ] MemDependency.MemDependencyCheckerOverlap (1 ms) 2022-11-23T01:31:59.9563529Z [ RUN ] MemDependency.MemDependencyCheckerLoop 2022-11-23T01:31:59.9603922Z [ OK ] MemDependency.MemDependencyCheckerLoop (4 ms) 2022-11-23T01:31:59.9604326Z [ RUN ] MemDependency.MemDependencyCheckerLoopReduce 2022-11-23T01:31:59.9673993Z [ OK ] MemDependency.MemDependencyCheckerLoopReduce (6 ms) 2022-11-23T01:31:59.9674428Z [ RUN ] MemDependency.MemDependencyCheckerLoopReduceExpanded 2022-11-23T01:31:59.9744428Z [ OK ] MemDependency.MemDependencyCheckerLoopReduceExpanded (6 ms) 2022-11-23T01:31:59.9744890Z [ RUN ] MemDependency.MemDependencyCheckerInputsOutputs 2022-11-23T01:31:59.9788332Z [ OK ] MemDependency.MemDependencyCheckerInputsOutputs (4 ms) 2022-11-23T01:31:59.9788983Z [ RUN ] MemDependency.MemDependencyCheckerOutputDoesntDepend 2022-11-23T01:31:59.9817558Z [ OK ] MemDependency.MemDependencyCheckerOutputDoesntDepend (2 ms) 2022-11-23T01:31:59.9818002Z [ RUN ] MemDependency.MemDependencyCheckerLoopBounds 2022-11-23T01:32:00.0125008Z [ OK ] MemDependency.MemDependencyCheckerLoopBounds (30 ms) 2022-11-23T01:32:00.0125557Z [ RUN ] MemDependency.MemDependencyCheckerLoopBoundsIndexShift 2022-11-23T01:32:00.0922352Z [ OK ] MemDependency.MemDependencyCheckerLoopBoundsIndexShift (79 ms) 2022-11-23T01:32:00.0922876Z [ RUN ] MemDependency.MemDependencyCheckerLoopSelfDependency 2022-11-23T01:32:00.5208005Z [ OK ] MemDependency.MemDependencyCheckerLoopSelfDependency (428 ms) 2022-11-23T01:32:00.5208879Z [ RUN ] MemDependency.MemDependencyCheckerLoopDistinctStrides 2022-11-23T01:32:00.5473724Z [ OK ] MemDependency.MemDependencyCheckerLoopDistinctStrides (26 ms) 2022-11-23T01:32:00.5474557Z [ RUN ] MemDependency.MemDependencyCheckerLoopBoundsCond 2022-11-23T01:32:00.5990137Z [ OK ] MemDependency.MemDependencyCheckerLoopBoundsCond (51 ms) 2022-11-23T01:32:00.5990919Z [ RUN ] MemDependency.MemDependencyCheckerIfThenElse 2022-11-23T01:32:00.6345927Z [ OK ] MemDependency.MemDependencyCheckerIfThenElse (35 ms) 2022-11-23T01:32:00.6346676Z [ RUN ] MemDependency.MemDependencyCheckerCutLoop 2022-11-23T01:32:00.6907407Z [ OK ] MemDependency.MemDependencyCheckerCutLoop (56 ms) 2022-11-23T01:32:00.6908247Z [ RUN ] MemDependency.MemDependencyCheckerDynamicShapes 2022-11-23T01:32:00.7703128Z [ OK ] MemDependency.MemDependencyCheckerDynamicShapes (79 ms) 2022-11-23T01:32:00.7703902Z [ RUN ] MemDependency.MemDependencyCheckerMultiDim 2022-11-23T01:32:00.8745302Z [ OK ] MemDependency.MemDependencyCheckerMultiDim (104 ms) 2022-11-23T01:32:00.8746046Z [ RUN ] MemDependency.MemDependencyCheckerComputeAPI 2022-11-23T01:32:00.9041356Z [ OK ] MemDependency.MemDependencyCheckerComputeAPI (29 ms) 2022-11-23T01:32:00.9041834Z [ RUN ] MemDependency.MemDependencyCheckerComputeInline 2022-11-23T01:32:00.9258280Z [ OK ] MemDependency.MemDependencyCheckerComputeInline (21 ms) 2022-11-23T01:32:00.9259070Z [ RUN ] MemDependency.MemDependencyCheckerComputeSplit 2022-11-23T01:32:00.9854885Z [ OK ] MemDependency.MemDependencyCheckerComputeSplit (59 ms) 2022-11-23T01:32:00.9855672Z [ RUN ] MemDependency.MemDependencyCheckerComputeReorder 2022-11-23T01:32:01.0248648Z [ OK ] MemDependency.MemDependencyCheckerComputeReorder (39 ms) 2022-11-23T01:32:01.0249080Z [ RUN ] MemDependency.MemDependencyCheckerComputeReduce 2022-11-23T01:32:01.0549745Z [ OK ] MemDependency.MemDependencyCheckerComputeReduce (30 ms) 2022-11-23T01:32:01.0550189Z [ RUN ] MemDependency.MemDependencyCheckerComputeGEMM 2022-11-23T01:32:01.4763229Z [ OK ] MemDependency.MemDependencyCheckerComputeGEMM (421 ms) 2022-11-23T01:32:01.4763716Z [----------] 31 tests from MemDependency (1901 ms total) 2022-11-23T01:32:01.4763889Z 2022-11-23T01:32:01.4764024Z [----------] 2 tests from Ops 2022-11-23T01:32:01.4764322Z [ RUN ] Ops.Sum 2022-11-23T01:32:01.6045202Z [ OK ] Ops.Sum (128 ms) 2022-11-23T01:32:01.6045676Z [ RUN ] Ops.ChannelsLastSum 2022-11-23T01:32:05.7310697Z [ OK ] Ops.ChannelsLastSum (4126 ms) 2022-11-23T01:32:05.7311135Z [----------] 2 tests from Ops (4254 ms total) 2022-11-23T01:32:05.7311358Z 2022-11-23T01:32:05.7313294Z [----------] 10 tests from Quantization 2022-11-23T01:32:05.7313806Z [ RUN ] Quantization.QuantDequantInt8 2022-11-23T01:32:05.7725451Z [ OK ] Quantization.QuantDequantInt8 (41 ms) 2022-11-23T01:32:05.7725819Z [ RUN ] Quantization.QuantDequantUInt8 2022-11-23T01:32:05.8138991Z [ OK ] Quantization.QuantDequantUInt8 (41 ms) 2022-11-23T01:32:05.8139566Z [ RUN ] Quantization.QuantDequantUInt8_NLC 2022-11-23T01:32:05.8720792Z [ OK ] Quantization.QuantDequantUInt8_NLC (58 ms) 2022-11-23T01:32:05.8721166Z [ RUN ] Quantization.QuantAddDequantInt8 2022-11-23T01:32:05.9384691Z [ OK ] Quantization.QuantAddDequantInt8 (66 ms) 2022-11-23T01:32:05.9385064Z [ RUN ] Quantization.QuantAddDequantUInt8 2022-11-23T01:32:06.0046383Z [ OK ] Quantization.QuantAddDequantUInt8 (66 ms) 2022-11-23T01:32:06.0046748Z [ RUN ] Quantization.QuantSigmoidDequantUInt8 2022-11-23T01:32:06.0537079Z [ OK ] Quantization.QuantSigmoidDequantUInt8 (48 ms) 2022-11-23T01:32:06.0537546Z [ RUN ] Quantization.QuantMulDequantUInt8 2022-11-23T01:32:06.1166848Z [ OK ] Quantization.QuantMulDequantUInt8 (62 ms) 2022-11-23T01:32:06.1167270Z [ RUN ] Quantization.QuantUpsampleNearst2dDequantUInt8 2022-11-23T01:32:06.2251883Z [ OK ] Quantization.QuantUpsampleNearst2dDequantUInt8 (108 ms) 2022-11-23T01:32:06.2252304Z [ RUN ] Quantization.UpsampleNearst2d 2022-11-23T01:32:06.2718411Z [ OK ] Quantization.UpsampleNearst2d (46 ms) 2022-11-23T01:32:06.2718948Z [ RUN ] Quantization.QuantCatDequantUInt8 2022-11-23T01:32:06.4407310Z [ OK ] Quantization.QuantCatDequantUInt8 (168 ms) 2022-11-23T01:32:06.4408011Z [----------] 10 tests from Quantization (709 ms total) 2022-11-23T01:32:06.4408240Z 2022-11-23T01:32:06.4408443Z [----------] 2 tests from BufLiveRange 2022-11-23T01:32:06.4408821Z [ RUN ] BufLiveRange.SingleRangeLine 2022-11-23T01:32:06.4409980Z [ OK ] BufLiveRange.SingleRangeLine (0 ms) 2022-11-23T01:32:06.4410502Z [ RUN ] BufLiveRange.MulRangeLine 2022-11-23T01:32:06.4415356Z [ OK ] BufLiveRange.MulRangeLine (0 ms) 2022-11-23T01:32:06.4415965Z [----------] 2 tests from BufLiveRange (0 ms total) 2022-11-23T01:32:06.4416241Z 2022-11-23T01:32:06.4416388Z [----------] 6 tests from MemPlanning 2022-11-23T01:32:06.4416698Z [ RUN ] MemPlanning.MemReuseWithTypeCast 2022-11-23T01:32:06.5941381Z [ OK ] MemPlanning.MemReuseWithTypeCast (152 ms) 2022-11-23T01:32:06.5941792Z [ RUN ] MemPlanning.NoMemReuseForLargerType 2022-11-23T01:32:06.7472963Z [ OK ] MemPlanning.NoMemReuseForLargerType (153 ms) 2022-11-23T01:32:06.7473399Z [ RUN ] MemPlanning.SameBufSizeMemReuse 2022-11-23T01:32:06.7581181Z [ OK ] MemPlanning.SameBufSizeMemReuse (10 ms) 2022-11-23T01:32:06.7581796Z [ RUN ] MemPlanning.SameBufSizeMultiMemReuses 2022-11-23T01:32:06.7716851Z [ OK ] MemPlanning.SameBufSizeMultiMemReuses (13 ms) 2022-11-23T01:32:06.7717420Z [ RUN ] MemPlanning.SameBufSizeMultiMemReusesOfOneBuf 2022-11-23T01:32:06.7878776Z [ OK ] MemPlanning.SameBufSizeMultiMemReusesOfOneBuf (16 ms) 2022-11-23T01:32:06.7879242Z [ RUN ] MemPlanning.SmallerBufSizeNonMemReuse 2022-11-23T01:32:06.7989684Z [ OK ] MemPlanning.SmallerBufSizeNonMemReuse (11 ms) 2022-11-23T01:32:06.7990358Z [----------] 6 tests from MemPlanning (357 ms total) 2022-11-23T01:32:06.7990534Z 2022-11-23T01:32:06.7990682Z [----------] 45 tests from Reductions 2022-11-23T01:32:06.7990966Z [ RUN ] Reductions.ReduceSum0D_1 2022-11-23T01:32:06.8012480Z [ OK ] Reductions.ReduceSum0D_1 (2 ms) 2022-11-23T01:32:06.8012796Z [ RUN ] Reductions.ReduceSum0D_2 2022-11-23T01:32:06.8017709Z [ OK ] Reductions.ReduceSum0D_2 (0 ms) 2022-11-23T01:32:06.8018009Z [ RUN ] Reductions.ReduceSum1D 2022-11-23T01:32:06.8046592Z [ OK ] Reductions.ReduceSum1D (2 ms) 2022-11-23T01:32:06.8046891Z [ RUN ] Reductions.ReduceSum2D 2022-11-23T01:32:06.8156214Z [ OK ] Reductions.ReduceSum2D (10 ms) 2022-11-23T01:32:06.8156513Z [ RUN ] Reductions.ReduceSum3D 2022-11-23T01:32:06.9208334Z [ OK ] Reductions.ReduceSum3D (105 ms) 2022-11-23T01:32:06.9208704Z [ RUN ] Reductions.ReduceSum10D 2022-11-23T01:32:32.9767289Z [ OK ] Reductions.ReduceSum10D (26055 ms) 2022-11-23T01:32:32.9767628Z [ RUN ] Reductions.ReduceProduct 2022-11-23T01:32:32.9864701Z [ OK ] Reductions.ReduceProduct (9 ms) 2022-11-23T01:32:32.9865118Z [ RUN ] Reductions.ReduceMax 2022-11-23T01:32:32.9976101Z [ OK ] Reductions.ReduceMax (11 ms) 2022-11-23T01:32:32.9976542Z [ RUN ] Reductions.ReduceMinCustomInitializer 2022-11-23T01:32:33.0013406Z [ OK ] Reductions.ReduceMinCustomInitializer (3 ms) 2022-11-23T01:32:33.0013954Z [ RUN ] Reductions.ReduceAnyAll 2022-11-23T01:32:33.0716703Z [ OK ] Reductions.ReduceAnyAll (70 ms) 2022-11-23T01:32:33.0717168Z [ RUN ] Reductions.ReduceMatmul2D 2022-11-23T01:32:33.1030709Z [ OK ] Reductions.ReduceMatmul2D (31 ms) 2022-11-23T01:32:33.1031252Z [ RUN ] Reductions.ReduceRfactorLike 2022-11-23T01:32:33.1400101Z [ OK ] Reductions.ReduceRfactorLike (36 ms) 2022-11-23T01:32:33.1400602Z [ RUN ] Reductions.ReduceAsProducer 2022-11-23T01:32:33.2151022Z [ OK ] Reductions.ReduceAsProducer (75 ms) 2022-11-23T01:32:33.2151605Z [ RUN ] Reductions.ReduceAsConsumer 2022-11-23T01:32:33.3314362Z [ OK ] Reductions.ReduceAsConsumer (116 ms) 2022-11-23T01:32:33.3871522Z [ RUN ] Reductions.SplitReduceAxis 2022-11-23T01:32:33.3871878Z [ OK ] Reductions.SplitReduceAxis (55 ms) 2022-11-23T01:32:33.3872205Z [ RUN ] Reductions.SplitNonReduceAxis 2022-11-23T01:32:33.5031307Z [ OK ] Reductions.SplitNonReduceAxis (115 ms) 2022-11-23T01:32:33.5031706Z [ RUN ] Reductions.ReorderedReductionInitializer 2022-11-23T01:32:33.6422963Z [ OK ] Reductions.ReorderedReductionInitializer (139 ms) 2022-11-23T01:32:33.6423340Z [ RUN ] Reductions.ReduceRfactor 2022-11-23T01:32:33.6768789Z [ OK ] Reductions.ReduceRfactor (34 ms) 2022-11-23T01:32:33.6769118Z [ RUN ] Reductions.Reduce3DRfactorInner 2022-11-23T01:32:34.1324251Z [ OK ] Reductions.Reduce3DRfactorInner (455 ms) 2022-11-23T01:32:34.1324882Z [ RUN ] Reductions.Reduce3DRfactorOuter 2022-11-23T01:32:34.5829351Z [ OK ] Reductions.Reduce3DRfactorOuter (450 ms) 2022-11-23T01:32:34.5830039Z [ RUN ] Reductions.ReduceRepeatedInternalRfactor 2022-11-23T01:32:41.0605960Z [ OK ] Reductions.ReduceRepeatedInternalRfactor (6477 ms) 2022-11-23T01:32:41.0606570Z [ RUN ] Reductions.ReduceSplitTail 2022-11-23T01:32:42.4748855Z [ OK ] Reductions.ReduceSplitTail (1414 ms) 2022-11-23T01:32:42.4749461Z [ RUN ] Reductions.ReduceSplitNoTail 2022-11-23T01:32:44.1310752Z [ OK ] Reductions.ReduceSplitNoTail (1656 ms) 2022-11-23T01:32:44.1311316Z [ RUN ] Reductions.ReduceOverSplitTail 2022-11-23T01:32:45.4929565Z [ OK ] Reductions.ReduceOverSplitTail (1361 ms) 2022-11-23T01:32:45.4930104Z [ RUN ] Reductions.ReduceSplitMask 2022-11-23T01:32:47.2949472Z [ OK ] Reductions.ReduceSplitMask (1801 ms) 2022-11-23T01:32:47.2950021Z [ RUN ] Reductions.ReduceSplitNoMask 2022-11-23T01:32:48.9464763Z [ OK ] Reductions.ReduceSplitNoMask (1651 ms) 2022-11-23T01:32:48.9465635Z [ RUN ] Reductions.ReduceOverSplitMask 2022-11-23T01:32:50.3954199Z [ OK ] Reductions.ReduceOverSplitMask (1448 ms) 2022-11-23T01:32:50.3954764Z [ RUN ] Reductions.ReduceSplitRfactor 2022-11-23T01:32:50.5433887Z [ OK ] Reductions.ReduceSplitRfactor (147 ms) 2022-11-23T01:32:50.5434516Z [ RUN ] Reductions.ReduceOverSplitRfactor 2022-11-23T01:32:50.5887960Z [ OK ] Reductions.ReduceOverSplitRfactor (45 ms) 2022-11-23T01:32:50.5888553Z [ RUN ] Reductions.ReduceInlineReduction 2022-11-23T01:32:50.5908998Z [ OK ] Reductions.ReduceInlineReduction (2 ms) 2022-11-23T01:32:50.5909588Z [ RUN ] Reductions.ReduceInlineConsumer 2022-11-23T01:32:50.9111853Z [ OK ] Reductions.ReduceInlineConsumer (320 ms) 2022-11-23T01:32:50.9112466Z [ RUN ] Reductions.ReduceInlineReducerInternal 2022-11-23T01:32:51.2388470Z [ OK ] Reductions.ReduceInlineReducerInternal (327 ms) 2022-11-23T01:32:51.2389198Z [ RUN ] Reductions.ReductionCacheAccessesOperatorAxis 2022-11-23T01:32:51.3901440Z [ OK ] Reductions.ReductionCacheAccessesOperatorAxis (151 ms) 2022-11-23T01:32:51.3902225Z [ RUN ] Reductions.ReductionCacheAccessesOuterReduceAxis 2022-11-23T01:32:51.5335486Z [ OK ] Reductions.ReductionCacheAccessesOuterReduceAxis (143 ms) 2022-11-23T01:32:51.5336307Z [ RUN ] Reductions.ReductionCacheAccessesInnerReduceAxis 2022-11-23T01:32:51.6771886Z [ OK ] Reductions.ReductionCacheAccessesInnerReduceAxis (143 ms) 2022-11-23T01:32:51.6772647Z [ RUN ] Reductions.ReductionCacheBodyAccess 2022-11-23T01:32:51.7192218Z [ OK ] Reductions.ReductionCacheBodyAccess (42 ms) 2022-11-23T01:32:51.7192910Z [ RUN ] Reductions.ReductionCacheConsumerAccess 2022-11-23T01:32:51.7645324Z [ OK ] Reductions.ReductionCacheConsumerAccess (45 ms) 2022-11-23T01:32:51.7646121Z [ RUN ] Reductions.ReductionSplitCacheConsumerAccess 2022-11-23T01:32:51.8166779Z [ OK ] Reductions.ReductionSplitCacheConsumerAccess (52 ms) 2022-11-23T01:32:51.8167557Z [ RUN ] Reductions.ReductionReorderCacheConsumerAccess 2022-11-23T01:32:51.8631560Z [ OK ] Reductions.ReductionReorderCacheConsumerAccess (46 ms) 2022-11-23T01:32:51.8632030Z [ RUN ] Reductions.ReductionRfactorCacheTempOuter 2022-11-23T01:32:52.4711413Z [ OK ] Reductions.ReductionRfactorCacheTempOuter (607 ms) 2022-11-23T01:32:52.4711894Z [ RUN ] Reductions.ReductionRfactorCacheTempInner 2022-11-23T01:32:52.9643117Z [ OK ] Reductions.ReductionRfactorCacheTempInner (493 ms) 2022-11-23T01:32:52.9643535Z [ RUN ] Reductions.ReductionVectorize 2022-11-23T01:32:53.0021551Z [ OK ] Reductions.ReductionVectorize (37 ms) 2022-11-23T01:32:53.0021917Z [ RUN ] Reductions.ReductionVectorizeInner 2022-11-23T01:32:53.0030112Z [ OK ] Reductions.ReductionVectorizeInner (0 ms) 2022-11-23T01:32:53.0030498Z [ RUN ] Reductions.ReductionVectorizeRfactor 2022-11-23T01:32:53.0444320Z [ OK ] Reductions.ReductionVectorizeRfactor (41 ms) 2022-11-23T01:32:53.0444708Z [ RUN ] Reductions.InitFunction 2022-11-23T01:32:53.0488931Z [ OK ] Reductions.InitFunction (4 ms) 2022-11-23T01:32:53.0489299Z [----------] 45 tests from Reductions (46249 ms total) 2022-11-23T01:32:53.0490929Z 2022-11-23T01:32:53.0491251Z [----------] 69 tests from Registerizer 2022-11-23T01:32:53.0491862Z [ RUN ] Registerizer.RegisterizerSimple 2022-11-23T01:32:53.0528445Z [ OK ] Registerizer.RegisterizerSimple (3 ms) 2022-11-23T01:32:53.0528789Z [ RUN ] Registerizer.RegisterizerLoop 2022-11-23T01:32:53.0557375Z [ OK ] Registerizer.RegisterizerLoop (2 ms) 2022-11-23T01:32:53.0557740Z [ RUN ] Registerizer.RegisterizerLoopFixedLoad 2022-11-23T01:32:53.0591443Z [ OK ] Registerizer.RegisterizerLoopFixedLoad (3 ms) 2022-11-23T01:32:53.0591815Z [ RUN ] Registerizer.RegisterizerLoopInternal 2022-11-23T01:32:53.0624360Z [ OK ] Registerizer.RegisterizerLoopInternal (3 ms) 2022-11-23T01:32:53.0624786Z [ RUN ] Registerizer.RegisterizerLoopInternalLoadOverlap 2022-11-23T01:32:53.0666854Z [ OK ] Registerizer.RegisterizerLoopInternalLoadOverlap (4 ms) 2022-11-23T01:32:53.0667333Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeated 2022-11-23T01:32:53.0759807Z [ OK ] Registerizer.RegisterizerLoopInternalRepeated (9 ms) 2022-11-23T01:32:53.0760308Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeatedOverlapLoopVar 2022-11-23T01:32:53.0833175Z [ OK ] Registerizer.RegisterizerLoopInternalRepeatedOverlapLoopVar (7 ms) 2022-11-23T01:32:53.0833691Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeatedOverlapOther 2022-11-23T01:32:53.0907022Z [ OK ] Registerizer.RegisterizerLoopInternalRepeatedOverlapOther (7 ms) 2022-11-23T01:32:53.0907498Z [ RUN ] Registerizer.RegisterizerMultiVar 2022-11-23T01:32:53.0977953Z [ OK ] Registerizer.RegisterizerMultiVar (7 ms) 2022-11-23T01:32:53.0978328Z [ RUN ] Registerizer.RegisterizerVariableLoad 2022-11-23T01:32:53.1032136Z [ OK ] Registerizer.RegisterizerVariableLoad (5 ms) 2022-11-23T01:32:53.1032524Z [ RUN ] Registerizer.RegisterizerSymbolicIndices 2022-11-23T01:32:53.1070614Z [ OK ] Registerizer.RegisterizerSymbolicIndices (3 ms) 2022-11-23T01:32:53.1071058Z [ RUN ] Registerizer.RegisterizerMultiLoop 2022-11-23T01:32:53.1133182Z [ OK ] Registerizer.RegisterizerMultiLoop (6 ms) 2022-11-23T01:32:53.1133546Z [ RUN ] Registerizer.RegisterizerRepeated 2022-11-23T01:32:53.1220705Z [ OK ] Registerizer.RegisterizerRepeated (8 ms) 2022-11-23T01:32:53.1221116Z [ RUN ] Registerizer.RegisterizerNoLoads 2022-11-23T01:32:53.1255360Z [ OK ] Registerizer.RegisterizerNoLoads (3 ms) 2022-11-23T01:32:53.1255838Z [ RUN ] Registerizer.RegisterizerNoRepeatedStores 2022-11-23T01:32:53.1294443Z [ OK ] Registerizer.RegisterizerNoRepeatedStores (3 ms) 2022-11-23T01:32:53.1295035Z [ RUN ] Registerizer.RegisterizerMultiVarOverlap 2022-11-23T01:32:53.1378649Z [ OK ] Registerizer.RegisterizerMultiVarOverlap (8 ms) 2022-11-23T01:32:53.1379310Z [ RUN ] Registerizer.RegisterizerAllocs 2022-11-23T01:32:53.1455113Z [ OK ] Registerizer.RegisterizerAllocs (7 ms) 2022-11-23T01:32:53.1455494Z [ RUN ] Registerizer.RegisterizerNoInitializer 2022-11-23T01:32:53.1483915Z [ OK ] Registerizer.RegisterizerNoInitializer (2 ms) 2022-11-23T01:32:53.1484313Z [ RUN ] Registerizer.RegisterizerNoInitializerLoopVar 2022-11-23T01:32:53.1513656Z [ OK ] Registerizer.RegisterizerNoInitializerLoopVar (2 ms) 2022-11-23T01:32:53.1514060Z [ RUN ] Registerizer.RegisterizerLoadThenStore 2022-11-23T01:32:53.1556036Z [ OK ] Registerizer.RegisterizerLoadThenStore (4 ms) 2022-11-23T01:32:53.1556423Z [ RUN ] Registerizer.RegisterizerParallelized 2022-11-23T01:32:53.1570492Z [ OK ] Registerizer.RegisterizerParallelized (1 ms) 2022-11-23T01:32:53.1570897Z [ RUN ] Registerizer.RegisterizerConditionAfter 2022-11-23T01:32:53.1610822Z [ OK ] Registerizer.RegisterizerConditionAfter (3 ms) 2022-11-23T01:32:53.1611218Z [ RUN ] Registerizer.RegisterizerConditionBefore 2022-11-23T01:32:53.1647056Z [ OK ] Registerizer.RegisterizerConditionBefore (3 ms) 2022-11-23T01:32:53.1647725Z [ RUN ] Registerizer.RegisterizerConditionInside 2022-11-23T01:32:53.1698806Z [ OK ] Registerizer.RegisterizerConditionInside (5 ms) 2022-11-23T01:32:53.1699242Z [ RUN ] Registerizer.RegisterizerConditionInsideOverlap1 2022-11-23T01:32:53.1757809Z [ OK ] Registerizer.RegisterizerConditionInsideOverlap1 (5 ms) 2022-11-23T01:32:53.1758250Z [ RUN ] Registerizer.RegisterizerConditionInsideOverlap2 2022-11-23T01:32:53.1842944Z [ OK ] Registerizer.RegisterizerConditionInsideOverlap2 (8 ms) 2022-11-23T01:32:53.1843360Z [ RUN ] Registerizer.RegisterizerConditionHidden 2022-11-23T01:32:53.1872757Z [ OK ] Registerizer.RegisterizerConditionHidden (2 ms) 2022-11-23T01:32:53.1873140Z [ RUN ] Registerizer.RegisterizerConditionUnhidden 2022-11-23T01:32:53.1919609Z [ OK ] Registerizer.RegisterizerConditionUnhidden (4 ms) 2022-11-23T01:32:53.1920011Z [ RUN ] Registerizer.RegisterizerCondCondition 2022-11-23T01:32:53.1963518Z [ OK ] Registerizer.RegisterizerCondCondition (4 ms) 2022-11-23T01:32:53.1964170Z [ RUN ] Registerizer.RegisterizerCondConditionUnhidden 2022-11-23T01:32:53.2011745Z [ OK ] Registerizer.RegisterizerCondConditionUnhidden (4 ms) 2022-11-23T01:32:53.2012347Z [ RUN ] Registerizer.RegisterizerIfThenElseHidden 2022-11-23T01:32:53.2105854Z [ OK ] Registerizer.RegisterizerIfThenElseHidden (9 ms) 2022-11-23T01:32:53.2106482Z [ RUN ] Registerizer.RegisterizerIfThenElseUnhidden 2022-11-23T01:32:53.2213788Z [ OK ] Registerizer.RegisterizerIfThenElseUnhidden (10 ms) 2022-11-23T01:32:53.2214319Z [ RUN ] Registerizer.RegisterizerIfThenElseNested 2022-11-23T01:32:53.2262452Z [ OK ] Registerizer.RegisterizerIfThenElseNested (4 ms) 2022-11-23T01:32:53.2263093Z [ RUN ] Registerizer.RegisterizerIfThenElseInternal 2022-11-23T01:32:53.2322314Z [ OK ] Registerizer.RegisterizerIfThenElseInternal (5 ms) 2022-11-23T01:32:53.2322910Z [ RUN ] Registerizer.RegisterizerIfThenElseCondition 2022-11-23T01:32:53.2356527Z [ OK ] Registerizer.RegisterizerIfThenElseCondition (3 ms) 2022-11-23T01:32:53.2357205Z [ RUN ] Registerizer.RegisterizerIfThenElseConditionUnhidden 2022-11-23T01:32:53.2406419Z [ OK ] Registerizer.RegisterizerIfThenElseConditionUnhidden (4 ms) 2022-11-23T01:32:53.2407038Z [ RUN ] Registerizer.RegisterizerConditionBranchOnly 2022-11-23T01:32:53.2720359Z [ OK ] Registerizer.RegisterizerConditionBranchOnly (31 ms) 2022-11-23T01:32:53.2721108Z [ RUN ] Registerizer.RegisterizerCondIfThenElse 2022-11-23T01:32:53.2772193Z [ OK ] Registerizer.RegisterizerCondIfThenElse (5 ms) 2022-11-23T01:32:53.2772796Z [ RUN ] Registerizer.RegisterizerIfThenElseLoop 2022-11-23T01:32:53.2808347Z [ OK ] Registerizer.RegisterizerIfThenElseLoop (3 ms) 2022-11-23T01:32:53.2808951Z [ RUN ] Registerizer.RegisterizerIfThenElseLoopCut 2022-11-23T01:32:53.2848067Z [ OK ] Registerizer.RegisterizerIfThenElseLoopCut (3 ms) 2022-11-23T01:32:53.2848658Z [ RUN ] Registerizer.RegisterizerPartialAfter 2022-11-23T01:32:53.2919745Z [ OK ] Registerizer.RegisterizerPartialAfter (7 ms) 2022-11-23T01:32:53.2920344Z [ RUN ] Registerizer.RegisterizerPartialBefore 2022-11-23T01:32:53.2991442Z [ OK ] Registerizer.RegisterizerPartialBefore (7 ms) 2022-11-23T01:32:53.2992116Z [ RUN ] Registerizer.RegisterizerPartialInside 2022-11-23T01:32:53.3081735Z [ OK ] Registerizer.RegisterizerPartialInside (9 ms) 2022-11-23T01:32:53.3082355Z [ RUN ] Registerizer.RegisterizerPartialCondition 2022-11-23T01:32:53.3187586Z [ OK ] Registerizer.RegisterizerPartialCondition (10 ms) 2022-11-23T01:32:53.3188391Z [ RUN ] Registerizer.RegisterizerPartialConditionInternalCut 2022-11-23T01:32:53.3220592Z [ OK ] Registerizer.RegisterizerPartialConditionInternalCut (3 ms) 2022-11-23T01:32:53.3221219Z [ RUN ] Registerizer.RegisterizerPartialConditionInternalStart 2022-11-23T01:32:53.3251923Z [ OK ] Registerizer.RegisterizerPartialConditionInternalStart (3 ms) 2022-11-23T01:32:53.3252400Z [ RUN ] Registerizer.RegisterizerPartialOverlapsTwo 2022-11-23T01:32:53.3319735Z [ OK ] Registerizer.RegisterizerPartialOverlapsTwo (6 ms) 2022-11-23T01:32:53.3320130Z [ RUN ] Registerizer.RegisterizerNestedBlocks 2022-11-23T01:32:53.3362952Z [ OK ] Registerizer.RegisterizerNestedBlocks (4 ms) 2022-11-23T01:32:53.3363353Z [ RUN ] Registerizer.RegisterizerNestedConditions 2022-11-23T01:32:53.3404123Z [ OK ] Registerizer.RegisterizerNestedConditions (4 ms) 2022-11-23T01:32:53.3404545Z [ RUN ] Registerizer.RegisterizerNestedConditionsUnhidden 2022-11-23T01:32:53.3454059Z [ OK ] Registerizer.RegisterizerNestedConditionsUnhidden (4 ms) 2022-11-23T01:32:53.3454519Z [ RUN ] Registerizer.RegisterizerNestedConditionsHiddenFirst 2022-11-23T01:32:53.3523523Z [ OK ] Registerizer.RegisterizerNestedConditionsHiddenFirst (6 ms) 2022-11-23T01:32:53.3523990Z [ RUN ] Registerizer.RegisterizerNestedConditionsHiddenSecond 2022-11-23T01:32:53.3591395Z [ OK ] Registerizer.RegisterizerNestedConditionsHiddenSecond (6 ms) 2022-11-23T01:32:53.3591856Z [ RUN ] Registerizer.RegisterizerNestedConditionsCut 2022-11-23T01:32:53.3630600Z [ OK ] Registerizer.RegisterizerNestedConditionsCut (3 ms) 2022-11-23T01:32:53.3631058Z [ RUN ] Registerizer.RegisterizerNestedConditionLoopHidden 2022-11-23T01:32:53.3694063Z [ OK ] Registerizer.RegisterizerNestedConditionLoopHidden (6 ms) 2022-11-23T01:32:53.3694523Z [ RUN ] Registerizer.RegisterizerNestedConditionThreeDeep 2022-11-23T01:32:53.3833204Z [ OK ] Registerizer.RegisterizerNestedConditionThreeDeep (13 ms) 2022-11-23T01:32:53.3833632Z [ RUN ] Registerizer.RegisterizerNestedLoopSimple 2022-11-23T01:32:53.3871726Z [ OK ] Registerizer.RegisterizerNestedLoopSimple (3 ms) 2022-11-23T01:32:53.3872111Z [ RUN ] Registerizer.RegisterizerHiddenAccessYes 2022-11-23T01:32:53.3951858Z [ OK ] Registerizer.RegisterizerHiddenAccessYes (7 ms) 2022-11-23T01:32:53.3952249Z [ RUN ] Registerizer.RegisterizerHiddenAccessNo 2022-11-23T01:32:53.4024579Z [ OK ] Registerizer.RegisterizerHiddenAccessNo (7 ms) 2022-11-23T01:32:53.4024989Z [ RUN ] Registerizer.RegisterizerHiddenAccessMultiLoop 2022-11-23T01:32:53.4118580Z [ OK ] Registerizer.RegisterizerHiddenAccessMultiLoop (9 ms) 2022-11-23T01:32:53.4119015Z [ RUN ] Registerizer.RegisterizerTwoConditionalLoops 2022-11-23T01:32:53.4175278Z [ OK ] Registerizer.RegisterizerTwoConditionalLoops (5 ms) 2022-11-23T01:32:53.4175696Z [ RUN ] Registerizer.RegisterizerTwoConditionalLoopsCut 2022-11-23T01:32:53.4244397Z [ OK ] Registerizer.RegisterizerTwoConditionalLoopsCut (6 ms) 2022-11-23T01:32:53.4245009Z [ RUN ] Registerizer.RegisterizerLoopLetVar 2022-11-23T01:32:53.4275982Z [ OK ] Registerizer.RegisterizerLoopLetVar (3 ms) 2022-11-23T01:32:53.4276624Z [ RUN ] Registerizer.RegisterizerLoopLetVarOuter 2022-11-23T01:32:53.4306040Z [ OK ] Registerizer.RegisterizerLoopLetVarOuter (2 ms) 2022-11-23T01:32:53.4306623Z [ RUN ] Registerizer.RegisterizerMultiDim 2022-11-23T01:32:53.4345789Z [ OK ] Registerizer.RegisterizerMultiDim (3 ms) 2022-11-23T01:32:53.4346537Z [ RUN ] Registerizer.RegisterizerMultiDimPartial 2022-11-23T01:32:53.4403549Z [ OK ] Registerizer.RegisterizerMultiDimPartial (5 ms) 2022-11-23T01:32:53.4404142Z [ RUN ] Registerizer.RegisterizerMultiDimOverlap 2022-11-23T01:32:53.4467418Z [ OK ] Registerizer.RegisterizerMultiDimOverlap (6 ms) 2022-11-23T01:32:53.4468082Z [ RUN ] Registerizer.RegisterizerMultiDimPartialOverlap 2022-11-23T01:32:53.4537107Z [ OK ] Registerizer.RegisterizerMultiDimPartialOverlap (6 ms) 2022-11-23T01:32:53.4537721Z [ RUN ] Registerizer.RegisterizerMultiDim3DReduction1 2022-11-23T01:32:53.4610500Z [ OK ] Registerizer.RegisterizerMultiDim3DReduction1 (7 ms) 2022-11-23T01:32:53.4611130Z [ RUN ] Registerizer.RegisterizerMultiDim3DReduction2 2022-11-23T01:32:53.4689174Z [ OK ] Registerizer.RegisterizerMultiDim3DReduction2 (7 ms) 2022-11-23T01:32:53.4689844Z [----------] 69 tests from Registerizer (419 ms total) 2022-11-23T01:32:53.4690011Z 2022-11-23T01:32:53.4690156Z [----------] 92 tests from Simplify 2022-11-23T01:32:53.4690444Z [ RUN ] Simplify.ConstantFoldSimple 2022-11-23T01:32:53.4694669Z [ OK ] Simplify.ConstantFoldSimple (0 ms) 2022-11-23T01:32:53.4695040Z [ RUN ] Simplify.ConstantFoldTwoLayer 2022-11-23T01:32:53.4704970Z [ OK ] Simplify.ConstantFoldTwoLayer (0 ms) 2022-11-23T01:32:53.4705287Z [ RUN ] Simplify.ConstantFoldShifts 2022-11-23T01:32:53.4715992Z [ OK ] Simplify.ConstantFoldShifts (1 ms) 2022-11-23T01:32:53.4716312Z [ RUN ] Simplify.ConstantFoldBitwise 2022-11-23T01:32:53.4723068Z [ OK ] Simplify.ConstantFoldBitwise (0 ms) 2022-11-23T01:32:53.4723642Z [ RUN ] Simplify.ConstantFoldMultiOp 2022-11-23T01:32:53.4741485Z [ OK ] Simplify.ConstantFoldMultiOp (1 ms) 2022-11-23T01:32:53.4742066Z [ RUN ] Simplify.ConstantFoldMinMax 2022-11-23T01:32:53.4749050Z [ OK ] Simplify.ConstantFoldMinMax (0 ms) 2022-11-23T01:32:53.4749638Z [ RUN ] Simplify.ConstantFoldIntrinsics 2022-11-23T01:32:53.4770145Z [ OK ] Simplify.ConstantFoldIntrinsics (2 ms) 2022-11-23T01:32:53.4770739Z [ RUN ] Simplify.ConstantFoldCastToBool 2022-11-23T01:32:53.4774878Z [ OK ] Simplify.ConstantFoldCastToBool (0 ms) 2022-11-23T01:32:53.4775474Z [ RUN ] Simplify.ConstantFoldWithVar 2022-11-23T01:32:53.4786911Z [ OK ] Simplify.ConstantFoldWithVar (1 ms) 2022-11-23T01:32:53.4787580Z [ RUN ] Simplify.ConditionalSelectFoldSimple 2022-11-23T01:32:53.4831405Z [ OK ] Simplify.ConditionalSelectFoldSimple (4 ms) 2022-11-23T01:32:53.4831888Z [ RUN ] Simplify.ConditionalSelectFoldTwoLayer 2022-11-23T01:32:53.4894520Z [ OK ] Simplify.ConditionalSelectFoldTwoLayer (6 ms) 2022-11-23T01:32:53.4895111Z [ RUN ] Simplify.ConditionalSelectFoldWithVar 2022-11-23T01:32:53.4901933Z [ OK ] Simplify.ConditionalSelectFoldWithVar (0 ms) 2022-11-23T01:32:53.4902535Z [ RUN ] Simplify.UnFoldableExpr 2022-11-23T01:32:53.4911259Z [ OK ] Simplify.UnFoldableExpr (0 ms) 2022-11-23T01:32:53.4911779Z [ RUN ] Simplify.HashSimple 2022-11-23T01:32:53.4912347Z [ OK ] Simplify.HashSimple (0 ms) 2022-11-23T01:32:53.4912893Z [ RUN ] Simplify.HashEquivalence 2022-11-23T01:32:53.4915446Z [ OK ] Simplify.HashEquivalence (0 ms) 2022-11-23T01:32:53.4915974Z [ RUN ] Simplify.HashEquivalenceRand 2022-11-23T01:32:53.4916331Z [ OK ] Simplify.HashEquivalenceRand (0 ms) 2022-11-23T01:32:53.4916668Z [ RUN ] Simplify.HashEquivalenceAfterFolding 2022-11-23T01:32:53.4920843Z [ OK ] Simplify.HashEquivalenceAfterFolding (0 ms) 2022-11-23T01:32:53.4921318Z [ RUN ] Simplify.HashDifferenceTypes 2022-11-23T01:32:53.4930441Z [ OK ] Simplify.HashDifferenceTypes (0 ms) 2022-11-23T01:32:53.4930749Z [ RUN ] Simplify.HashLargeExpression 2022-11-23T01:32:53.4936195Z [ OK ] Simplify.HashLargeExpression (0 ms) 2022-11-23T01:32:53.4936513Z [ RUN ] Simplify.HashForLoopOptions 2022-11-23T01:32:53.4941096Z [ OK ] Simplify.HashForLoopOptions (0 ms) 2022-11-23T01:32:53.4941383Z [ RUN ] Simplify.SimplifyAdd 2022-11-23T01:32:53.4949463Z [ OK ] Simplify.SimplifyAdd (0 ms) 2022-11-23T01:32:53.4949796Z [ RUN ] Simplify.SimplifySub 2022-11-23T01:32:53.4956198Z [ OK ] Simplify.SimplifySub (0 ms) 2022-11-23T01:32:53.4956508Z [ RUN ] Simplify.SimplifyMultiLayer 2022-11-23T01:32:53.4973926Z [ OK ] Simplify.SimplifyMultiLayer (1 ms) 2022-11-23T01:32:53.4974283Z [ RUN ] Simplify.SimplifyMultiTerm 2022-11-23T01:32:53.4984071Z [ OK ] Simplify.SimplifyMultiTerm (1 ms) 2022-11-23T01:32:53.4984379Z [ RUN ] Simplify.SimplifyCasts 2022-11-23T01:32:53.5001355Z [ OK ] Simplify.SimplifyCasts (1 ms) 2022-11-23T01:32:53.5001862Z [ RUN ] Simplify.SimplifyEliminatesNoOps 2022-11-23T01:32:53.5004529Z [ OK ] Simplify.SimplifyEliminatesNoOps (0 ms) 2022-11-23T01:32:53.5005121Z [ RUN ] Simplify.SimplifyMultiVar 2022-11-23T01:32:53.5008132Z [ OK ] Simplify.SimplifyMultiVar (0 ms) 2022-11-23T01:32:53.5008770Z [ RUN ] Simplify.SimplifyEliminatesVar 2022-11-23T01:32:53.5012382Z [ OK ] Simplify.SimplifyEliminatesVar (0 ms) 2022-11-23T01:32:53.5012935Z [ RUN ] Simplify.SimplifyAdds 2022-11-23T01:32:53.5075076Z [ OK ] Simplify.SimplifyAdds (6 ms) 2022-11-23T01:32:53.5075630Z [ RUN ] Simplify.SimplifyMuls 2022-11-23T01:32:53.5164569Z [ OK ] Simplify.SimplifyMuls (8 ms) 2022-11-23T01:32:53.5165090Z [ RUN ] Simplify.SimplifySubs 2022-11-23T01:32:53.5344388Z [ OK ] Simplify.SimplifySubs (17 ms) 2022-11-23T01:32:53.5344883Z [ RUN ] Simplify.SimplifyDiv 2022-11-23T01:32:53.5349284Z [ OK ] Simplify.SimplifyDiv (0 ms) 2022-11-23T01:32:53.5349631Z [ RUN ] Simplify.SimplifyDivWithLoopContext0 2022-11-23T01:32:53.5378062Z [ OK ] Simplify.SimplifyDivWithLoopContext0 (2 ms) 2022-11-23T01:32:53.5378443Z [ RUN ] Simplify.SimplifyDivWithLoopContext1 2022-11-23T01:32:53.5440171Z [ OK ] Simplify.SimplifyDivWithLoopContext1 (6 ms) 2022-11-23T01:32:53.5440752Z [ RUN ] Simplify.SimplifyDivWithLoopContext2 2022-11-23T01:32:53.5498085Z [ OK ] Simplify.SimplifyDivWithLoopContext2 (5 ms) 2022-11-23T01:32:53.5498457Z [ RUN ] Simplify.SimplifyDivWithLoopContext3 2022-11-23T01:32:53.5519482Z [ OK ] Simplify.SimplifyDivWithLoopContext3 (2 ms) 2022-11-23T01:32:53.5519922Z [ RUN ] Simplify.SimplifyDivWithLoopContext4 2022-11-23T01:32:53.5585062Z [ OK ] Simplify.SimplifyDivWithLoopContext4 (6 ms) 2022-11-23T01:32:53.5585435Z [ RUN ] Simplify.SimplifyDivWithLoopContext5 2022-11-23T01:32:53.5662470Z [ OK ] Simplify.SimplifyDivWithLoopContext5 (7 ms) 2022-11-23T01:32:53.5662866Z [ RUN ] Simplify.SimplifyDivWithLoopContext6 2022-11-23T01:32:53.5746576Z [ OK ] Simplify.SimplifyDivWithLoopContext6 (8 ms) 2022-11-23T01:32:53.5746946Z [ RUN ] Simplify.SimplifyDivWithLoopContext7 2022-11-23T01:32:53.5770900Z [ OK ] Simplify.SimplifyDivWithLoopContext7 (2 ms) 2022-11-23T01:32:53.5771290Z [ RUN ] Simplify.SimplifyModWithLoopContext0 2022-11-23T01:32:53.5800124Z [ OK ] Simplify.SimplifyModWithLoopContext0 (2 ms) 2022-11-23T01:32:53.5800731Z [ RUN ] Simplify.SimplifyModWithLoopContext1 2022-11-23T01:32:53.5856253Z [ OK ] Simplify.SimplifyModWithLoopContext1 (5 ms) 2022-11-23T01:32:53.5856619Z [ RUN ] Simplify.SimplifyModWithLoopContext2 2022-11-23T01:32:53.5910548Z [ OK ] Simplify.SimplifyModWithLoopContext2 (5 ms) 2022-11-23T01:32:53.5910899Z [ RUN ] Simplify.SimplifyModWithLoopContext3 2022-11-23T01:32:53.5930667Z [ OK ] Simplify.SimplifyModWithLoopContext3 (1 ms) 2022-11-23T01:32:53.5931035Z [ RUN ] Simplify.SimplifyModWithLoopContext4 2022-11-23T01:32:53.5996763Z [ OK ] Simplify.SimplifyModWithLoopContext4 (6 ms) 2022-11-23T01:32:53.5997126Z [ RUN ] Simplify.SimplifyModWithLoopContext5 2022-11-23T01:32:53.6074736Z [ OK ] Simplify.SimplifyModWithLoopContext5 (7 ms) 2022-11-23T01:32:53.6075101Z [ RUN ] Simplify.SimplifyModWithLoopContext6 2022-11-23T01:32:53.6158516Z [ OK ] Simplify.SimplifyModWithLoopContext6 (8 ms) 2022-11-23T01:32:53.6158902Z [ RUN ] Simplify.SimplifyModWithLoopContext7 2022-11-23T01:32:53.6183271Z [ OK ] Simplify.SimplifyModWithLoopContext7 (2 ms) 2022-11-23T01:32:53.6183594Z [ RUN ] Simplify.SimplifyMod 2022-11-23T01:32:53.6236190Z [ OK ] Simplify.SimplifyMod (5 ms) 2022-11-23T01:32:53.6236492Z [ RUN ] Simplify.SimplifyMultiOp 2022-11-23T01:32:53.6284739Z [ OK ] Simplify.SimplifyMultiOp (4 ms) 2022-11-23T01:32:53.6285037Z [ RUN ] Simplify.SimplifyManyOps 2022-11-23T01:32:53.6369222Z [ OK ] Simplify.SimplifyManyOps (8 ms) 2022-11-23T01:32:53.6369562Z [ RUN ] Simplify.SimplifyFactorization 2022-11-23T01:32:53.6468864Z [ OK ] Simplify.SimplifyFactorization (9 ms) 2022-11-23T01:32:53.6469192Z [ RUN ] Simplify.SimplifyFactorizeUneven 2022-11-23T01:32:53.6497233Z [ OK ] Simplify.SimplifyFactorizeUneven (2 ms) 2022-11-23T01:32:53.6497568Z [ RUN ] Simplify.SimplifyDeeperTerms 2022-11-23T01:32:53.6515371Z [ OK ] Simplify.SimplifyDeeperTerms (1 ms) 2022-11-23T01:32:53.6515725Z [ RUN ] Simplify.SimplifyDeeperDifference 2022-11-23T01:32:53.6534375Z [ OK ] Simplify.SimplifyDeeperDifference (1 ms) 2022-11-23T01:32:53.6534744Z [ RUN ] Simplify.SimplifyFoldComplexDifference 2022-11-23T01:32:53.6560476Z [ OK ] Simplify.SimplifyFoldComplexDifference (2 ms) 2022-11-23T01:32:53.6560832Z [ RUN ] Simplify.SimplifyIfComponents 2022-11-23T01:32:53.6576749Z [ OK ] Simplify.SimplifyIfComponents (1 ms) 2022-11-23T01:32:53.6577071Z [ RUN ] Simplify.SimplifyOpaqueTerms 2022-11-23T01:32:53.6594959Z [ OK ] Simplify.SimplifyOpaqueTerms (1 ms) 2022-11-23T01:32:53.6595590Z [ RUN ] Simplify.SimplifySymbolicMinMax 2022-11-23T01:32:53.6630796Z [ OK ] Simplify.SimplifySymbolicMinMax (3 ms) 2022-11-23T01:32:53.6631348Z [ RUN ] Simplify.SimplifyNestedMax 2022-11-23T01:32:53.6937505Z [ OK ] Simplify.SimplifyNestedMax (30 ms) 2022-11-23T01:32:53.6938062Z [ RUN ] Simplify.SimplifyNestedMin 2022-11-23T01:32:53.7243008Z [ OK ] Simplify.SimplifyNestedMin (30 ms) 2022-11-23T01:32:53.7243554Z [ RUN ] Simplify.SimplifyWontReorderFloat 2022-11-23T01:32:53.7294712Z [ OK ] Simplify.SimplifyWontReorderFloat (5 ms) 2022-11-23T01:32:53.7295301Z [ RUN ] Simplify.SimplifyRoundModPattern 2022-11-23T01:32:53.7488861Z [ OK ] Simplify.SimplifyRoundModPattern (19 ms) 2022-11-23T01:32:53.7489493Z [ RUN ] Simplify.SimplifyRoundModPatternFactorization 2022-11-23T01:32:53.7603781Z [ OK ] Simplify.SimplifyRoundModPatternFactorization (11 ms) 2022-11-23T01:32:53.7604553Z [ RUN ] Simplify.SimplifyRoundModPatternMultivar 2022-11-23T01:32:53.7696123Z [ OK ] Simplify.SimplifyRoundModPatternMultivar (9 ms) 2022-11-23T01:32:53.7696702Z [ RUN ] Simplify.SimplifyModRoundModPattern 2022-11-23T01:32:53.7807050Z [ OK ] Simplify.SimplifyModRoundModPattern (11 ms) 2022-11-23T01:32:53.7807716Z [ RUN ] Simplify.SimplifyModRoundModPatternFactorization 2022-11-23T01:32:53.8023492Z [ OK ] Simplify.SimplifyModRoundModPatternFactorization (21 ms) 2022-11-23T01:32:53.8024091Z [ RUN ] Simplify.SimplifyModRoundModPatternMultivar 2022-11-23T01:32:53.8355964Z [ OK ] Simplify.SimplifyModRoundModPatternMultivar (33 ms) 2022-11-23T01:32:53.8356555Z [ RUN ] Simplify.SimplifyDivisionScalarFactorization 2022-11-23T01:32:53.8389375Z [ OK ] Simplify.SimplifyDivisionScalarFactorization (3 ms) 2022-11-23T01:32:53.8389792Z [ RUN ] Simplify.SimplifyConstantBranches 2022-11-23T01:32:53.8401841Z [ OK ] Simplify.SimplifyConstantBranches (1 ms) 2022-11-23T01:32:53.8402190Z [ RUN ] Simplify.SimplifyConstantCond 2022-11-23T01:32:53.8432773Z [ OK ] Simplify.SimplifyConstantCond (3 ms) 2022-11-23T01:32:53.8433267Z [ RUN ] Simplify.SimplifyEliminateEmptyCond 2022-11-23T01:32:53.8433626Z [ OK ] Simplify.SimplifyEliminateEmptyCond (0 ms) 2022-11-23T01:32:53.8433990Z [ RUN ] Simplify.SimplifyConstantComparisons 2022-11-23T01:32:53.8598458Z [ OK ] Simplify.SimplifyConstantComparisons (16 ms) 2022-11-23T01:32:53.8598848Z [ RUN ] Simplify.SimplifySymbolicComparisons 2022-11-23T01:32:53.8818349Z [ OK ] Simplify.SimplifySymbolicComparisons (21 ms) 2022-11-23T01:32:53.8819027Z [ RUN ] Simplify.SimplifyEliminateZeroLengthFor 2022-11-23T01:32:53.8846064Z [ OK ] Simplify.SimplifyEliminateZeroLengthFor (2 ms) 2022-11-23T01:32:53.8846431Z [ RUN ] Simplify.SimplifyOneLoopFor 2022-11-23T01:32:53.8883577Z [ OK ] Simplify.SimplifyOneLoopFor (3 ms) 2022-11-23T01:32:53.8883939Z [ RUN ] Simplify.SimplifyForWontLoseLoopOptions 2022-11-23T01:32:53.8889294Z [ OK ] Simplify.SimplifyForWontLoseLoopOptions (0 ms) 2022-11-23T01:32:53.8889680Z [ RUN ] Simplify.SimplifyMultilevelFor 2022-11-23T01:32:53.8920240Z [ OK ] Simplify.SimplifyMultilevelFor (3 ms) 2022-11-23T01:32:53.8920570Z [ RUN ] Simplify.SimplifyForCleansUp 2022-11-23T01:32:53.9004208Z [ OK ] Simplify.SimplifyForCleansUp (8 ms) 2022-11-23T01:32:53.9004749Z [ RUN ] Simplify.SimplifyEliminateEmptyFor 2022-11-23T01:32:53.9044641Z [ OK ] Simplify.SimplifyEliminateEmptyFor (4 ms) 2022-11-23T01:32:53.9044974Z [ RUN ] Simplify.SimplifyFlattenBlock 2022-11-23T01:32:53.9058356Z [ OK ] Simplify.SimplifyFlattenBlock (1 ms) 2022-11-23T01:32:53.9058899Z [ RUN ] Simplify.SimplifyEliminateZeroLengthAlloc 2022-11-23T01:32:53.9080126Z [ OK ] Simplify.SimplifyEliminateZeroLengthAlloc (2 ms) 2022-11-23T01:32:53.9080525Z [ RUN ] Simplify.DontSimplifyRand 2022-11-23T01:32:53.9083961Z [ OK ] Simplify.DontSimplifyRand (0 ms) 2022-11-23T01:32:53.9084348Z [ RUN ] Simplify.SimplifyReorderForCond 2022-11-23T01:32:53.9228292Z [ OK ] Simplify.SimplifyReorderForCond (14 ms) 2022-11-23T01:32:53.9228719Z [ RUN ] Simplify.SimplifyFuseConditions 2022-11-23T01:32:53.9373578Z [ OK ] Simplify.SimplifyFuseConditions (14 ms) 2022-11-23T01:32:53.9373937Z [ RUN ] Simplify.SimplifySyncThreads 2022-11-23T01:32:53.9386503Z [ OK ] Simplify.SimplifySyncThreads (1 ms) 2022-11-23T01:32:53.9386844Z [ RUN ] Simplify.SimplifyRampSubBroadcast 2022-11-23T01:32:53.9390382Z [ OK ] Simplify.SimplifyRampSubBroadcast (0 ms) 2022-11-23T01:32:53.9390736Z [ RUN ] Simplify.SimplifyBroadcastTermExpander 2022-11-23T01:32:53.9402499Z [ OK ] Simplify.SimplifyBroadcastTermExpander (1 ms) 2022-11-23T01:32:53.9402920Z [ RUN ] Simplify.CompareSelectLoopBounds 2022-11-23T01:32:54.2196591Z [ OK ] Simplify.CompareSelectLoopBounds (279 ms) 2022-11-23T01:32:54.2197024Z [ RUN ] Simplify.CompareSelectCondAlwaysInLoopBounds 2022-11-23T01:32:54.2217609Z [ OK ] Simplify.CompareSelectCondAlwaysInLoopBounds (2 ms) 2022-11-23T01:32:54.2218349Z [ RUN ] Simplify.IfThenCondAlwaysInLoopBounds 2022-11-23T01:32:54.2241188Z [ OK ] Simplify.IfThenCondAlwaysInLoopBounds (2 ms) 2022-11-23T01:32:54.2241864Z [ RUN ] Simplify.MultiClauseCondAlwaysInLoopBounds 2022-11-23T01:32:54.2306227Z [ OK ] Simplify.MultiClauseCondAlwaysInLoopBounds (6 ms) 2022-11-23T01:32:54.2306657Z [----------] 92 tests from Simplify (761 ms total) 2022-11-23T01:32:54.2306810Z 2022-11-23T01:32:54.2306963Z [----------] 12 tests from TEFuserPass 2022-11-23T01:32:54.2307298Z [ RUN ] TEFuserPass.FuserPass_1 2022-11-23T01:32:54.2407536Z [ OK ] TEFuserPass.FuserPass_1 (10 ms) 2022-11-23T01:32:54.2407837Z [ RUN ] TEFuserPass.FuserPass_2 2022-11-23T01:32:54.2459641Z [ OK ] TEFuserPass.FuserPass_2 (5 ms) 2022-11-23T01:32:54.2459960Z [ RUN ] TEFuserPass.FuserPass_3 2022-11-23T01:32:54.2506068Z [ OK ] TEFuserPass.FuserPass_3 (4 ms) 2022-11-23T01:32:54.2506397Z [ RUN ] TEFuserPass.FuserPass_0DimInput 2022-11-23T01:32:54.2542892Z [ OK ] TEFuserPass.FuserPass_0DimInput (3 ms) 2022-11-23T01:32:54.2543263Z [ RUN ] TEFuserPass.FuserPass_UnfusibleDevice 2022-11-23T01:32:54.2558571Z [ OK ] TEFuserPass.FuserPass_UnfusibleDevice (1 ms) 2022-11-23T01:32:54.2559086Z [ RUN ] TEFuserPass.FuserPass_UnknownShapes 2022-11-23T01:32:54.2570339Z [ OK ] TEFuserPass.FuserPass_UnknownShapes (1 ms) 2022-11-23T01:32:54.2570911Z [ RUN ] TEFuserPass.FuserPass_Multidevice 2022-11-23T01:32:54.2711946Z [ OK ] TEFuserPass.FuserPass_Multidevice (14 ms) 2022-11-23T01:32:54.2712486Z [ RUN ] TEFuserPass.FuserPass_MergeGroups 2022-11-23T01:32:54.2752723Z [ OK ] TEFuserPass.FuserPass_MergeGroups (4 ms) 2022-11-23T01:32:54.2753370Z [ RUN ] TEFuserPass.FuserPass_IgnoreUnknownShapeAtStart 2022-11-23T01:32:54.2770766Z [ OK ] TEFuserPass.FuserPass_IgnoreUnknownShapeAtStart (1 ms) 2022-11-23T01:32:54.2771528Z [ RUN ] TEFuserPass.FuserPass_Where 2022-11-23T01:32:54.2812824Z [ OK ] TEFuserPass.FuserPass_Where (4 ms) 2022-11-23T01:32:54.2813379Z [ RUN ] TEFuserPass.FuserPass_WhereList 2022-11-23T01:32:54.2833987Z [ OK ] TEFuserPass.FuserPass_WhereList (2 ms) 2022-11-23T01:32:54.2834572Z [ RUN ] TEFuserPass.DynamicShapeFusion 2022-11-23T01:32:58.0615464Z [ OK ] TEFuserPass.DynamicShapeFusion (3777 ms) 2022-11-23T01:32:58.0616033Z [----------] 12 tests from TEFuserPass (3830 ms total) 2022-11-23T01:32:58.0616276Z 2022-11-23T01:32:58.0618086Z [----------] 3 tests from Type 2022-11-23T01:32:58.0618851Z [ RUN ] Type.Test01 2022-11-23T01:32:58.0619134Z [ OK ] Type.Test01 (0 ms) 2022-11-23T01:32:58.0619390Z [ RUN ] Type.BitCasting 2022-11-23T01:32:58.0625325Z [ OK ] Type.BitCasting (1 ms) 2022-11-23T01:32:58.0625851Z [ RUN ] Type.Propagation 2022-11-23T01:32:58.0629757Z [ OK ] Type.Propagation (0 ms) 2022-11-23T01:32:58.0630071Z [----------] 3 tests from Type (1 ms total) 2022-11-23T01:32:58.0630221Z 2022-11-23T01:32:58.0630639Z [----------] 1 test from SpecializationsInCustomPasses 2022-11-23T01:32:58.0631002Z [ RUN ] SpecializationsInCustomPasses.Basic 2022-11-23T01:32:58.0828815Z [ OK ] SpecializationsInCustomPasses.Basic (19 ms) 2022-11-23T01:32:58.0829530Z [----------] 1 test from SpecializationsInCustomPasses (19 ms total) 2022-11-23T01:32:58.0829725Z 2022-11-23T01:32:58.0829904Z [----------] Global test environment tear-down 2022-11-23T01:32:58.1331029Z [==========] 647 tests from 23 test suites ran. (788910 ms total) 2022-11-23T01:32:58.1331503Z [ PASSED ] 647 tests. 2022-11-23T01:32:58.1331622Z 2022-11-23T01:32:58.1331753Z  YOU HAVE 5 DISABLED TESTS 2022-11-23T01:32:58.1331879Z 2022-11-23T01:32:58.6469556Z + [[ linux-focal-py3.7-clang7-tsan != *android* ]] 2022-11-23T01:32:58.6470017Z + [[ linux-focal-py3.7-clang7-tsan != *cuda* ]] 2022-11-23T01:32:58.6470347Z + [[ linux-focal-py3.7-clang7-tsan != *asan* ]] 2022-11-23T01:32:58.6470930Z + build/bin/static_runtime_test --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/static_runtime_test.xml 2022-11-23T01:32:58.6471368Z .jenkins/pytorch/test.sh: line 412: build/bin/static_runtime_test: No such file or directory 2022-11-23T01:32:58.6473331Z + assert_git_not_dirty 2022-11-23T01:32:58.6473927Z + [[ linux-focal-py3.7-clang7-tsan != *rocm* ]] 2022-11-23T01:32:58.6474460Z + [[ linux-focal-py3.7-clang7-tsan != *xla* ]] 2022-11-23T01:32:58.6477008Z ++ git status --porcelain 2022-11-23T01:32:59.9983051Z + git_status= 2022-11-23T01:32:59.9983500Z + [[ -n '' ]] 2022-11-23T01:33:00.0051039Z Prepare all required actions 2022-11-23T01:33:00.0051333Z Getting action download info 2022-11-23T01:33:00.1575381Z Download action repository 'nick-fields/retry@3e91a01664abd3c5cd539100d10d33b9c5b68482' (SHA:3e91a01664abd3c5cd539100d10d33b9c5b68482) 2022-11-23T01:33:00.2784464Z ##[group]Run ./.github/actions/get-workflow-job-id 2022-11-23T01:33:00.2784672Z with: 2022-11-23T01:33:00.2785007Z github-token: *** 2022-11-23T01:33:00.2785179Z env: 2022-11-23T01:33:00.2785343Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:00.2785613Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:00.2785862Z ##[endgroup] 2022-11-23T01:33:00.2810239Z ##[group]Run nick-fields/retry@3e91a01664abd3c5cd539100d10d33b9c5b68482 2022-11-23T01:33:00.2810477Z with: 2022-11-23T01:33:00.2810638Z shell: bash 2022-11-23T01:33:00.2810804Z timeout_minutes: 10 2022-11-23T01:33:00.2810984Z max_attempts: 5 2022-11-23T01:33:00.2811202Z retry_wait_seconds: 30 2022-11-23T01:33:00.2811573Z 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}" 2022-11-23T01:33:00.2811953Z polling_interval_seconds: 1 2022-11-23T01:33:00.2812145Z warning_on_retry: true 2022-11-23T01:33:00.2812336Z continue_on_error: false 2022-11-23T01:33:00.2812504Z env: 2022-11-23T01:33:00.2812676Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:00.2812940Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:00.2813298Z GITHUB_TOKEN: *** 2022-11-23T01:33:00.2813475Z ##[endgroup] 2022-11-23T01:33:00.3310031Z + python3 -m pip install requests==2.26.0 2022-11-23T01:33:00.5379222Z Defaulting to user installation because normal site-packages is not writeable 2022-11-23T01:33:00.5560785Z Requirement already satisfied: requests==2.26.0 in /home/ec2-user/.local/lib/python3.7/site-packages (2.26.0) 2022-11-23T01:33:00.5698179Z Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/.local/lib/python3.7/site-packages (from requests==2.26.0) (2022.9.24) 2022-11-23T01:33:00.5708494Z 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.12) 2022-11-23T01:33:00.5878049Z 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) 2022-11-23T01:33:00.5898255Z 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) 2022-11-23T01:33:00.7742846Z ++ python3 .github/scripts/get_workflow_job_id.py 3528293554 i-00833b511002e726f 2022-11-23T01:33:04.1580697Z + GHA_WORKFLOW_JOB_ID=9655060076 2022-11-23T01:33:04.1582237Z + echo job-id=9655060076 2022-11-23T01:33:04.3329034Z Command completed after 1 attempt(s). 2022-11-23T01:33:04.3431317Z ##[group]Run kill "$MONITOR_SCRIPT_PID" 2022-11-23T01:33:04.3431557Z kill "$MONITOR_SCRIPT_PID" 2022-11-23T01:33:04.3443176Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:04.3443399Z env: 2022-11-23T01:33:04.3443575Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:04.3443835Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:04.3444105Z MONITOR_SCRIPT_PID: 2369 2022-11-23T01:33:04.3444292Z ##[endgroup] 2022-11-23T01:33:04.3541885Z Prepare all required actions 2022-11-23T01:33:04.3542141Z Getting action download info 2022-11-23T01:33:04.8637243Z Download action repository 'actions/upload-artifact@v3' (SHA:83fd05a356d7e2593de66fc9913b3002723633cb) 2022-11-23T01:33:05.0137886Z ##[group]Run ./.github/actions/upload-test-artifacts 2022-11-23T01:33:05.0138117Z with: 2022-11-23T01:33:05.0138333Z file-suffix: test-tsan-1-1-linux.2xlarge_9655060076 2022-11-23T01:33:05.0138704Z env: 2022-11-23T01:33:05.0138879Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.0139146Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.0139396Z ##[endgroup] 2022-11-23T01:33:05.0162029Z ##[group]Run # Remove any previous test jsons if they exist 2022-11-23T01:33:05.0162312Z # Remove any previous test jsons if they exist 2022-11-23T01:33:05.0162550Z rm -f test-jsons-*.zip 2022-11-23T01:33:05.0162829Z zip -r "test-jsons-${FILE_SUFFIX}.zip" test -i '*.json' 2022-11-23T01:33:05.0173611Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:05.0173830Z env: 2022-11-23T01:33:05.0174007Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.0174264Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.0174568Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_9655060076 2022-11-23T01:33:05.0174788Z ##[endgroup] 2022-11-23T01:33:05.0285350Z adding: test/allowlist_for_publicAPI.json (deflated 79%) 2022-11-23T01:33:05.0312327Z adding: test/benchmark_utils/callgrind_artifacts.json (deflated 92%) 2022-11-23T01:33:05.0318180Z adding: test/profiler/profiler_utils_mock_events.json (deflated 87%) 2022-11-23T01:33:05.0335529Z ##[group]Run # Remove any previous test reports if they exist 2022-11-23T01:33:05.0335817Z # Remove any previous test reports if they exist 2022-11-23T01:33:05.0336064Z rm -f test-reports-*.zip 2022-11-23T01:33:05.0336333Z zip -r "test-reports-${FILE_SUFFIX}.zip" test -i '*.xml' -i '*.csv' 2022-11-23T01:33:05.0347024Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:05.0347349Z env: 2022-11-23T01:33:05.0347527Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.0347783Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.0348087Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_9655060076 2022-11-23T01:33:05.0348309Z ##[endgroup] 2022-11-23T01:33:05.0434334Z adding: test/test-reports/cpp-unittest/test_libtorch/test_jit.xml (deflated 90%) 2022-11-23T01:33:05.0443201Z adding: test/test-reports/cpp-unittest/test_libtorch/test_lazy.xml (deflated 92%) 2022-11-23T01:33:05.0462053Z adding: test/test-reports/cpp-unittest/test_libtorch/test_api.xml (deflated 91%) 2022-11-23T01:33:05.0475343Z adding: test/test-reports/cpp-unittest/test_libtorch/test_tensorexpr.xml (deflated 90%) 2022-11-23T01:33:05.0492380Z ##[group]Run # Remove any previous test reports if they exist 2022-11-23T01:33:05.0492676Z # Remove any previous test reports if they exist 2022-11-23T01:33:05.0492913Z rm -f usage-log-*.zip 2022-11-23T01:33:05.0493190Z # this workflow is also run in bazel build test, but we dont generate usage reports for it 2022-11-23T01:33:05.0493484Z # so check to see if the file exists first 2022-11-23T01:33:05.0493698Z if [ -f 'usage_log.txt' ]; then 2022-11-23T01:33:05.0493943Z  zip "usage-log-${FILE_SUFFIX}.zip" 'usage_log.txt' 2022-11-23T01:33:05.0494158Z fi 2022-11-23T01:33:05.0504411Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:05.0504632Z env: 2022-11-23T01:33:05.0504809Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.0505068Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.0505369Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_9655060076 2022-11-23T01:33:05.0505598Z ##[endgroup] 2022-11-23T01:33:05.0567309Z adding: usage_log.txt (deflated 96%) 2022-11-23T01:33:05.0600547Z ##[group]Run seemethere/upload-artifact-s3@v5 2022-11-23T01:33:05.0600759Z with: 2022-11-23T01:33:05.0600951Z s3-prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:05.0601169Z retention-days: 14 2022-11-23T01:33:05.0601365Z if-no-files-found: warn 2022-11-23T01:33:05.0601550Z path: test-jsons-*.zip 2022-11-23T01:33:05.0601731Z name: artifact 2022-11-23T01:33:05.0601913Z s3-bucket: gha-artifacts 2022-11-23T01:33:05.0602089Z region: us-east-1 2022-11-23T01:33:05.0602252Z env: 2022-11-23T01:33:05.0602420Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.0602671Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.0602920Z ##[endgroup] 2022-11-23T01:33:05.3967271Z NOTE: s3-prefix specified, ignoring name parameter 2022-11-23T01:33:05.3967793Z With the provided path, there will be 1 file uploaded 2022-11-23T01:33:05.3968274Z Uploading to s3 prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:05.3976370Z Starting upload of test-jsons-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:05.4874149Z Finished upload of test-jsons-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:05.5005316Z ##[group]Run seemethere/upload-artifact-s3@v5 2022-11-23T01:33:05.5005649Z with: 2022-11-23T01:33:05.5005870Z s3-prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:05.5006091Z retention-days: 14 2022-11-23T01:33:05.5006291Z if-no-files-found: error 2022-11-23T01:33:05.5006490Z path: test-reports-*.zip 2022-11-23T01:33:05.5006677Z name: artifact 2022-11-23T01:33:05.5006858Z s3-bucket: gha-artifacts 2022-11-23T01:33:05.5007037Z region: us-east-1 2022-11-23T01:33:05.5007205Z env: 2022-11-23T01:33:05.5007384Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.5007640Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.5007900Z ##[endgroup] 2022-11-23T01:33:05.8370119Z NOTE: s3-prefix specified, ignoring name parameter 2022-11-23T01:33:05.8370631Z With the provided path, there will be 1 file uploaded 2022-11-23T01:33:05.8370934Z Uploading to s3 prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:05.8377732Z Starting upload of test-reports-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:05.9404459Z Finished upload of test-reports-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:05.9530732Z ##[group]Run seemethere/upload-artifact-s3@v5 2022-11-23T01:33:05.9530948Z with: 2022-11-23T01:33:05.9531139Z s3-prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:05.9531356Z retention-days: 14 2022-11-23T01:33:05.9531553Z if-no-files-found: ignore 2022-11-23T01:33:05.9531739Z path: usage-log-*.zip 2022-11-23T01:33:05.9531920Z name: artifact 2022-11-23T01:33:05.9532102Z s3-bucket: gha-artifacts 2022-11-23T01:33:05.9532279Z region: us-east-1 2022-11-23T01:33:05.9532529Z env: 2022-11-23T01:33:05.9532702Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:05.9532964Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:05.9533216Z ##[endgroup] 2022-11-23T01:33:06.2922305Z NOTE: s3-prefix specified, ignoring name parameter 2022-11-23T01:33:06.2922804Z With the provided path, there will be 1 file uploaded 2022-11-23T01:33:06.2923315Z Uploading to s3 prefix: pytorch/pytorch/3528293554/1/artifact 2022-11-23T01:33:06.2929695Z Starting upload of usage-log-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:06.4350618Z Finished upload of usage-log-test-tsan-1-1-linux.2xlarge_9655060076.zip 2022-11-23T01:33:06.4480954Z ##[group]Run # shellcheck disable=SC2156 2022-11-23T01:33:06.4481204Z # shellcheck disable=SC2156 2022-11-23T01:33:06.4481503Z find . -iname "core.[1-9]*" -exec docker exec "${DOCKER_CONTAINER_ID}" sh -c "gdb python {} -ex 'bt' -ex 'q'" \; 2022-11-23T01:33:06.4492764Z shell: /usr/bin/bash -e {0} 2022-11-23T01:33:06.4492958Z env: 2022-11-23T01:33:06.4493124Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:06.4493401Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:06.4493658Z ##[endgroup] 2022-11-23T01:33:06.8466758Z ##[group]Run set -x 2022-11-23T01:33:06.8467110Z set -x 2022-11-23T01:33:06.8467390Z python3 -m pip install -r requirements.txt 2022-11-23T01:33:06.8467649Z python3 -m pip install boto3==1.19.12 2022-11-23T01:33:06.8467949Z python3 -m tools.stats.print_test_stats --upload-to-s3 --compare-with-s3 test 2022-11-23T01:33:06.8479012Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:06.8479237Z env: 2022-11-23T01:33:06.8479420Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:06.8479691Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:06.8479946Z AWS_DEFAULT_REGION: us-east-1 2022-11-23T01:33:06.8480147Z BRANCH: master 2022-11-23T01:33:06.8480323Z TEST_CONFIG: tsan 2022-11-23T01:33:06.8480489Z SHARD_NUMBER: 1 2022-11-23T01:33:06.8480715Z BUILD_ENVIRONMENT: linux-focal-py3.7-clang7-tsan 2022-11-23T01:33:06.8480941Z PR_NUMBER: 2022-11-23T01:33:06.8481145Z PYTORCH_RETRY_TEST_CASES: 1 2022-11-23T01:33:06.8481359Z PYTORCH_OVERRIDE_FLAKY_SIGNAL: 1 2022-11-23T01:33:06.8481572Z SHA1: 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:33:06.8481768Z TAG: 2022-11-23T01:33:06.8481933Z WORKFLOW_ID: 3528293554 2022-11-23T01:33:06.8482251Z GITHUB_TOKEN: *** 2022-11-23T01:33:06.8482440Z GHA_WORKFLOW_JOB_ID: 9655060076 2022-11-23T01:33:06.8482628Z ##[endgroup] 2022-11-23T01:33:06.8522633Z + python3 -m pip install -r requirements.txt 2022-11-23T01:33:07.0626826Z Defaulting to user installation because normal site-packages is not writeable 2022-11-23T01:33:07.0902734Z Requirement already satisfied: astunparse in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (1.6.3) 2022-11-23T01:33:07.0930543Z Requirement already satisfied: expecttest in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (0.1.4) 2022-11-23T01:33:07.0939721Z Requirement already satisfied: future in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (0.18.2) 2022-11-23T01:33:07.0948904Z Requirement already satisfied: hypothesis in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (6.58.0) 2022-11-23T01:33:07.1322530Z Requirement already satisfied: numpy in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (1.21.6) 2022-11-23T01:33:07.1331661Z Requirement already satisfied: psutil in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (5.9.1) 2022-11-23T01:33:07.1407251Z Requirement already satisfied: pyyaml in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 8)) (6.0) 2022-11-23T01:33:07.1415243Z Requirement already satisfied: requests in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 9)) (2.26.0) 2022-11-23T01:33:07.1633055Z Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from -r requirements.txt (line 10)) (49.1.3) 2022-11-23T01:33:07.1798485Z Requirement already satisfied: six in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 11)) (1.16.0) 2022-11-23T01:33:07.1807135Z Requirement already satisfied: types-dataclasses in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (0.6.6) 2022-11-23T01:33:07.1812828Z Requirement already satisfied: typing_extensions in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 13)) (4.4.0) 2022-11-23T01:33:07.1823220Z Requirement already satisfied: sympy in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 14)) (1.10.1) 2022-11-23T01:33:07.1841637Z Requirement already satisfied: filelock in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 15)) (3.8.0) 2022-11-23T01:33:07.1913897Z Requirement already satisfied: networkx in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 16)) (2.6.3) 2022-11-23T01:33:07.2070097Z Requirement already satisfied: jinja2 in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 17)) (3.1.2) 2022-11-23T01:33:07.2092825Z 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) 2022-11-23T01:33:07.2110693Z 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) 2022-11-23T01:33:07.2120665Z 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.1.0) 2022-11-23T01:33:07.2366779Z 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.0.4) 2022-11-23T01:33:07.2383979Z 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) 2022-11-23T01:33:07.2404896Z 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) 2022-11-23T01:33:07.2416496Z 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.12) 2022-11-23T01:33:07.2567660Z 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.9.24) 2022-11-23T01:33:07.2576086Z 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) 2022-11-23T01:33:07.2630177Z 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) 2022-11-23T01:33:07.3209496Z + python3 -m pip install boto3==1.19.12 2022-11-23T01:33:07.5298612Z Defaulting to user installation because normal site-packages is not writeable 2022-11-23T01:33:07.5483550Z Requirement already satisfied: boto3==1.19.12 in /home/ec2-user/.local/lib/python3.7/site-packages (1.19.12) 2022-11-23T01:33:07.5532930Z 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) 2022-11-23T01:33:07.5574007Z 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) 2022-11-23T01:33:07.5595846Z 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) 2022-11-23T01:33:07.5620243Z 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) 2022-11-23T01:33:07.5639851Z 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.12) 2022-11-23T01:33:07.5794347Z 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) 2022-11-23T01:33:07.7630509Z + python3 -m tools.stats.print_test_stats --upload-to-s3 --compare-with-s3 test 2022-11-23T01:33:10.8031429Z [scribe] Scribe access token not provided, sending report via boto3... 2022-11-23T01:33:10.8031779Z 2022-11-23T01:33:10.8032236Z ----- Historic stats comparison result ------ 2022-11-23T01:33:10.8032502Z 2022-11-23T01:33:10.8032792Z job: linux-focal-py3.7-clang7-tsan 2022-11-23T01:33:10.8033240Z commit: 1cfd3858ac54fe3883534309081631a0a892ba3f 2022-11-23T01:33:10.8033469Z 2022-11-23T01:33:10.8033993Z Commit graph (base is most recent master ancestor with at least one S3 report): 2022-11-23T01:33:10.8034322Z 2022-11-23T01:33:10.8034461Z : (master) 2022-11-23T01:33:10.8034750Z | 2022-11-23T01:33:10.8035104Z * 1cfd3858ac (HEAD) total time 1788.63s 2022-11-23T01:33:10.8035516Z * 26322544b8 (base) 1 report, total time 1779.59s 2022-11-23T01:33:10.8035928Z * 7f4b4d2827 1 report, total time 1794.01s 2022-11-23T01:33:10.8036230Z * b50699f247 1 report, total time 1786.20s 2022-11-23T01:33:10.8036536Z * 8bf8e4d71e 1 report, total time 1790.17s 2022-11-23T01:33:10.8036770Z * ce856cee7e 1 report, total time 1801.94s 2022-11-23T01:33:10.8037010Z * 391b593ca2 1 report, total time 1806.83s 2022-11-23T01:33:10.8037238Z * 5bba783d21 1 report, total time 1810.28s 2022-11-23T01:33:10.8037452Z * ea920a1115 1 report, total time 1783.94s 2022-11-23T01:33:10.8037682Z * 74e62a1fef 1 report, total time 1780.52s 2022-11-23T01:33:10.8037911Z * 00b7d8ef23 1 report, total time 1776.71s 2022-11-23T01:33:10.8038089Z | 2022-11-23T01:33:10.8038237Z : 2022-11-23T01:33:10.8038328Z 2022-11-23T01:33:10.8038449Z Removed (across 0 suites) 0 tests, totaling 0.00s 2022-11-23T01:33:10.8038696Z Modified (across 0 suites) 0 tests, totaling 0.00s 2022-11-23T01:33:10.8038954Z Added (across 0 suites) 0 tests, totaling 0.00s 2022-11-23T01:33:10.8616591Z ##[group]Run pytorch/test-infra/.github/actions/teardown-linux@main 2022-11-23T01:33:10.8616835Z with: 2022-11-23T01:33:10.8616975Z env: 2022-11-23T01:33:10.8617146Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:10.8617424Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:10.8617661Z ##[endgroup] 2022-11-23T01:33:10.8631187Z ##[group]Run set -eou pipefail 2022-11-23T01:33:10.8631413Z set -eou pipefail 2022-11-23T01:33:10.8631595Z  2022-11-23T01:33:10.8631832Z echo "Holding runner for 2 hours until all ssh sessions have logged out" 2022-11-23T01:33:10.8632071Z for _ in $(seq 1440); do 2022-11-23T01:33:10.8632292Z  # Break if no ssh session exists anymore 2022-11-23T01:33:10.8632508Z  if [ "$(who)" = "" ]; then 2022-11-23T01:33:10.8632675Z  break 2022-11-23T01:33:10.8632842Z  fi 2022-11-23T01:33:10.8633042Z  echo "." 2022-11-23T01:33:10.8633206Z  sleep 5 2022-11-23T01:33:10.8633379Z done 2022-11-23T01:33:10.8644414Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:10.8644618Z env: 2022-11-23T01:33:10.8644883Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:10.8645156Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:10.8645396Z ##[endgroup] 2022-11-23T01:33:10.8669808Z Holding runner for 2 hours until all ssh sessions have logged out 2022-11-23T01:33:10.8707494Z ##[group]Run # ignore expansion of "docker ps -q" since it could be empty 2022-11-23T01:33:10.8707811Z # ignore expansion of "docker ps -q" since it could be empty 2022-11-23T01:33:10.8708065Z # shellcheck disable=SC2046 2022-11-23T01:33:10.8708295Z docker stop $(docker ps -q) || true 2022-11-23T01:33:10.8708512Z # Prune all of the docker images 2022-11-23T01:33:10.8708730Z docker system prune -af 2022-11-23T01:33:10.8719300Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2022-11-23T01:33:10.8719508Z env: 2022-11-23T01:33:10.8719688Z GIT_DEFAULT_BRANCH: master 2022-11-23T01:33:10.8719962Z DOCKER_CONTAINER_ID: 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:10.8720209Z ##[endgroup] 2022-11-23T01:33:11.2824803Z 1512129e002c 2022-11-23T01:33:11.6186469Z Deleted Containers: 2022-11-23T01:33:11.6186973Z 1512129e002c1625da17831c065e457efad50f058df77f2fbe067c37a59e730c 2022-11-23T01:33:11.6187223Z 2022-11-23T01:33:14.0086713Z Deleted Images: 2022-11-23T01:33:14.0087596Z untagged: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:072aae4a77ed7d3a69ad5683420509c41301b940 2022-11-23T01:33:14.0088357Z untagged: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan@sha256:34e1bcba9828261caa1c7fe4033262dcda23b44eddd67475534e3a1447bdd75d 2022-11-23T01:33:14.0089167Z deleted: sha256:a4b6a4ec144dd731b4057d13309ced6a22d97b1e2b83ef3e696dc70c7e49decd 2022-11-23T01:33:14.0089748Z deleted: sha256:957d23465a21ad41a554594011d7d2a42e73703d09894a234159252a57694eca 2022-11-23T01:33:14.0090086Z deleted: sha256:289bb9074da144972db46a2f7ffdbc3ba8ce7a60ebc3baf70980d4a4963a844e 2022-11-23T01:33:14.0090433Z deleted: sha256:336d2ba0fb5b4f8df52bc774d6ce3a2bf664d46a7f8836aab9970210ea2d6cb3 2022-11-23T01:33:14.0090979Z deleted: sha256:c5844234fd0a1fa2dea49650a9e6d32c2fba3131c65c134479c6a494ee6f563b 2022-11-23T01:33:14.0091483Z deleted: sha256:203e7ecd00cf1cb8e5c518c637d63b91a4aa788469d4277812909ab12479f431 2022-11-23T01:33:14.0091954Z deleted: sha256:6e9b9d48f551d7af6f768403aaa859621429c24492df0b6c7622522f4f972e54 2022-11-23T01:33:14.0092489Z deleted: sha256:8bcae249f30f296b7ab333392192d9b427f6e50459e4c39875fc82a1ae8901f5 2022-11-23T01:33:14.0093094Z deleted: sha256:459e58382a73eb34e2fbc98ec8c4d8ed7f72c5b1a5ea014274bd38c9c22eb7f3 2022-11-23T01:33:14.0093686Z deleted: sha256:1d98fb9717cebdb7e3bb6990fa3484bc43b25e76fb1337494e90d2ce0595092e 2022-11-23T01:33:14.0094036Z deleted: sha256:ab8cb7648df854789528a4a2ab1aebac1347d8fc472b25a557f996407b118248 2022-11-23T01:33:14.0094374Z deleted: sha256:53b34ccc4e27ad92686b352fa50e505b64e45bce83d6addeef5719ebc8c500e7 2022-11-23T01:33:14.0094708Z deleted: sha256:c32a05616d2c147bbd689a5197483194dd91cf7897122d4d6890c0e1d8d63cc1 2022-11-23T01:33:14.0095142Z deleted: sha256:a9dd32d6bcb5f46c3081fef867b20a91048f65f3b22f2b6e43bff4a02750e8ef 2022-11-23T01:33:14.0095682Z deleted: sha256:90991355502aed6e6ff9d80c658357a5308bc7ce0d9f498046927cdc61c3b373 2022-11-23T01:33:14.0096272Z deleted: sha256:e7ce89b7a5be09db5f7437d3d14bf8e9de4c70650e17c22e0c05a98efaedb652 2022-11-23T01:33:14.0096607Z deleted: sha256:67a6941ba464b959f947ee51cc4f1411a27a0f26597a80ad7d3f42f0ab95c44a 2022-11-23T01:33:14.0096910Z deleted: sha256:690777ed65340b394518843b6c6d9d2ff8a86eeb124ac7fb483867022da7fc39 2022-11-23T01:33:14.0097223Z deleted: sha256:bf7f1084b290ad6202b6e85e52b1393af74db41de07dc82643aba0946fcfecf8 2022-11-23T01:33:14.0097553Z deleted: sha256:946fd272ae7e48d19dd54903226c28dcd0db3d28f3641b209ebd0ef491c407ae 2022-11-23T01:33:14.0097881Z deleted: sha256:61c91de682876a791b276b3c5f234e6097dddda7bc34e48c03e4f7985e9e9e75 2022-11-23T01:33:14.0098275Z deleted: sha256:9043075388f59bc2ccefe85e2bf1d2dd5751680bb7adb5905f5f4a88198a8b1e 2022-11-23T01:33:14.0098764Z deleted: sha256:4146ddf15114cec2fd801bb210a355125ec6f2e98c081c7a4a5e108b470105a2 2022-11-23T01:33:14.0099111Z deleted: sha256:8babfba6d7be23fe3f83d9befc80a3a8f3b570f90538cc39dc7c67af6bb77cd0 2022-11-23T01:33:14.0099442Z deleted: sha256:428288871a22c706b81b0ab5ee2e0142fb717a9ef12fbc27b5d4b3e3aac12336 2022-11-23T01:33:14.0099781Z deleted: sha256:00c44b66abe4afc48c84baf74e9cfaafa05a7d5a8cbd4a17f968b6339e548fef 2022-11-23T01:33:14.0100124Z deleted: sha256:316ea1b1a6172d128d8c4d394e092ad5534bdfbe00899a73db9417dd82e45297 2022-11-23T01:33:14.0100458Z deleted: sha256:68ad7ab42cd7d591f0ded7f44f5d86f39b2cb5c8b5ca675a5144917645f42bdc 2022-11-23T01:33:14.0100800Z deleted: sha256:67cc46d00acc3f42fca26b6bcecdbeb71dbf3453466d304a90ce270e0574b6b5 2022-11-23T01:33:14.0101161Z deleted: sha256:59d1e1bad025bfdb6c03601e92ff9f03eb248cfefee8d7de74410849b2d61dda 2022-11-23T01:33:14.0101499Z deleted: sha256:20d99cbd6d4d965ce3e1c8f258b8c6364869bd3fa2d430a7472e8e124b0c4e2b 2022-11-23T01:33:14.0101819Z deleted: sha256:4aa9ee87dec7121986628e83e0f38e4bc5cbf5c1310410fd291c7b68ef4a5f05 2022-11-23T01:33:14.0102136Z deleted: sha256:a3968ec11747fa551809a34c26960d74e431b287b34e8c3324a65b1868d8def0 2022-11-23T01:33:14.0102450Z deleted: sha256:ba2616f250f8ad4cfa197f1ea72f2a082598b79d54cb330a6ecd92be86c6269a 2022-11-23T01:33:14.0102793Z deleted: sha256:56fe8c1ca84cbed54b8e21c8b92d51679ea24da3a4d2ab3adff5982cf6dda6e6 2022-11-23T01:33:14.0103209Z deleted: sha256:2cc42a58acd97cef90aaf2acdb96a3ee2134113fc5ac0feec729d18a7f01db29 2022-11-23T01:33:14.0103694Z deleted: sha256:22fbe23bf5734c604a8e4a83ea9c69679df172d74920ce8b8da5732c15b79076 2022-11-23T01:33:14.0104103Z deleted: sha256:c21891eb7ba18f3202c52298d2ead6608146c9042db370cee5aaa519e3593934 2022-11-23T01:33:14.0104430Z deleted: sha256:e3d48c5eb9561454b2ad49064f833a6fa832ee6dfbcb73507280e7aa3c17d79f 2022-11-23T01:33:14.0104736Z deleted: sha256:b595df58740560a02b11650237e18a1caadb02b12cf1f4b9a0941c4588e2c75a 2022-11-23T01:33:14.0105070Z deleted: sha256:bd9b63fdbabee64389dbe9a14d4f84e9896bc7b2987a265df4eb8dc37d88f621 2022-11-23T01:33:14.0105423Z deleted: sha256:ce0e1cf857b0d2889aedcc187b3c0114eac292ec1e9d1e45e3469aa3c218c314 2022-11-23T01:33:14.0105743Z deleted: sha256:e52aa1775496de5e34d420cb504fe51b65083e324a6464d92bade600bd6fda43 2022-11-23T01:33:14.0106071Z deleted: sha256:eafe23236602d0f7fcdd2a8c142b1c143dfd94cf0ca729b50a929d68fb3f2e69 2022-11-23T01:33:14.0106393Z deleted: sha256:75eb7300e942593567720f8f93d2b4c014e1266a1b760589e79d8a61e1a8a626 2022-11-23T01:33:14.0106696Z deleted: sha256:23fc4f74cb467ad8613500ba4933ead0444400a958659fc2e4e15053ddb26b2e 2022-11-23T01:33:14.0106994Z deleted: sha256:4b19c06b42ce583148c6a244b35318d485029df4acba188749ae05a48e46e818 2022-11-23T01:33:14.0107478Z deleted: sha256:1cb818a16d9faa236e51f78c372f12d74c9ec743a2825cd976e6eb5232c335c0 2022-11-23T01:33:14.0107807Z deleted: sha256:372c2de2d184b766dc1b5199fb39c1693ddeed10a110f248bf8b928e351d5b49 2022-11-23T01:33:14.0108141Z deleted: sha256:eccae0f33cad4662e8ee2951f2eab1ed9152be1384b3c257514c15c5bddbfe57 2022-11-23T01:33:14.0108490Z deleted: sha256:ab69c239d0540fee395e7efd55af811bf9c4c8cc2306b38419b5be0d30efea3b 2022-11-23T01:33:14.0108830Z deleted: sha256:638f5e65aebda03f5c0fb32a504e0169c0db0ae893ba72f578f439bee298d2ff 2022-11-23T01:33:14.0109147Z deleted: sha256:84d836cb409df8d22c40358d01823ad5be407e662705bde77d1dc290beb56d8c 2022-11-23T01:33:14.0109475Z deleted: sha256:3202e00f8eed437e2a440dbb8e91fa72a9a47f59cdbc6653ee6a77ee72d83617 2022-11-23T01:33:14.0109812Z deleted: sha256:38ab0cf519cac244722224ae069cdef7caaba125cf53b46086e66aa3d409fe95 2022-11-23T01:33:14.0110139Z deleted: sha256:94e04de0226485b1b389376cdb9af2679b13e9af2becbec084497f75da2d3e9f 2022-11-23T01:33:14.0110453Z deleted: sha256:58364c0a30eddccbf676c40a511f6561f6edf17839b4b5ce45f1271971106d96 2022-11-23T01:33:14.0110778Z deleted: sha256:f4462d5b2da2985f37409c9b257afd2b9fb82356ce4e43e804ee34214242e34a 2022-11-23T01:33:14.0110957Z 2022-11-23T01:33:14.0111102Z Total reclaimed space: 6.951GB 2022-11-23T01:33:14.0152772Z Post job cleanup. 2022-11-23T01:33:14.0180309Z Post job cleanup. 2022-11-23T01:33:14.1163903Z [command]/usr/bin/git version 2022-11-23T01:33:14.1206248Z git version 2.37.1 2022-11-23T01:33:14.1244781Z Temporarily overriding HOME='/home/ec2-user/actions-runner/_work/_temp/01334581-7851-4f3a-872e-da3c55a18d6f' before making global git config changes 2022-11-23T01:33:14.1245206Z Adding repository directory to the temporary git global config as a safe directory 2022-11-23T01:33:14.1249434Z [command]/usr/bin/git config --global --add safe.directory /home/ec2-user/actions-runner/_work/pytorch/pytorch 2022-11-23T01:33:14.1284610Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2022-11-23T01:33:14.1314772Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2022-11-23T01:33:14.1583992Z Entering 'android/libs/fbjni' 2022-11-23T01:33:14.1621214Z Entering 'third_party/FP16' 2022-11-23T01:33:14.1659456Z Entering 'third_party/FXdiv' 2022-11-23T01:33:14.1696015Z Entering 'third_party/NNPACK' 2022-11-23T01:33:14.1735817Z Entering 'third_party/QNNPACK' 2022-11-23T01:33:14.1771330Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:33:14.1805878Z Entering 'third_party/XNNPACK' 2022-11-23T01:33:14.1849328Z Entering 'third_party/benchmark' 2022-11-23T01:33:14.1883076Z Entering 'third_party/cpuinfo' 2022-11-23T01:33:14.1918656Z Entering 'third_party/cub' 2022-11-23T01:33:14.1952916Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:33:14.1992756Z Entering 'third_party/cutlass' 2022-11-23T01:33:14.2034120Z Entering 'third_party/eigen' 2022-11-23T01:33:14.2069400Z Entering 'third_party/fbgemm' 2022-11-23T01:33:14.2103125Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:33:14.2136851Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:33:14.2171619Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:33:14.2205027Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:33:14.2240560Z Entering 'third_party/flatbuffers' 2022-11-23T01:33:14.2277041Z Entering 'third_party/fmt' 2022-11-23T01:33:14.2311973Z Entering 'third_party/foxi' 2022-11-23T01:33:14.2346189Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:33:14.2380741Z Entering 'third_party/gloo' 2022-11-23T01:33:14.2419086Z Entering 'third_party/googletest' 2022-11-23T01:33:14.2453830Z Entering 'third_party/ideep' 2022-11-23T01:33:14.2488672Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:33:14.2524770Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:33:14.2564642Z Entering 'third_party/ios-cmake' 2022-11-23T01:33:14.2599617Z Entering 'third_party/ittapi' 2022-11-23T01:33:14.2636445Z Entering 'third_party/kineto' 2022-11-23T01:33:14.2671534Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:33:14.2705242Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:33:14.2742541Z Entering 'third_party/nccl/nccl' 2022-11-23T01:33:14.2776876Z Entering 'third_party/neon2sse' 2022-11-23T01:33:14.2810843Z Entering 'third_party/nlohmann' 2022-11-23T01:33:14.2845701Z Entering 'third_party/onnx' 2022-11-23T01:33:14.2891600Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:33:14.2926148Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:33:14.2962295Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:33:14.2996445Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:33:14.3035313Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:33:14.3069699Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:33:14.3103665Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:33:14.3141481Z Entering 'third_party/pocketfft' 2022-11-23T01:33:14.3175947Z Entering 'third_party/protobuf' 2022-11-23T01:33:14.3213803Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:33:14.3246759Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:33:14.3282363Z Entering 'third_party/psimd' 2022-11-23T01:33:14.3317934Z Entering 'third_party/pthreadpool' 2022-11-23T01:33:14.3352113Z Entering 'third_party/pybind11' 2022-11-23T01:33:14.3387459Z Entering 'third_party/python-enum' 2022-11-23T01:33:14.3421267Z Entering 'third_party/python-peachpy' 2022-11-23T01:33:14.3455390Z Entering 'third_party/python-six' 2022-11-23T01:33:14.3491092Z Entering 'third_party/sleef' 2022-11-23T01:33:14.3524611Z Entering 'third_party/tbb' 2022-11-23T01:33:14.3561054Z Entering 'third_party/tensorpipe' 2022-11-23T01:33:14.3595881Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:33:14.3629894Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:33:14.3663792Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:33:14.3697126Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:33:14.3730454Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:33:14.3767077Z Entering 'third_party/zstd' 2022-11-23T01:33:14.3813989Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2022-11-23T01:33:14.3842587Z http.https://github.com/.extraheader 2022-11-23T01:33:14.3850396Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2022-11-23T01:33:14.3882049Z [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' || : 2022-11-23T01:33:14.4138832Z Entering 'android/libs/fbjni' 2022-11-23T01:33:14.4161692Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4188737Z Entering 'third_party/FP16' 2022-11-23T01:33:14.4209537Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4237290Z Entering 'third_party/FXdiv' 2022-11-23T01:33:14.4256677Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4284286Z Entering 'third_party/NNPACK' 2022-11-23T01:33:14.4304154Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4330888Z Entering 'third_party/QNNPACK' 2022-11-23T01:33:14.4350222Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4377031Z Entering 'third_party/VulkanMemoryAllocator' 2022-11-23T01:33:14.4396904Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4425245Z Entering 'third_party/XNNPACK' 2022-11-23T01:33:14.4445371Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4482349Z Entering 'third_party/benchmark' 2022-11-23T01:33:14.4503457Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4530473Z Entering 'third_party/cpuinfo' 2022-11-23T01:33:14.4550673Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4577768Z Entering 'third_party/cub' 2022-11-23T01:33:14.4597904Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4624698Z Entering 'third_party/cudnn_frontend' 2022-11-23T01:33:14.4643761Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4676886Z Entering 'third_party/cutlass' 2022-11-23T01:33:14.4697006Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4730866Z Entering 'third_party/eigen' 2022-11-23T01:33:14.4751452Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4780414Z Entering 'third_party/fbgemm' 2022-11-23T01:33:14.4799969Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4828162Z Entering 'third_party/fbgemm/third_party/asmjit' 2022-11-23T01:33:14.4846766Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4873699Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2022-11-23T01:33:14.4893928Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4930770Z Entering 'third_party/fbgemm/third_party/googletest' 2022-11-23T01:33:14.4950879Z http.https://github.com/.extraheader 2022-11-23T01:33:14.4977818Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2022-11-23T01:33:14.4999029Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5027434Z Entering 'third_party/flatbuffers' 2022-11-23T01:33:14.5047312Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5083110Z Entering 'third_party/fmt' 2022-11-23T01:33:14.5103532Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5130337Z Entering 'third_party/foxi' 2022-11-23T01:33:14.5150225Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5176819Z Entering 'third_party/gemmlowp/gemmlowp' 2022-11-23T01:33:14.5197868Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5224822Z Entering 'third_party/gloo' 2022-11-23T01:33:14.5244373Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5270819Z Entering 'third_party/googletest' 2022-11-23T01:33:14.5290935Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5318107Z Entering 'third_party/ideep' 2022-11-23T01:33:14.5337690Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5373685Z Entering 'third_party/ideep/mkl-dnn' 2022-11-23T01:33:14.5393063Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5433311Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2022-11-23T01:33:14.5452899Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5497033Z Entering 'third_party/ios-cmake' 2022-11-23T01:33:14.5517527Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5544866Z Entering 'third_party/ittapi' 2022-11-23T01:33:14.5565442Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5592091Z Entering 'third_party/kineto' 2022-11-23T01:33:14.5613185Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5640757Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2022-11-23T01:33:14.5661474Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5689008Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2022-11-23T01:33:14.5709655Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5737858Z Entering 'third_party/nccl/nccl' 2022-11-23T01:33:14.5758779Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5786363Z Entering 'third_party/neon2sse' 2022-11-23T01:33:14.5806782Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5846575Z Entering 'third_party/nlohmann' 2022-11-23T01:33:14.5867650Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5896155Z Entering 'third_party/onnx' 2022-11-23T01:33:14.5916163Z http.https://github.com/.extraheader 2022-11-23T01:33:14.5954470Z Entering 'third_party/onnx/third_party/benchmark' 2022-11-23T01:33:14.5973659Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6011846Z Entering 'third_party/onnx/third_party/pybind11' 2022-11-23T01:33:14.6032376Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6073159Z Entering 'third_party/onnx-tensorrt' 2022-11-23T01:33:14.6093398Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6119940Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2022-11-23T01:33:14.6140169Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6173041Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2022-11-23T01:33:14.6193193Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6220970Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2022-11-23T01:33:14.6240924Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6267658Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2022-11-23T01:33:14.6287318Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6320185Z Entering 'third_party/pocketfft' 2022-11-23T01:33:14.6340896Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6367890Z Entering 'third_party/protobuf' 2022-11-23T01:33:14.6388848Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6419374Z Entering 'third_party/protobuf/third_party/benchmark' 2022-11-23T01:33:14.6438890Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6467097Z Entering 'third_party/protobuf/third_party/googletest' 2022-11-23T01:33:14.6486432Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6515770Z Entering 'third_party/psimd' 2022-11-23T01:33:14.6536537Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6563069Z Entering 'third_party/pthreadpool' 2022-11-23T01:33:14.6583219Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6609873Z Entering 'third_party/pybind11' 2022-11-23T01:33:14.6629970Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6656632Z Entering 'third_party/python-enum' 2022-11-23T01:33:14.6676834Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6703574Z Entering 'third_party/python-peachpy' 2022-11-23T01:33:14.6724832Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6753082Z Entering 'third_party/python-six' 2022-11-23T01:33:14.6773781Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6800606Z Entering 'third_party/sleef' 2022-11-23T01:33:14.6821263Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6848234Z Entering 'third_party/tbb' 2022-11-23T01:33:14.6869808Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6898774Z Entering 'third_party/tensorpipe' 2022-11-23T01:33:14.6919085Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6946331Z Entering 'third_party/tensorpipe/third_party/googletest' 2022-11-23T01:33:14.6965282Z http.https://github.com/.extraheader 2022-11-23T01:33:14.6992305Z Entering 'third_party/tensorpipe/third_party/libnop' 2022-11-23T01:33:14.7012616Z http.https://github.com/.extraheader 2022-11-23T01:33:14.7039696Z Entering 'third_party/tensorpipe/third_party/libuv' 2022-11-23T01:33:14.7059433Z http.https://github.com/.extraheader 2022-11-23T01:33:14.7086655Z Entering 'third_party/tensorpipe/third_party/pybind11' 2022-11-23T01:33:14.7106777Z http.https://github.com/.extraheader 2022-11-23T01:33:14.7132336Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2022-11-23T01:33:14.7152669Z http.https://github.com/.extraheader 2022-11-23T01:33:14.7182292Z Entering 'third_party/zstd' 2022-11-23T01:33:14.7202675Z http.https://github.com/.extraheader 2022-11-23T01:33:14.7437981Z Cleaning up orphan processes